Skip to content

Commit

Permalink
feat: add name to flat configs (#224)
Browse files Browse the repository at this point in the history
* feat: add `name` to flat configs

refs: eslint/eslint#18252

* fix: npm install error
  • Loading branch information
aladdin-add committed Apr 8, 2024
1 parent 0022565 commit 24512a0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: npm latest
run: npm i -g npm@latest # use latest npm
- name: Install Packages
run: npm install
- name: Install ESLint ${{ matrix.eslint }}
Expand Down
1 change: 1 addition & 0 deletions lib/configs/recommended-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports.eslintrc = {
* @type {import('eslint').Linter.FlatConfig}
*/
module.exports.flat = {
name: "node/flat/recommended-module",
languageOptions: {
sourceType: "module",
globals: {
Expand Down
1 change: 1 addition & 0 deletions lib/configs/recommended-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports.eslintrc = {
* @type {import('eslint').Linter.FlatConfig}
*/
module.exports.flat = {
name: "node/flat/recommended-script",
languageOptions: {
sourceType: "commonjs",
globals: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"devDependencies": {
"@eslint/js": "^9.0.0",
"@types/eslint": "^8.56.2",
"@types/eslint": "^8.56.7",
"@types/estree": "^1.0.5",
"@types/node": "^20.11.0",
"@typescript-eslint/parser": "^7.0.0",
Expand Down

0 comments on commit 24512a0

Please sign in to comment.