|
| 1 | +{ |
| 2 | + "plugins": [ |
| 3 | + "react" |
| 4 | + ], |
| 5 | + "parser": "babel-eslint", |
| 6 | + "ecmaFeatures": { |
| 7 | + "arrowFunctions": true, |
| 8 | + "blockBindings": true, |
| 9 | + "classes": true, |
| 10 | + "defaultParams": true, |
| 11 | + "destructuring": true, |
| 12 | + "forOf": true, |
| 13 | + "objectLiteralComputedProperties": true, |
| 14 | + "objectLiteralShorthandMethods": true, |
| 15 | + "objectLiteralShorthandProperties": true, |
| 16 | + "restParams": true, |
| 17 | + "spread": true, |
| 18 | + "superInFunctions": true, |
| 19 | + "templateStrings": true, |
| 20 | + "jsx": true |
| 21 | + }, |
| 22 | + "env": { |
| 23 | + "browser": true, |
| 24 | + "node": true, |
| 25 | + "jasmine": true, |
| 26 | + "jquery": true, |
| 27 | + "es6": true |
| 28 | + }, |
| 29 | + "globals": { |
| 30 | + "If": true |
| 31 | + }, |
| 32 | + "rules": { |
| 33 | + "strict": [2, "global"], |
| 34 | + "block-scoped-var": 2, |
| 35 | + "curly": 2, |
| 36 | + "dot-notation": [2, { |
| 37 | + "allowKeywords": false, |
| 38 | + "allowPattern": "^[a-z]+(_[a-z]+)+$" |
| 39 | + }], |
| 40 | + "guard-for-in": 2, |
| 41 | + "no-else-return": 2, |
| 42 | + "wrap-iife": [2, "inside"], |
| 43 | + "no-throw-literal": 2, |
| 44 | + "indent": [2, 4, {"indentSwitchCase": true}], |
| 45 | + "brace-style": [2, "1tbs", { "allowSingleLine": true }], |
| 46 | + "camelcase": 2, |
| 47 | + "eol-last": 2, |
| 48 | + "new-cap": [2, { |
| 49 | + "newIsCap": true, |
| 50 | + "capIsNew": false |
| 51 | + }], |
| 52 | + "no-mixed-spaces-and-tabs": 2, |
| 53 | + "no-multiple-empty-lines": [1, {"max": 2}], |
| 54 | + "no-space-before-semi": 2, |
| 55 | + "no-spaced-func": 2, |
| 56 | + "no-trailing-spaces": 2, |
| 57 | + "no-underscore-dangle": 0, |
| 58 | + "no-wrap-func": 2, |
| 59 | + "no-var": 2, |
| 60 | + "object-shorthand": [2, "always"], |
| 61 | + "operator-assignment": [2, "always"], |
| 62 | + "prefer-const": 0, |
| 63 | + "semi": [2, "always"], |
| 64 | + "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}], |
| 65 | + "space-in-parens": [2, "never"], |
| 66 | + "space-infix-ops": 2, |
| 67 | + "space-return-throw-case": 2, |
| 68 | + "space-unary-ops": [2, {"words": true, "nonwords": false}], |
| 69 | + "react/display-name": 1, |
| 70 | + "react/jsx-quotes": [2, "double"], |
| 71 | + "react/jsx-no-undef": 1, |
| 72 | + "react/jsx-uses-react": 1, |
| 73 | + "react/jsx-uses-vars": 1, |
| 74 | + "react/no-did-mount-set-state": [1, "allowed-in-func"], |
| 75 | + "react/no-did-update-set-state": 1, |
| 76 | + "react/no-multi-comp": 1, |
| 77 | + "react/no-unknown-property": 1, |
| 78 | + "react/prop-types": 0, |
| 79 | + "react/react-in-jsx-scope": 1, |
| 80 | + "react/self-closing-comp": 1, |
| 81 | + "react/sort-comp": 1, |
| 82 | + "react/wrap-multilines": 1 |
| 83 | + } |
| 84 | +} |
0 commit comments