Skip to content

Commit

Permalink
feat: add name to flat configs
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Apr 8, 2024
1 parent 0022565 commit e559ad9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/configs/recommended-module.js
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
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
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 e559ad9

Please sign in to comment.