|
| 1 | +{ |
| 2 | + "plugins": [ |
| 3 | + "import" |
| 4 | + ], |
| 5 | + "settings": { |
| 6 | + "import/extensions": [".js"] |
| 7 | + }, |
| 8 | + "parser": "babel-eslint", |
| 9 | + "parserOptions": { |
| 10 | + "ecmaFeatures": { |
| 11 | + "jsx": true |
| 12 | + } |
| 13 | + }, |
| 14 | + "env": { |
| 15 | + "browser": true, |
| 16 | + "es6": true, |
| 17 | + "mocha": true, |
| 18 | + "node": true |
| 19 | + }, |
| 20 | + "rules": { |
| 21 | + "arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }], |
| 22 | + "arrow-spacing": "error", |
| 23 | + "block-spacing": "error", |
| 24 | + "comma-dangle": ["error", "only-multiline"], |
| 25 | + "comma-spacing": ["error", { "before": false, "after": true }], |
| 26 | + "comma-style": ["error", "last"], |
| 27 | + "computed-property-spacing": ["error", "never"], |
| 28 | + "constructor-super": "error", |
| 29 | + "curly": ["error", "multi-line"], |
| 30 | + "dot-location": ["error", "property"], |
| 31 | + "dot-notation": ["error", { "allowKeywords": true }], |
| 32 | + "eol-last": "error", |
| 33 | + "eqeqeq": ["error", "smart"], |
| 34 | + "func-call-spacing": ["error", "never"], |
| 35 | + "import/default": "error", |
| 36 | + "import/export": "error", |
| 37 | + "import/first": "error", |
| 38 | + "import/named": "error", |
| 39 | + "import/namespace": "error", |
| 40 | + "import/newline-after-import": "error", |
| 41 | + "import/no-deprecated": "error", |
| 42 | + "import/no-extraneous-dependencies": ["error", { "peerDependencies": true }], |
| 43 | + "import/no-mutable-exports": "error", |
| 44 | + "import/no-named-as-default": "error", |
| 45 | + "import/no-named-as-default-member": "error", |
| 46 | + "import/no-unresolved": "error", |
| 47 | + "indent": ["error", 2, { "SwitchCase": 1, "MemberExpression": 1 }], |
| 48 | + "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], |
| 49 | + "keyword-spacing": ["error", { "before": true, "after": true }], |
| 50 | + "linebreak-style": "error", |
| 51 | + "lines-around-comment": ["error", { "beforeBlockComment": true, "afterBlockComment": true, "allowBlockStart": true, "allowObjectStart": true, "allowArrayStart": true }], |
| 52 | + "new-parens": "error", |
| 53 | + "no-array-constructor": "error", |
| 54 | + "no-class-assign": "error", |
| 55 | + "no-console": "error", |
| 56 | + "no-const-assign": "error", |
| 57 | + "no-debugger": "error", |
| 58 | + "no-dupe-args": "error", |
| 59 | + "no-dupe-class-members": "error", |
| 60 | + "no-dupe-keys": "error", |
| 61 | + "no-duplicate-case": "error", |
| 62 | + "no-empty": "error", |
| 63 | + "no-empty-character-class": "error", |
| 64 | + "no-empty-pattern": "error", |
| 65 | + "no-ex-assign": "error", |
| 66 | + "no-extend-native": "error", |
| 67 | + "no-extra-boolean-cast": "error", |
| 68 | + "no-func-assign": "error", |
| 69 | + "no-invalid-regexp": "error", |
| 70 | + "no-lonely-if": "error", |
| 71 | + "no-mixed-spaces-and-tabs": ["error", false], |
| 72 | + "no-multi-spaces": "error", |
| 73 | + "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }], |
| 74 | + "no-native-reassign": "error", |
| 75 | + "no-negated-in-lhs": "error", |
| 76 | + "no-new-object": "error", |
| 77 | + "no-new-symbol": "error", |
| 78 | + "no-path-concat": "error", |
| 79 | + "no-redeclare": "error", |
| 80 | + "no-regex-spaces": "error", |
| 81 | + "no-sequences": "error", |
| 82 | + "no-shadow": "error", |
| 83 | + "no-shadow-restricted-names": "error", |
| 84 | + "no-spaced-func": "error", |
| 85 | + "no-tabs": "error", |
| 86 | + "no-this-before-super": "error", |
| 87 | + "no-throw-literal": "error", |
| 88 | + "no-trailing-spaces": "error", |
| 89 | + "no-undef": "error", |
| 90 | + "no-unneeded-ternary": "error", |
| 91 | + "no-unreachable": "error", |
| 92 | + "no-unsafe-finally": "error", |
| 93 | + "no-unsafe-negation": "error", |
| 94 | + "no-unused-expressions": "error", |
| 95 | + "no-unused-vars": ["error", { "vars": "all", "args": "none" }], |
| 96 | + "no-useless-call": "error", |
| 97 | + "no-useless-computed-key": "error", |
| 98 | + "no-useless-constructor": "error", |
| 99 | + "no-useless-rename": "error", |
| 100 | + "no-var": "error", |
| 101 | + "no-void": "error", |
| 102 | + "no-whitespace-before-property": "error", |
| 103 | + "no-with": "error", |
| 104 | + "object-curly-spacing": ["error", "always", { "objectsInObjects": false }], |
| 105 | + "object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }], |
| 106 | + "object-shorthand": ["error", "always"], |
| 107 | + "operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" }}], |
| 108 | + "padded-blocks": ["error", { "blocks": "never", "classes": "always" }], |
| 109 | + "prefer-arrow-callback": "error", |
| 110 | + "prefer-const": ["error", { "destructuring": "all", "ignoreReadBeforeAssign": true }], |
| 111 | + "prefer-rest-params": "error", |
| 112 | + "prefer-spread": "error", |
| 113 | + "prefer-template": "error", |
| 114 | + "quotes": ["error", "single", { "allowTemplateLiterals": true }], |
| 115 | + "radix": "error", |
| 116 | + "rest-spread-spacing": ["error", "never"], |
| 117 | + "semi": ["error", "never"], |
| 118 | + "space-before-blocks": "error", |
| 119 | + "space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }], |
| 120 | + "space-in-parens": "error", |
| 121 | + "space-infix-ops": "error", |
| 122 | + "space-unary-ops": ["error", { "words": true, "nonwords": false }], |
| 123 | + "spaced-comment": ["error", "always", { "exceptions": ["-"]}], |
| 124 | + "template-curly-spacing": "error", |
| 125 | + "template-tag-spacing": ["error", "never"], |
| 126 | + "unicode-bom": ["error", "never"], |
| 127 | + "use-isnan": "error", |
| 128 | + "valid-jsdoc": ["error", { "prefer": { "return": "returns" }, "requireReturn": false }], |
| 129 | + "valid-typeof": "error", |
| 130 | + "yield-star-spacing": ["error", "after"], |
| 131 | + "yoda": ["error", "never"] |
| 132 | + } |
| 133 | +} |
0 commit comments