1 | {
|
2 | "extends": [
|
3 | "react-app",
|
4 | "eslint:recommended",
|
5 | "plugin:react/recommended",
|
6 | "plugin:jsx-a11y/recommended"
|
7 | ],
|
8 | "settings": {
|
9 | "react": {
|
10 | "version": "999.999.999"
|
11 | }
|
12 | },
|
13 | "parser": "babel-eslint",
|
14 | "parserOptions": {
|
15 | "ecmaVersion": 9,
|
16 | "sourceType": "module",
|
17 | "ecmaFeatures": {
|
18 | "jsx": true,
|
19 | "forOf": true,
|
20 | "spread": true,
|
21 | "classes": true,
|
22 | "generators": true,
|
23 | "destructuring": true,
|
24 | "defaultParams": true,
|
25 | "arrowFunctions": true,
|
26 | "templateStrings": true,
|
27 | "experimentalObjectRestSpread": true
|
28 | }
|
29 | },
|
30 | "plugins": [
|
31 | "react",
|
32 | "babel",
|
33 | "jsx-a11y"
|
34 | ],
|
35 | "env": {
|
36 | "es6": true,
|
37 | "node": true,
|
38 | "browser": true
|
39 | },
|
40 | "globals": {
|
41 | "document": false
|
42 | },
|
43 | "rules": {
|
44 | "strict": [
|
45 | "error",
|
46 | "global"
|
47 | ],
|
48 | "arrow-spacing": "warn",
|
49 | "arrow-body-style": [
|
50 | "error",
|
51 | "as-needed"
|
52 | ],
|
53 | "new-cap": "off",
|
54 | "semi": [
|
55 | "error",
|
56 | "never"
|
57 | ],
|
58 | "space-before-function-paren": "error",
|
59 | "eqeqeq": "warn",
|
60 | "block-scoped-var": "error",
|
61 | "no-return-await": "error",
|
62 | "no-unused-expressions": [
|
63 | "error",
|
64 | {
|
65 | "allowShortCircuit": true,
|
66 | "allowTernary": true
|
67 | }
|
68 | ],
|
69 | "no-unused-vars": "error",
|
70 | "no-console": [
|
71 | "error",
|
72 | {
|
73 | "allow": [
|
74 | "warn",
|
75 | "error"
|
76 | ]
|
77 | }
|
78 | ],
|
79 | "no-extra-boolean-cast": "error",
|
80 | "no-dupe-keys": "error",
|
81 | "no-dupe-args": "error",
|
82 | "no-extra-bind": "error",
|
83 | "no-extra-semi": "warn",
|
84 | "no-unreachable": "error",
|
85 | "no-duplicate-case": "error",
|
86 | "no-invalid-regexp": "error",
|
87 | "prefer-template": "warn",
|
88 | "react/no-deprecated": 2,
|
89 | "react/no-did-mount-set-state": 2,
|
90 | "react/no-redundant-should-component-update": 2,
|
91 | "react/no-did-update-set-state": 2,
|
92 | "react/no-this-in-sfc": 2,
|
93 | "react/no-typos": 2,
|
94 | "react/no-unused-state": 2,
|
95 | "react/no-unused-prop-types": 1,
|
96 | "react/no-unknown-property": 1,
|
97 | "react/require-render-return": 2,
|
98 | "react/prefer-es6-class": [
|
99 | "error",
|
100 | "always"
|
101 | ],
|
102 | "react/no-array-index-key": 1,
|
103 | "react/no-access-state-in-setstate": 2,
|
104 | "react/jsx-uses-vars": "error",
|
105 | "react/jsx-uses-react": "error",
|
106 | "react/jsx-no-duplicate-props": "error",
|
107 | "react/no-direct-mutation-state": [
|
108 | "error",
|
109 | "always"
|
110 | ]
|
111 | }
|
112 | } |
\ | No newline at end of file |