|
1 | 1 | {
|
2 |
| - "extends": "eslint:recommended", |
| 2 | + "extends": ["eslint:recommended", "prettier"], |
3 | 3 | "parser": "babel-eslint",
|
4 | 4 | "parserOptions": {
|
5 | 5 | "ecmaVersion": 6,
|
|
33 | 33 | ],
|
34 | 34 | "rules": {
|
35 | 35 | "accessor-pairs": ["error"],
|
36 |
| - "array-bracket-spacing": ["error"], |
37 |
| - "arrow-parens": ["error", "as-needed"], |
38 |
| - "arrow-spacing": ["error"], |
39 | 36 | "block-scoped-var": ["error"],
|
40 |
| - "comma-dangle": ["error"], |
41 |
| - "comma-spacing": ["error"], |
42 | 37 | "consistent-return": ["error"],
|
43 | 38 | "curly": ["error", "all"],
|
44 | 39 | "default-case": ["error"],
|
45 | 40 | "dot-location": ["off"],
|
46 | 41 | "dot-notation": ["error"],
|
47 | 42 | "eqeqeq": ["error"],
|
48 | 43 | "guard-for-in": ["off"],
|
49 |
| - "import/export": "error", |
50 | 44 | "import/named": ["off"],
|
51 |
| - "import/namespace": ["off"], |
52 | 45 | "import/no-duplicates": ["error"],
|
53 | 46 | "import/no-named-as-default": ["error"],
|
54 |
| - "import/no-unresolved": ["off"], |
55 |
| - "jsx-quotes": ["error", "prefer-double"], |
56 |
| - "key-spacing": ["error"], |
57 |
| - "keyword-spacing": ["error"], |
58 |
| - "max-len": ["error", 120, 4], |
59 | 47 | "new-cap": ["error"],
|
60 | 48 | "no-alert": [1],
|
61 | 49 | "no-caller": ["error"],
|
|
70 | 58 | "no-extend-native": ["error"],
|
71 | 59 | "no-extra-bind": ["error"],
|
72 | 60 | "no-extra-boolean-cast": ["error"],
|
73 |
| - "no-floating-decimal": ["error"], |
74 | 61 | "no-inline-comments": ["error"],
|
75 | 62 | "no-implicit-coercion": ["error"],
|
76 |
| - "no-trailing-spaces": ["error"], |
77 | 63 | "no-implied-eval": ["error"],
|
78 | 64 | "no-inner-declarations": ["off"],
|
79 | 65 | "no-invalid-this": ["error"],
|
80 | 66 | "no-iterator": ["error"],
|
81 | 67 | "no-labels": ["error"],
|
82 | 68 | "no-lone-blocks": ["error"],
|
83 | 69 | "no-loop-func": ["error"],
|
84 |
| - "no-multi-spaces": ["error"], |
85 | 70 | "no-multi-str": ["error"],
|
86 | 71 | "no-native-reassign": ["error"],
|
87 | 72 | "no-new": ["error"],
|
|
103 | 88 | "no-useless-call": ["error"],
|
104 | 89 | "no-useless-concat": ["error"],
|
105 | 90 | "no-with": ["error"],
|
106 |
| - "object-curly-spacing": ["error", "never"], |
107 | 91 | "prefer-const": ["error"],
|
108 |
| - "quotes": ["error", "single", "avoid-escape"], |
109 | 92 | "radix": ["error"],
|
110 |
| - "react/jsx-closing-bracket-location": ["error", "line-aligned"], |
111 | 93 | "react/jsx-no-duplicate-props": ["error"],
|
112 | 94 | "react/jsx-no-undef": ["error"],
|
113 | 95 | "react/jsx-uses-react": ["error"],
|
|
118 | 100 | "react/no-unknown-property": ["error"],
|
119 | 101 | "react/prefer-es6-class": ["error", "always"],
|
120 | 102 | "react/prop-types": "error",
|
121 |
| - "semi": ["error", "always"], |
122 |
| - "space-before-function-paren": ["error", "never"], |
123 |
| - "space-before-blocks": ["error"], |
124 |
| - "space-in-parens": ["error", "never"], |
125 |
| - "space-infix-ops": ["error"], |
126 | 103 | "valid-jsdoc": ["error"],
|
127 |
| - "wrap-iife": ["error"], |
128 | 104 | "yoda": ["error"],
|
129 | 105 | "spaced-comment": ["error", "always", {
|
130 | 106 | "block": {
|
131 | 107 | exceptions: ["*"]
|
132 | 108 | }
|
133 | 109 | }],
|
134 |
| - "indent": ["error", 4, { |
135 |
| - "SwitchCase": 1, |
136 |
| - "outerIIFEBody": 0 |
137 |
| - }], |
138 | 110 | "no-unused-vars": ["error", {
|
139 | 111 | "args": "after-used",
|
140 | 112 | "argsIgnorePattern": "^_",
|
|
144 | 116 | "ignoreArrayIndexes": true,
|
145 | 117 | "ignore": [-1, 0, 1, 2, 100, 10, 16, 0.5, 25]
|
146 | 118 | }],
|
147 |
| - "no-underscore-dangle": ["error", { |
148 |
| - "allowAfterThis": true, |
149 |
| - "allow": ["__webapp_store"] |
150 |
| - }], |
151 |
| - "lines-around-comment": ["error", { |
152 |
| - "beforeLineComment": true, |
153 |
| - "allowBlockStart": true |
154 |
| - }] |
| 119 | + "no-underscore-dangle": ["off"] |
155 | 120 | }
|
156 | 121 | }
|
0 commit comments