|
| 1 | +env: |
| 2 | + browser: true |
| 3 | + |
| 4 | +parser: "@babel/eslint-parser" |
| 5 | + |
| 6 | +parserOptions: |
| 7 | + ecmaVersion: 6 |
| 8 | + |
| 9 | +plugins: [ "import" ] |
| 10 | + |
| 11 | +extends: [ |
| 12 | + "plugin:react/recommended", |
| 13 | + "plugin:cypress/recommended" |
| 14 | + ] |
| 15 | + |
| 16 | +settings: |
| 17 | + react: |
| 18 | + version: detect |
| 19 | + |
| 20 | +rules: |
| 21 | + # Possible Errors |
| 22 | + # https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors |
| 23 | + no-control-regex: 2 |
| 24 | + no-console: 1 |
| 25 | + no-debugger: 2 |
| 26 | + no-dupe-args: 2 |
| 27 | + no-dupe-keys: 2 |
| 28 | + no-duplicate-case: 2 |
| 29 | + no-empty-character-class: 2 |
| 30 | + no-ex-assign: 2 |
| 31 | + no-extra-boolean-cast : 2 |
| 32 | + no-extra-semi: 2 |
| 33 | + no-invalid-regexp: 2 |
| 34 | + no-irregular-whitespace: 1 |
| 35 | + no-proto: 2 |
| 36 | + no-unexpected-multiline: 2 |
| 37 | + no-unreachable: 2 |
| 38 | + valid-typeof: 2 |
| 39 | + |
| 40 | + # Best Practices |
| 41 | + # https://github.com/eslint/eslint/tree/master/docs/rules#best-practices |
| 42 | + no-fallthrough: 2 |
| 43 | + no-redeclare: 2 |
| 44 | + |
| 45 | + # Stylistic Issues |
| 46 | + # https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues |
| 47 | + comma-spacing: 2 |
| 48 | + eol-last: 2 |
| 49 | + eqeqeq: ["error", "smart"] |
| 50 | + indent: [2, 2, {SwitchCase: 1}] |
| 51 | + keyword-spacing: 2 |
| 52 | + max-len: [1, 160, 2] |
| 53 | + new-parens: 2 |
| 54 | + no-mixed-spaces-and-tabs: 2 |
| 55 | + no-multiple-empty-lines: [2, {max: 2}] |
| 56 | + no-trailing-spaces: 2 |
| 57 | + object-curly-spacing: [2, "never"] |
| 58 | + quotes: [2, "double", "avoid-escape"] |
| 59 | + semi: 2 |
| 60 | + space-before-blocks: [2, "always"] |
| 61 | + space-before-function-paren: [2, "never"] |
| 62 | + space-in-parens: [2, "never"] |
| 63 | + space-infix-ops: 2 |
| 64 | + space-unary-ops: 2 |
| 65 | + |
| 66 | + # ECMAScript 6 |
| 67 | + # http://eslint.org/docs/rules/#ecmascript-6 |
| 68 | + arrow-parens: [2, "always"] |
| 69 | + arrow-spacing: [2, {"before": true, "after": true}] |
| 70 | + no-confusing-arrow: 2 |
| 71 | + prefer-const: 2 |
| 72 | + |
| 73 | + # JSX |
| 74 | + jsx-quotes: [2, "prefer-double"] |
| 75 | + |
| 76 | + # Import |
| 77 | + import/no-unresolved: [1, {"commonjs": true, "amd": true}] |
| 78 | + import/export: 2 |
| 79 | + |
| 80 | + # Strict Mode |
| 81 | + # https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode |
| 82 | + strict: [2, "global"] |
| 83 | + |
| 84 | + # Variables |
| 85 | + # https://github.com/eslint/eslint/tree/master/docs/rules#variables |
| 86 | + no-undef: 2 |
| 87 | + no-unused-vars: [2, {"args": "none"}] |
| 88 | + |
| 89 | + # turn off PropType checking |
| 90 | + # https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prop-types.md |
| 91 | + react/prop-types: [0] |
| 92 | + |
| 93 | +# Global scoped method and vars |
| 94 | +globals: |
| 95 | + __dirname: true |
| 96 | + require: true |
| 97 | + process: true |
| 98 | + ENV: true |
| 99 | + module: true |
0 commit comments