mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
add .eslintrc for src and scripts. update typescript-eslint
This commit is contained in:
29
src/.eslintrc.json
Normal file
29
src/.eslintrc.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"extends": "../.eslintrc.json",
|
||||
"parserOptions": {
|
||||
"tsconfigRootDir": "src",
|
||||
"project": "./tsconfig-base.json"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["lib/*.d.ts"],
|
||||
"rules": {
|
||||
"@typescript-eslint/interface-name-prefix": "off",
|
||||
"@typescript-eslint/prefer-function-type": "off",
|
||||
"@typescript-eslint/unified-signatures": "off",
|
||||
|
||||
// scripts/eslint/rules
|
||||
"no-keywords": "off",
|
||||
|
||||
// eslint
|
||||
"no-var": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["lib/es2019.array.d.ts"],
|
||||
"rules": {
|
||||
"@typescript-eslint/array-type": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,4 +15,4 @@ try {
|
||||
watcher.close();
|
||||
}
|
||||
catch { /*ignore*/ }
|
||||
process.exit(0);
|
||||
process.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user