-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated eslint + packages, reworked eslint to use default config (#525)
* Updated eslint + packages, reworked eslint to use default config * Updated templates * Fixed eslint config * Fixed vulnerabilities * Updated eslint plugin package * Fixed api version check * Fixed middleware
- Loading branch information
1 parent
4e5afc6
commit 4da6caf
Showing
38 changed files
with
870 additions
and
968 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
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,37 @@ | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import globals from "globals"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
|
||
export default [ | ||
{ | ||
files: ["*.ts", "*tsx"], | ||
ignores: [ | ||
"node_modules/", | ||
"dist/", | ||
"templates/", | ||
"spec/*/**", | ||
"**/lib/", | ||
"bin/", | ||
"eslint.config.mjs", | ||
], | ||
plugins: { | ||
"@typescript-eslint": typescriptEslint, | ||
}, | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
parser: tsParser, | ||
ecmaVersion: 2023, | ||
sourceType: "module", | ||
parserOptions: { | ||
project: "tsconfig.json", | ||
tsconfigRootDir: ".", | ||
}, | ||
}, | ||
rules: { | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
}, | ||
} | ||
]; |
Oops, something went wrong.