You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/index.md
+17-2
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ If you are not using the `cli` tools, you can create (or modify) an `.eslintrc`
36
36
37
37
```json
38
38
{
39
-
"extends": "enact"
39
+
"extends": "enact-proxy"
40
40
}
41
41
```
42
42
>**NOTE**: For strict mode, use `"extends": "enact-proxy/strict"`.
@@ -52,6 +52,21 @@ You would need to install an ESLint plugin for your editor first.
52
52
Ever since ESLint 6, global installs of ESLint configs are no longer supported.
53
53
To work around this new limitation, while still supporting in-editor linting, we've created a new [eslint-config-enact-proxy](https://github.com/enactjs/eslint-config-enact-proxy) package.
54
54
The [eslint-config-enact-proxy](https://github.com/enactjs/eslint-config-enact-proxy) acts like a small proxy config, redirecting ESLint to use a globally-installed Enact ESLint config.
55
+
`eslint-config-enact-proxy` needs to be installed locally on a project to enable in-editor linting:
56
+
57
+
```sh
58
+
npm install --save-dev eslint-config-enact-proxy
59
+
```
60
+
61
+
Also, you need to modify `eslintConfig` property in `package.json`:
62
+
63
+
```json
64
+
"eslintConfig": {
65
+
"extends": "enact-proxy"
66
+
},
67
+
```
68
+
>**NOTE**: For strict mode, use `"extends": "enact-proxy/strict"`.
69
+
55
70
In order for in-editor linting to work with our updated ESLint config, you'll need to upgrade to ESLint 7 or later. This can be installed globally by running:
56
71
57
72
```sh
@@ -61,7 +76,7 @@ npm install -g eslint
61
76
Then, you will need to uninstall any previous globally-installed Enact linting package (everything but eslint itself):
0 commit comments