Commit aba83cf
committed
bug #732 feat: add ESLint 6 support (Kocal)
This PR was squashed before being merged into the master branch.
Discussion
----------
feat: add ESLint 6 support
Someone on Slack had an issue with Encore and ESLint 6:

`CLIEngine#config` does not exists on ESLint 6 anymore, since [6ae21a4b](eslint/eslint@6ae21a4#diff-3daec82d5218d64d8f2fed4d21f8e6ccL472-L486).
Now we can use [`CLIEngine#getConfigForFile`](https://eslint.org/docs/developer-guide/nodejs-api#cliengine-getconfigforfile) to get the ESLint configuration.
Encore now supports both ESLint 5 and 6.
cc @a-menshchikov 😄
Commits
-------
aa8353f feat: add ESLint 6 support3 files changed
+207
-91
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments