|
| 1 | +module.exports = { |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + es6: true, |
| 5 | + jest: true, |
| 6 | + }, |
| 7 | + extends: [ |
| 8 | + 'plugin:react/recommended', |
| 9 | + 'airbnb', |
| 10 | + ], |
| 11 | + globals: { |
| 12 | + Atomics: 'readonly', |
| 13 | + SharedArrayBuffer: 'readonly', |
| 14 | + context: 'readonly', |
| 15 | + Feature: 'readonly', |
| 16 | + Scenario: 'readonly', |
| 17 | + actor: 'readonly', |
| 18 | + given: 'readonly', |
| 19 | + }, |
| 20 | + parserOptions: { |
| 21 | + ecmaFeatures: { |
| 22 | + jsx: true, |
| 23 | + }, |
| 24 | + ecmaVersion: 11, |
| 25 | + sourceType: 'module', |
| 26 | + }, |
| 27 | + plugins: [ |
| 28 | + 'react', |
| 29 | + ], |
| 30 | + rules: { |
| 31 | + indent: ['error', 2], |
| 32 | + 'no-trailing-spaces': 'error', |
| 33 | + curly: 'error', |
| 34 | + 'brace-style': 'error', |
| 35 | + 'no-multi-spaces': 'error', |
| 36 | + 'space-infix-ops': 'error', |
| 37 | + 'space-unary-ops': 'error', |
| 38 | + 'no-whitespace-before-property': 'error', |
| 39 | + 'func-call-spacing': 'error', |
| 40 | + 'space-before-blocks': 'error', |
| 41 | + 'keyword-spacing': ['error', { before: true, after: true }], |
| 42 | + 'comma-spacing': ['error', { before: false, after: true }], |
| 43 | + 'comma-style': ['error', 'last'], |
| 44 | + 'comma-dangle': ['error', 'always-multiline'], |
| 45 | + 'space-in-parens': ['error', 'never'], |
| 46 | + 'block-spacing': 'error', |
| 47 | + 'array-bracket-spacing': ['error', 'never'], |
| 48 | + 'object-curly-spacing': ['error', 'always'], |
| 49 | + 'key-spacing': ['error', { mode: 'strict' }], |
| 50 | + 'arrow-spacing': ['error', { before: true, after: true }], |
| 51 | + 'jsx-a11y/label-has-associated-control': ['error', { assert: 'either' }], |
| 52 | + 'react/prop-types': 'off', |
| 53 | + 'linebreak-style': 'off', |
| 54 | + 'no-proto': 'off', |
| 55 | + }, |
| 56 | +}; |
0 commit comments