|
| 1 | +module.exports = { |
| 2 | + extends: [ |
| 3 | + 'airbnb', |
| 4 | + 'react-app', |
| 5 | + ], |
| 6 | + rules: { |
| 7 | + 'indent': [2, 2, {SwitchCase: 1}], |
| 8 | + 'no-unused-vars': 2, |
| 9 | + 'object-curly-newline': [2, {multiline: true, consistent: true}], |
| 10 | + 'object-curly-spacing': [2, 'never'], |
| 11 | + 'operator-linebreak': [2, 'after'], |
| 12 | + 'quote-props': [2, 'consistent-as-needed'], |
| 13 | + 'react/jsx-closing-bracket-location': [2, 'tag-aligned'], |
| 14 | + 'max-len': [2, 100], |
| 15 | + |
| 16 | + // TODO(mark): These should be turned on but requires a larger change. |
| 17 | + 'arrow-body-style': 0, |
| 18 | + 'arrow-parens': 0, |
| 19 | + 'consistent-return': 0, |
| 20 | + 'global-require': 0, |
| 21 | + 'no-console': 0, |
| 22 | + 'no-confusing-arrow': 0, |
| 23 | + 'no-else-return': 0, |
| 24 | + 'no-nested-ternary': 0, |
| 25 | + 'no-param-reassign': 0, |
| 26 | + 'no-shadow': 0, |
| 27 | + 'no-useless-return': 0, |
| 28 | + 'quotes': 0, |
| 29 | + 'import/no-extraneous-dependencies': 0, |
| 30 | + 'import/no-unresolved': 0, |
| 31 | + 'react/forbid-prop-types': 0, |
| 32 | + 'react/prop-types': 0, |
| 33 | + |
| 34 | + // TODO(mark): These rules have issues with the shared/<package> packages. |
| 35 | + 'class-methods-use-this': 0, |
| 36 | + 'no-underscore-dangle': 0, |
| 37 | + 'react/destructuring-assignment': 0, |
| 38 | + 'react/no-find-dom-node': 0, |
| 39 | + 'react/no-string-refs': 0, |
| 40 | + 'react/no-unused-state': 0, |
| 41 | + 'react/sort-comp': 0, |
| 42 | + 'react/state-in-constructor': 0, |
| 43 | + |
| 44 | + // TODO(mark): Need to double check if we want these off or not. |
| 45 | + 'import/prefer-default-export': 0, |
| 46 | + 'react/jsx-curly-brace-presence': 0, |
| 47 | + 'react/jsx-filename-extension': 0, |
| 48 | + 'react/jsx-fragments': 0, |
| 49 | + 'react/jsx-props-no-spreading': 0, |
| 50 | + 'react/no-array-index-key': 0, |
| 51 | + 'react/no-children-prop': 0, |
| 52 | + 'react/no-unescaped-entities': 0, |
| 53 | + }, |
| 54 | +}; |
0 commit comments