1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2024-11-08 19:11:31 +01:00

fix: disable no-undef using TypeScript

This commit is contained in:
Divlo 2022-02-19 22:08:50 +01:00
parent f3feed70cb
commit c026007f42
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
2 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,6 @@
} }
], ],
"no-useless-backreference": "error", "no-useless-backreference": "error",
"require-atomic-updates": "error",
"use-isnan": [ "use-isnan": [
"error", "error",
{ {
@ -164,7 +163,6 @@
"radix": "error", "radix": "error",
"require-await": "off", "require-await": "off",
"@typescript-eslint/require-await": "error", "@typescript-eslint/require-await": "error",
"spaced-comment": ["error", "always"],
"yoda": ["error", "never"], "yoda": ["error", "never"],
"import/no-absolute-path": "error", "import/no-absolute-path": "error",
@ -203,7 +201,10 @@
{ {
"files": ["*.ts", "*.tsx"], "files": ["*.ts", "*.tsx"],
"rules": { "rules": {
"no-undef": "off",
"@typescript-eslint/adjacent-overload-signatures": "error", "@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/array-type": [ "@typescript-eslint/array-type": [
"error", "error",
{ "default": "array-simple" } { "default": "array-simple" }

3
package-lock.json generated
View File

@ -36,12 +36,11 @@
}, },
"peerDependencies": { "peerDependencies": {
"@typescript-eslint/eslint-plugin": "^5.12.0", "@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"eslint": "^8.9.0", "eslint": "^8.9.0",
"eslint-plugin-import": "^2.25.4", "eslint-plugin-import": "^2.25.4",
"eslint-plugin-promise": "^6.0.0", "eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^41.0.0", "eslint-plugin-unicorn": "^41.0.0",
"typescript": "^4.5.5" "typescript": "^4.4.0"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {