Skip to content

Commit

Permalink
PLAT-53066: Update camelcase rule for ^UNSAFE_ react lifecycle methods
Browse files Browse the repository at this point in the history
Enact-DCO-1.0-Signed-off-by: Stephen Choi <stephen.choi@lge.com>
  • Loading branch information
Stephen Choi committed Jan 17, 2019
1 parent 1d2f0b2 commit c3caf7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -145,7 +145,7 @@ module.exports = {
'no-sync': 0,
'array-bracket-spacing': 0,
'brace-style': [0, '1tbs', {}],
'camelcase': [0, {'properties': 'always'}],
'camelcase': [0, {allow: ["^UNSAFE_"]}],
'comma-spacing': [0, {'after': true}],
'comma-style': 0,
'computed-property-spacing': [0, 'never'],
Expand Down
2 changes: 1 addition & 1 deletion strict.js
Expand Up @@ -33,7 +33,7 @@ module.exports = {
'no-undefined': 2,
'no-use-before-define': [2, {'functions': false}],
'brace-style': [1, '1tbs', {}],
'camelcase': [1, {'properties': 'always'}],
'camelcase': [0, {allow: ["^UNSAFE_"]}],

This comment has been minimized.

Copy link
@webOS101

webOS101 Jan 17, 2019

Contributor

Is there a need to add the exception (in both locations) if the warning is disabled?

This comment has been minimized.

Copy link
@viodragon2

viodragon2 Jan 17, 2019

Contributor

oops

'comma-spacing': [1, {'after': true}],
'comma-style': 1,
'computed-property-spacing': [1, 'never'],
Expand Down

0 comments on commit c3caf7d

Please sign in to comment.