- Notifications
You must be signed in to change notification settings - Fork20.6k
Commit8612018
authored
Build: Make the import/no-unused-modules ESLint rule work in WebStorm
When run via WebStorm, the root path against which paths in the config of the`import/no-unused-modules` ESLint rule are resolved is the path where the ESLintconfig file that defines the rule lies, i.e. `src`. When run via the commandline, it's usually the root folder of the jQuery repository. This patternintends to catch both.Note that we cannot specify two patterns here:```js[ "src/*.js", "*.js" ]```as they're analyzed individually and the rule crashes if a pattern cannot bematched.Closesgh-47771 parenta442110 commit8612018
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 |
| |
20 | 29 |
| |
21 | 30 |
| |
|
0 commit comments
Comments
(0)