From 55e974d9faeae66d6ec5030ff23fa3e80e2097aa Mon Sep 17 00:00:00 2001 From: Christoph Nakazawa Date: Tue, 29 Oct 2019 13:16:53 -0700 Subject: [PATCH] Revert D18173919: fix(eslint-config): Clashes with prettier Differential Revision: D18173919 Original commit changeset: b333469652b4 fbshipit-source-id: 819d484101be132ae3f2d3bf8e3ba008a9d91d83 --- .../eslint-config-react-native-community/index.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/eslint-config-react-native-community/index.js b/packages/eslint-config-react-native-community/index.js index 3c853f7755b..5a88f6d9804 100644 --- a/packages/eslint-config-react-native-community/index.js +++ b/packages/eslint-config-react-native-community/index.js @@ -112,7 +112,7 @@ module.exports = { rules: { // General - 'comma-dangle': 0, // allow or disallow trailing commas (off by default) + 'comma-dangle': [1, 'always-multiline'], // allow or disallow trailing commas 'no-cond-assign': 1, // disallow assignment in conditional expressions 'no-console': 0, // disallow use of console (off by default in the node environment) 'no-const-assign': 2, // disallow assignment to const-declared variables @@ -250,9 +250,9 @@ module.exports = { 'no-trailing-spaces': 1, // disallow trailing whitespace at the end of lines 'no-underscore-dangle': 0, // disallow dangling underscores in identifiers 'no-mixed-spaces-and-tabs': 1, // disallow mixed spaces and tabs for indentation - quotes: 0, // specify whether double or single quotes should be used (off by default) + quotes: [1, 'single', 'avoid-escape'], // specify whether double or single quotes should be used 'quote-props': 0, // require quotes around object literal property names (off by default) - semi: 0, // require or disallow use of semicolons instead of ASI (off by default) + semi: 1, // require or disallow use of semicolons instead of ASI 'sort-vars': 0, // sort variables within the same declaration block (off by default) 'space-in-brackets': 0, // require or disallow spaces inside brackets (off by default) 'space-in-parens': 0, // require or disallow spaces inside parentheses (off by default) @@ -309,11 +309,5 @@ module.exports = { 'jest/no-focused-tests': 1, 'jest/no-identical-title': 1, 'jest/valid-expect': 1, - - // Prettier Plugin - 'prettier/prettier': [ - 1, - {singleQuote: true, trailingComma: 'es5', semi: true}, - ], }, };