|
| 1 | +{ |
| 2 | + "extends": ["airbnb", "prettier", "prettier/react"], |
| 3 | + "parser": "babel-eslint", |
| 4 | + "parserOptions": { |
| 5 | + "ecmaVersion": 8, |
| 6 | + "ecmaFeatures": { |
| 7 | + "experimentalObjectRestSpread": true, |
| 8 | + "impliedStrict": true, |
| 9 | + "classes": true |
| 10 | + } |
| 11 | + }, |
| 12 | + "env": { |
| 13 | + "browser": true, |
| 14 | + "node": true, |
| 15 | + "jquery": true, |
| 16 | + "jest": true |
| 17 | + }, |
| 18 | + "rules": { |
| 19 | + "no-debugger": 0, |
| 20 | + "no-alert": 0, |
| 21 | + "no-await-in-loop": 0, |
| 22 | + "no-return-assign": ["error", "except-parens"], |
| 23 | + "no-restricted-syntax": [ |
| 24 | + 2, |
| 25 | + "ForInStatement", |
| 26 | + "LabeledStatement", |
| 27 | + "WithStatement" |
| 28 | + ], |
| 29 | + "no-unused-vars": [ |
| 30 | + 1, |
| 31 | + { |
| 32 | + "ignoreSiblings": true, |
| 33 | + "argsIgnorePattern": "res|next|^err" |
| 34 | + } |
| 35 | + ], |
| 36 | + "prefer-const": [ |
| 37 | + "error", |
| 38 | + { |
| 39 | + "destructuring": "all" |
| 40 | + } |
| 41 | + ], |
| 42 | + "arrow-body-style": [2, "as-needed"], |
| 43 | + "no-unused-expressions": [ |
| 44 | + 2, |
| 45 | + { |
| 46 | + "allowTaggedTemplates": true |
| 47 | + } |
| 48 | + ], |
| 49 | + "no-param-reassign": [ |
| 50 | + 2, |
| 51 | + { |
| 52 | + "props": false |
| 53 | + } |
| 54 | + ], |
| 55 | + "no-console": 0, |
| 56 | + "import/prefer-default-export": 0, |
| 57 | + "import": 0, |
| 58 | + "func-names": 0, |
| 59 | + "space-before-function-paren": 0, |
| 60 | + "comma-dangle": 0, |
| 61 | + "max-len": 0, |
| 62 | + "import/extensions": 0, |
| 63 | + "no-underscore-dangle": 0, |
| 64 | + "consistent-return": 0, |
| 65 | + "react/display-name": 1, |
| 66 | + "react/no-array-index-key": 0, |
| 67 | + "react/react-in-jsx-scope": 0, |
| 68 | + "react/prefer-stateless-function": 0, |
| 69 | + "react/forbid-prop-types": 0, |
| 70 | + "react/no-unescaped-entities": 0, |
| 71 | + "jsx-a11y/accessible-emoji": 0, |
| 72 | + "react/require-default-props": 0, |
| 73 | + "react/jsx-filename-extension": [ |
| 74 | + 1, |
| 75 | + { |
| 76 | + "extensions": [".js", ".jsx"] |
| 77 | + } |
| 78 | + ], |
| 79 | + "radix": 0, |
| 80 | + "no-shadow": [ |
| 81 | + 2, |
| 82 | + { |
| 83 | + "hoist": "all", |
| 84 | + "allow": ["resolve", "reject", "done", "next", "err", "error"] |
| 85 | + } |
| 86 | + ], |
| 87 | + "quotes": [ |
| 88 | + 2, |
| 89 | + "single", |
| 90 | + { |
| 91 | + "avoidEscape": true, |
| 92 | + "allowTemplateLiterals": true |
| 93 | + } |
| 94 | + ], |
| 95 | + "prettier/prettier": [ |
| 96 | + "error", |
| 97 | + { |
| 98 | + "trailingComma": "es5", |
| 99 | + "singleQuote": true, |
| 100 | + "printWidth": 80 |
| 101 | + } |
| 102 | + ], |
| 103 | + "jsx-a11y/href-no-hash": "off", |
| 104 | + "jsx-a11y/anchor-is-valid": [ |
| 105 | + "warn", |
| 106 | + { |
| 107 | + "aspects": ["invalidHref"] |
| 108 | + } |
| 109 | + ] |
| 110 | + }, |
| 111 | + "plugins": [ |
| 112 | + // "html", |
| 113 | + "prettier" |
| 114 | + ] |
| 115 | +} |
0 commit comments