mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-18 06:28:40 -09:00
Use recommended typescript eslint rules requiring type checking
This commit is contained in:
parent
c3f91fc3bd
commit
570aab63e4
2 changed files with 30 additions and 2 deletions
|
|
@ -20,7 +20,10 @@
|
||||||
"impliedStrict": true,
|
"impliedStrict": true,
|
||||||
"experimentalObjectRestSpread": true
|
"experimentalObjectRestSpread": true
|
||||||
},
|
},
|
||||||
"allowImportExportEverywhere": true
|
"allowImportExportEverywhere": true,
|
||||||
|
"project": [
|
||||||
|
"./tsconfig.eslint.json"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"es6": true,
|
"es6": true,
|
||||||
|
|
@ -89,6 +92,7 @@
|
||||||
],
|
],
|
||||||
"extends": [
|
"extends": [
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||||
"prettier"
|
"prettier"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
@ -99,7 +103,18 @@
|
||||||
"@typescript-eslint/prefer-optional-chain": "error",
|
"@typescript-eslint/prefer-optional-chain": "error",
|
||||||
"@typescript-eslint/ban-types": "off",
|
"@typescript-eslint/ban-types": "off",
|
||||||
"no-shadow": "off",
|
"no-shadow": "off",
|
||||||
"@typescript-eslint/no-shadow": ["error"]
|
"@typescript-eslint/no-shadow": ["error"],
|
||||||
|
"@typescript-eslint/await-thenable": "off",
|
||||||
|
"@typescript-eslint/no-floating-promises": "off",
|
||||||
|
"@typescript-eslint/no-misused-promises": "off",
|
||||||
|
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
||||||
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
||||||
|
"@typescript-eslint/no-unsafe-call": "off",
|
||||||
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
||||||
|
"@typescript-eslint/no-unsafe-return": "off",
|
||||||
|
"@typescript-eslint/restrict-plus-operands": "off",
|
||||||
|
"@typescript-eslint/restrict-template-expressions": "off",
|
||||||
|
"@typescript-eslint/unbound-method": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
13
tsconfig.eslint.json
Normal file
13
tsconfig.eslint.json
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.base.json",
|
||||||
|
"include": [
|
||||||
|
"./app/",
|
||||||
|
"./lib/",
|
||||||
|
"./test/",
|
||||||
|
"./cli/",
|
||||||
|
"./",
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
"./app/index.d.ts"
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue