This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: switch to eslint flat config (#121)
* refactor: switch to eslint flat config * remove .eslintignore
- Loading branch information
1 parent
6f95a94
commit 59b1606
Showing
35 changed files
with
133 additions
and
175 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import eslintConfigESLint from "eslint-config-eslint"; | ||
import globals from "globals"; | ||
import eslintPluginChaiFriendly from "eslint-plugin-chai-friendly"; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
"dist/", | ||
"coverage/" | ||
] | ||
}, | ||
...eslintConfigESLint, | ||
{ | ||
files: ["lib/**"], | ||
rules: { | ||
"no-underscore-dangle": "off" | ||
} | ||
}, | ||
{ | ||
files: ["tests/**"], | ||
ignores: ["tests/util/**"], | ||
languageOptions: { | ||
globals: { | ||
...globals.mocha | ||
} | ||
}, | ||
plugins: { | ||
"chai-friendly": eslintPluginChaiFriendly | ||
}, | ||
rules: { | ||
"no-unused-expressions": "off", | ||
"chai-friendly/no-unused-expressions": "error" | ||
} | ||
}, | ||
{ | ||
files: ["Makefile.js"], | ||
languageOptions: { | ||
globals: { | ||
...globals.shelljs | ||
} | ||
}, | ||
rules: { | ||
"no-console": "off" | ||
} | ||
} | ||
]; |
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 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
Oops, something went wrong.