From c3caf7dbe96003187ad152e7702be858b7b63c5b Mon Sep 17 00:00:00 2001 From: Stephen Choi Date: Wed, 16 Jan 2019 18:03:26 -0800 Subject: [PATCH] PLAT-53066: Update camelcase rule for `^UNSAFE_` react lifecycle methods Enact-DCO-1.0-Signed-off-by: Stephen Choi --- index.js | 2 +- strict.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 97689e3..a295399 100644 --- a/index.js +++ b/index.js @@ -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'], diff --git a/strict.js b/strict.js index b60fc51..409e7fc 100644 --- a/strict.js +++ b/strict.js @@ -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_"]}], 'comma-spacing': [1, {'after': true}], 'comma-style': 1, 'computed-property-spacing': [1, 'never'],