|
44 | 44 | "files": [ |
45 | 45 | "babel.config.js", |
46 | 46 | "gulpfile.js", |
| 47 | + "jest.config.js", |
47 | 48 | "karma.conf.js", |
48 | 49 | "script/*.js", |
49 | 50 | "webpack.config.js" |
|
55 | 56 | }, |
56 | 57 | "rules": { |
57 | 58 | "import/no-commonjs": "off", |
| 59 | + "import/no-extraneous-dependencies": [ |
| 60 | + "error", |
| 61 | + { |
| 62 | + "devDependencies": true |
| 63 | + } |
| 64 | + ], |
58 | 65 | "import/no-nodejs-modules": "off", |
59 | 66 | "lodash/import-scope": ["warn", "method-package"] |
60 | 67 | }, |
|
74 | 81 | "jest-setup.js" |
75 | 82 | ], |
76 | 83 | "rules": { |
| 84 | + "import/no-extraneous-dependencies": [ |
| 85 | + "error", |
| 86 | + { |
| 87 | + "devDependencies": true |
| 88 | + } |
| 89 | + ], |
77 | 90 | "jest/no-alias-methods": "warn", |
78 | 91 | "jest/no-disabled-tests": "warn", |
79 | 92 | "jest/no-focused-tests": "warn", |
|
108 | 121 | } |
109 | 122 | } |
110 | 123 | }, |
111 | | - { |
112 | | - "files": "src/**/*", |
113 | | - "rules": { |
114 | | - "import/no-extraneous-dependencies": [ |
115 | | - "error", |
116 | | - { |
117 | | - "devDependencies": false |
118 | | - } |
119 | | - ] |
120 | | - } |
121 | | - }, |
122 | 124 | { |
123 | 125 | "files": "src/sagas/**/*", |
124 | 126 | "rules": { |
125 | 127 | "import/order": "off" |
126 | 128 | } |
127 | 129 | }, |
128 | 130 | { |
129 | | - "files": "test/unit/**/*", |
| 131 | + "files": "test/**/*", |
130 | 132 | "globals": { |
131 | 133 | "sinon": true |
| 134 | + }, |
| 135 | + "rules": { |
| 136 | + "import/no-extraneous-dependencies": [ |
| 137 | + "error", |
| 138 | + { |
| 139 | + "devDependencies": true |
| 140 | + } |
| 141 | + ] |
132 | 142 | } |
133 | 143 | }, |
134 | 144 | { |
|
206 | 216 | ], |
207 | 217 | "import/no-commonjs": "warn", |
208 | 218 | "import/no-cycle": "error", |
209 | | - "import/no-extraneous-dependencies": "error", |
| 219 | + "import/no-extraneous-dependencies": [ |
| 220 | + "error", |
| 221 | + { |
| 222 | + "devDependencies": false |
| 223 | + } |
| 224 | + ], |
210 | 225 | "import/no-mutable-exports": "warn", |
211 | 226 | "import/no-named-default": "warn", |
212 | 227 | "import/no-namespace": "warn", |
|
222 | 237 | { |
223 | 238 | "allow": [ |
224 | 239 | "brace/**/*", |
| 240 | + "codemirror/{addon,mode}/**/*", |
225 | 241 | "core-js", |
226 | 242 | "es6-set/implement", |
227 | 243 | "firebase/*", |
|
277 | 293 | "new-cap": [ |
278 | 294 | "warn", |
279 | 295 | { |
280 | | - "capIsNewExceptions": ["Slowparse.HTML", "Record"] |
| 296 | + "capIsNewExceptions": ["CodeMirror", "Slowparse.HTML", "Record"] |
281 | 297 | } |
282 | 298 | ], |
283 | 299 | "no-alert": "warn", |
|
0 commit comments