-
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade eslint to v9.15 (#753)
* feat: upgrade eslint to v9.15 * fix: address linter errors
- Loading branch information
Showing
5 changed files
with
3,225 additions
and
2,718 deletions.
There are no files selected for viewing
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,42 @@ | ||
// @ts-check | ||
|
||
import eslint from "@eslint/js"; | ||
import eslintPluginJest from "eslint-plugin-jest"; | ||
import json from "eslint-plugin-json"; | ||
import globals from "globals"; | ||
|
||
export default [ | ||
{ | ||
name: "base", | ||
ignores: ["**/node_modules/**", "**/dist/**", "**/built/**"], | ||
}, | ||
{ | ||
name: "eslint/recommended-with-overrides", | ||
files: ["**/*.js"], | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.jest, | ||
}, | ||
}, | ||
rules: { | ||
...eslint.configs.recommended.rules, | ||
"no-unused-vars": "warn", | ||
"no-undef": "warn", | ||
}, | ||
}, | ||
{ | ||
name: "jest/recommended", | ||
files: ["**/*.test.{js,ts}"], | ||
ignores: ["**/*.json"], | ||
...eslintPluginJest.configs["flat/recommended"], | ||
}, | ||
{ | ||
name: "json/recommended-with-comments", | ||
files: ["**/*.json"], | ||
...json.configs["recommended"], | ||
rules: { | ||
"json/*": ["warn", { allowComments: false }], | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.