-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
606e87f
commit d2c96f0
Showing
6 changed files
with
210 additions
and
227 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,37 @@ | ||
import js from "@eslint/js"; | ||
import node from "eslint-plugin-n"; | ||
import eslintPlugin from "eslint-plugin-eslint-plugin"; | ||
import prettier from "eslint-config-prettier"; | ||
import globals from "globals"; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
node.configs["flat/recommended"], | ||
eslintPlugin.configs["flat/all"], | ||
prettier, | ||
{ | ||
languageOptions: { globals: { ...globals.mocha, ...globals.node } }, | ||
linterOptions: { reportUnusedDisableDirectives: true }, | ||
rules: { | ||
"arrow-body-style": "error", | ||
strict: "error", | ||
"n/prefer-global/buffer": "error", | ||
"n/prefer-global/console": "error", | ||
"n/prefer-global/process": "error", | ||
"n/prefer-global/text-decoder": "error", | ||
"n/prefer-global/url": "error", | ||
"n/prefer-global/url-search-params": "error", | ||
"eslint-plugin/require-meta-docs-url": [ | ||
"error", | ||
{ | ||
pattern: | ||
"https://github.com/joshuajaco/eslint-plugin-workspaces/blob/main/docs/rules/{{name}}.md", | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.mjs"], | ||
languageOptions: { sourceType: "module" }, | ||
}, | ||
]; |
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.