{ "plugins": [ "import", "react" ], "settings": { "import/extensions": [".js"] }, "parser": "babel-eslint", "parserOptions": { "ecmaFeatures": { "jsx": true } }, "env": { "browser": true, "node": true }, "rules": { "block-spacing": "error", "comma-dangle": ["error", "only-multiline"], "comma-spacing": ["error", { "before": false, "after": true }], "comma-style": ["error", "last"], "computed-property-spacing": ["error", "never"], "constructor-super": "error", "curly": ["error", "multi-line"], "dot-location": ["error", "property"], "dot-notation": ["error", { "allowKeywords": true }], "eol-last": "error", "func-style": ["error", "declaration"], "import/export": "error", "import/namespace": "error", "import/newline-after-import": "error", "import/no-deprecated": "error", "import/no-extraneous-dependencies": "error", "import/no-mutable-exports": "error", "import/no-named-as-default": "error", "import/no-named-as-default-member": "error", "import/no-unresolved": "error", "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], "lines-around-comment": ["error", { "beforeBlockComment": true, "afterBlockComment": true }], "new-parens": "error", "no-array-constructor": "error", "no-class-assign": "error", "no-const-assign": "error", "no-debugger": "warn", "no-dupe-args": "error", "no-dupe-class-members": "error", "no-dupe-keys": "error", "no-duplicate-case": "error", "no-empty": "error", "no-empty-character-class": "error", "no-empty-pattern": "error", "no-ex-assign": "error", "no-extend-native": "error", "no-func-assign": "error", "no-invalid-regexp": "error", "no-mixed-spaces-and-tabs": ["error", false], "no-multi-spaces": "error", "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }], "no-native-reassign": "error", "no-negated-in-lhs": "error", "no-new-object": "error", "no-new-symbol": "error", "no-redeclare": "error", "no-regex-spaces": "error", "no-sequences": "error", "no-shadow": "error", "no-shadow-restricted-names": "error", "no-spaced-func": "error", "no-throw-literal": "error", "no-trailing-spaces": "error", "no-undef": "error", "no-unreachable": "error", "no-unsafe-finally": "error", "no-unused-expressions": "error", "no-useless-call": "error", "no-useless-computed-key": "error", "no-useless-constructor": "error", "no-useless-rename": "error", "no-var": "error", "no-void": "error", "no-whitespace-before-property": "error", "no-with": "error", "object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }], "object-shorthand": ["error", "always"], "padded-blocks": ["error", "never"], "prefer-arrow-callback": "error", "prefer-rest-params": "error", "prefer-spread": "error", "prefer-template": "error", "radix": "error", "react/jsx-boolean-value": ["error", "never"], "react/jsx-closing-bracket-location": "error", "react/jsx-curly-spacing": ["error", "never"], "react/jsx-equals-spacing": "error", "react/jsx-first-prop-new-line": ["error", "multiline"], "react/jsx-key": "error", "react/jsx-no-bind": "error", "react/jsx-no-duplicate-props": "error", "react/jsx-no-undef": "error", "react/jsx-space-before-closing": ["error", "always"], "react/no-deprecated": "error", "react/no-did-mount-set-state": "error", "react/no-did-update-set-state": "error", "react/no-string-refs": "error", "react/no-unknown-property": "error", "react/react-in-jsx-scope": "error", "react/self-closing-comp": "error", "react/sort-prop-types": "error", "react/wrap-multilines": "error", "rest-spread-spacing": ["error", "never"], "semi": ["error", "never"], "space-before-blocks": "error", "space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }], "space-in-parens": "error", "space-infix-ops": "error", "space-unary-ops": ["error", { "words": true, "nonwords": false }], "spaced-comment": ["error", "always", { "exceptions": ["-"]}], "template-curly-spacing": "error", "unicode-bom": ["error", "never"], "use-isnan": "error", "valid-jsdoc": ["error", { "prefer": { "return": "returns" }, "requireReturn": false }], "valid-typeof": "error", "yield-star-spacing": ["error", "after"], "yoda": ["error", "never"] } }