add .eslintrc for src and scripts. update typescript-eslint

This commit is contained in:
Alexander T
2019-08-14 12:33:58 +03:00
parent b3afb55d7a
commit 466ee10011
10 changed files with 73 additions and 57 deletions

29
src/.eslintrc.json Normal file
View 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"
}
}
]
}

View File

@@ -15,4 +15,4 @@ try {
watcher.close();
}
catch { /*ignore*/ }
process.exit(0);
process.exit(0);