-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Delete .eslintrc files; - Create eslint.config.js files;
- Loading branch information
Benito Cassa
committed
Jan 29, 2025
1 parent
ce74313
commit 600bef1
Showing
47 changed files
with
4,526 additions
and
4,474 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
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,49 @@ | ||
import tsParser from "@typescript-eslint/parser"; | ||
import tsPlugin from "@typescript-eslint/eslint-plugin"; | ||
import js from "@eslint/js"; | ||
import prettier from "eslint-config-prettier"; | ||
import prettierPlugin from "eslint-plugin-prettier"; | ||
|
||
export default [ | ||
{ | ||
ignores: ["eslint.config.js", "vitest.config.ts", "**/dist"], | ||
}, | ||
{ | ||
files: ["**/*.ts", "**/*.tsx"], | ||
languageOptions: { | ||
parser: tsParser, | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
globals: { | ||
process: "readonly", | ||
__dirname: "readonly", | ||
}, | ||
}, | ||
plugins: { | ||
"@typescript-eslint": tsPlugin, | ||
prettier: prettierPlugin, | ||
}, | ||
rules: { | ||
...js.configs.recommended.rules, | ||
...prettier.rules, | ||
...prettierPlugin.configs.recommended.rules, | ||
...tsPlugin.configs.recommended.rules, | ||
|
||
"@typescript-eslint/switch-exhaustiveness-check": "error", | ||
"default-case": "off", | ||
"prefer-arrow/prefer-arrow-functions": "off", | ||
"eqeqeq": ["error", "smart"], | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"sort-keys": "off", | ||
"functional/prefer-readonly-type": "off", | ||
"@typescript-eslint/no-shadow": "off", | ||
"extra-rules/no-commented-out-code": "off", | ||
"max-lines-per-function": "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/await-thenable": "off", | ||
"no-redeclare": "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 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,59 @@ | ||
import tsParser from "@typescript-eslint/parser"; | ||
import tsPlugin from "@typescript-eslint/eslint-plugin"; | ||
import js from "@eslint/js"; | ||
import prettier from "eslint-config-prettier"; | ||
import prettierPlugin from "eslint-plugin-prettier"; | ||
|
||
export default [ | ||
{ | ||
ignores: ["eslint.config.js", "vitest.config.ts", "**/dist", "node_modules"], | ||
}, | ||
{ | ||
files: ["**/*.ts", "**/*.tsx"], | ||
languageOptions: { | ||
parser: tsParser, | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
globals: { | ||
process: "readonly", | ||
__dirname: "readonly", | ||
console: "readonly", | ||
setTimeout: "readonly", | ||
}, | ||
}, | ||
plugins: { | ||
"@typescript-eslint": tsPlugin, | ||
prettier: prettierPlugin, | ||
}, | ||
rules: { | ||
...js.configs.recommended.rules, | ||
...prettier.rules, | ||
...prettierPlugin.configs.recommended.rules, | ||
...tsPlugin.configs.recommended.rules, | ||
|
||
"@typescript-eslint/switch-exhaustiveness-check": "error", | ||
"default-case": "off", | ||
"prefer-arrow/prefer-arrow-functions": "off", | ||
"eqeqeq": ["error", "smart"], | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"sort-keys": "off", | ||
"functional/prefer-readonly-type": "off", | ||
"@typescript-eslint/no-shadow": "off", | ||
"extra-rules/no-commented-out-code": "off", | ||
"max-lines-per-function": "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/await-thenable": "off", | ||
"no-redeclare": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" }, | ||
], | ||
"no-console": "off", | ||
"no-undef": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-constant-condition": "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 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,49 @@ | ||
import tsParser from "@typescript-eslint/parser"; | ||
import tsPlugin from "@typescript-eslint/eslint-plugin"; | ||
import js from "@eslint/js"; | ||
import prettier from "eslint-config-prettier"; | ||
import prettierPlugin from "eslint-plugin-prettier"; | ||
|
||
export default [ | ||
{ | ||
ignores: ["eslint.config.js", "vitest.config.ts", "**/dist"], | ||
}, | ||
{ | ||
files: ["**/*.ts", "**/*.tsx"], | ||
languageOptions: { | ||
parser: tsParser, | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
globals: { | ||
process: "readonly", | ||
__dirname: "readonly", | ||
}, | ||
}, | ||
plugins: { | ||
"@typescript-eslint": tsPlugin, | ||
prettier: prettierPlugin, | ||
}, | ||
rules: { | ||
...js.configs.recommended.rules, | ||
...prettier.rules, | ||
...prettierPlugin.configs.recommended.rules, | ||
...tsPlugin.configs.recommended.rules, | ||
|
||
"@typescript-eslint/switch-exhaustiveness-check": "error", | ||
"default-case": "off", | ||
"prefer-arrow/prefer-arrow-functions": "off", | ||
"eqeqeq": ["error", "smart"], | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"sort-keys": "off", | ||
"functional/prefer-readonly-type": "off", | ||
"@typescript-eslint/no-shadow": "off", | ||
"extra-rules/no-commented-out-code": "off", | ||
"max-lines-per-function": "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/await-thenable": "off", | ||
"no-redeclare": "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
Oops, something went wrong.