|
| 1 | +module.exports = { |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + es2021: true, |
| 5 | + }, |
| 6 | + extends: [ |
| 7 | + 'plugin:react/recommended', |
| 8 | + 'airbnb', |
| 9 | + ], |
| 10 | + parserOptions: { |
| 11 | + ecmaFeatures: { |
| 12 | + jsx: true, |
| 13 | + }, |
| 14 | + ecmaVersion: 'latest', |
| 15 | + sourceType: 'module', |
| 16 | + }, |
| 17 | + plugins: [ |
| 18 | + 'meteor', |
| 19 | + 'react', |
| 20 | + ], |
| 21 | + rules: { |
| 22 | + 'arrow-parens': 'off', |
| 23 | + camelcase: 'off', |
| 24 | + 'class-methods-use-this': 'off', |
| 25 | + 'func-names': 'off', |
| 26 | + 'import/no-absolute-path': 'off', |
| 27 | + 'import/no-unresolved': 'off', |
| 28 | + 'import/extensions': 'off', |
| 29 | + 'import/imports-first': 'off', |
| 30 | + 'import/prefer-default-export': 'off', |
| 31 | + 'import/no-extraneous-dependencies': 'off', |
| 32 | + 'linebreak-style': 'off', |
| 33 | + 'max-len': ['error', 120], |
| 34 | + 'meteor/eventmap-params': [2, { eventParamName: 'event', templateInstanceParamName: 'instance' } ], |
| 35 | + 'meteor/template-names': 'off', |
| 36 | + 'no-confusing-arrow': ['error', { allowParens: true}], |
| 37 | + 'no-plusplus': 'off', |
| 38 | + 'no-underscore-dangle': 'off', |
| 39 | + 'object-curly-newline': 'off', |
| 40 | + 'object-property-newline': 'off', |
| 41 | + 'object-shorthand': 'off', |
| 42 | + 'operator-linebreak': 'off', |
| 43 | + 'padded-blocks': 'off', |
| 44 | + indent: ['error', 2], |
| 45 | + 'prefer-arrow-callback': 'off', |
| 46 | + 'prefer-destructuring': 'off', |
| 47 | + 'prefer-promise-reject-errors': 'off', |
| 48 | + 'react/function-component-definition': 'off', |
| 49 | + }, |
| 50 | +}; |
0 commit comments