Skip to content

Commit 861d1e9

Browse files
daniel-stoian-lgpstanca-pop-lgphong6316
authored
WRR-1005: Updated Eslint to version 9 (#92)
* updated eslint to v9 * updated rule for `no-unused-vars` * updated dependency * minor fix * updated shrinkwrap * added changelog * added cross-env dependency * Update CHANGELOG.md Co-authored-by: Stanca <63341832+stanca-pop-lgp@users.noreply.github.com> * sync with develop * fixed changelog * update dependency tree * fix for shrinkwrap * updated dependencies * Update CHANGELOG.md * WRR-12625: Adopted ESLint flat config (#97) * updated eslint to version 9 and adopted flat config * updated npm-shrinkwrap.json * linked flat config branch of eslint-plugin-enact * adjusted rule * updated eslint to latest minor version * minor changes to global object * added eslint.config.js * included setupTests file while linting test files * changed branch fro eslint-plugin-enact dependency * added empty line at the end of file and updated npm-shrinkwrap.json * added "--no-config-lookup" option to prevent looking for an eslint.config.js file * added XMLHttpRequest global variable * changed eslintrc references to eslint.config.js * disabled reportUnusedDisableDirectives option * removed unused eslint.config.js * updated shrinkwrap * fix for babel configuration in enact pack command * fixed eslint version --------- Co-authored-by: Daniel Stoian <daniel.stoian@lgepartner.com> * updated shrinkwrap and fixed changelog * Update package.json --------- Co-authored-by: Stanca <63341832+stanca-pop-lgp@users.noreply.github.com> Co-authored-by: taeyoung.hong <taeyoung.hong@lge.com> Co-authored-by: taeyoung.hong <35059065+hong6316@users.noreply.github.com>
1 parent 124a12c commit 861d1e9

File tree

7 files changed

+2036
-13292
lines changed

7 files changed

+2036
-13292
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The following is a curated list of changes in the Enact eslint config:
44

5+
## [unreleased]
6+
7+
* Updated `eslint` to v9 and adopted flat config.
8+
59
## [5.0.0-alpha.4] (January 17, 2025)
610

711
* Updated dependencies.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module includes both a standard set of rules and a set of stricter rules th
66

77
## Usage
88

9-
Reference this set of rules from your `.eslintrc` or `package.json` file and then use `eslint`. If you are using the `cli` tools, simply use `npm run lint` from your project directory.
9+
Reference this set of rules from your `eslint.config.js` or `package.json` file and then use `eslint`. If you are using the `cli` tools, simply use `npm run lint` from your project directory.
1010

1111
For more information (including editor/IDE setup), please see the [docs](docs/index.md).
1212

docs/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ to read:
3232
},
3333
```
3434

35-
If you are not using the `cli` tools, you can create (or modify) an `.eslintrc` in the project's root and run `eslint .`:
35+
If you are not using the `cli` tools, you can create (or modify) an `eslint.config.js` in the project's root and run `eslint .`:
3636

3737
```json
3838
{
@@ -41,7 +41,7 @@ If you are not using the `cli` tools, you can create (or modify) an `.eslintrc`
4141
```
4242
>**NOTE**: For strict mode, use `"extends": "enact-proxy/strict"`.
4343
44-
If you like our linting rules and want to use them by default you can create the `.eslintrc` file in your HOME directory instead.
44+
If you like our linting rules and want to use them by default you can create the `eslint.config.js` file in your HOME directory instead.
4545

4646
### In-editor
4747

@@ -128,4 +128,4 @@ Check the *Enable* checkbox. Ensure that the proper paths for `node` and `eslin
128128

129129
#### Troubleshooting
130130

131-
If in-editor linting is not working in your local project, be sure you set up `package.json` or `.eslintrc` as described above.
131+
If in-editor linting is not working in your local project, be sure you set up `package.json` or `eslint.config.js` as described above.

0 commit comments

Comments
 (0)