This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switch to eslint flat config (#60)
* chore: switch to eslint flat config * remove nested .eslintrc.json * bump eslint * update eslint-disable descriptions
- Loading branch information
1 parent
3f7c528
commit f988b6e
Showing
9 changed files
with
60 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import eslintConfigESLint from "eslint-config-eslint"; | ||
import globals from "globals"; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
"dist/", | ||
"coverage/" | ||
] | ||
}, | ||
...eslintConfigESLint, | ||
{ | ||
linterOptions: { | ||
reportUnusedDisableDirectives: "error" | ||
}, | ||
settings: { | ||
jsdoc: { | ||
preferredTypes: { | ||
Object: "object", | ||
"object<>": "Object" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
files: ["tests/lib/**"], | ||
languageOptions: { | ||
globals: { | ||
...globals.mocha | ||
} | ||
} | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters