Skip to content

Commit 5173665

Browse files
authored
Simplify eslint dependencies for TypeScript (#1425)
* Simplify TypeScript eslint dependencies * Remove comment * Build fresh package-lock
1 parent c09159d commit 5173665

File tree

5 files changed

+298
-394
lines changed

5 files changed

+298
-394
lines changed

.eslintrc.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,17 @@ const javascriptSettings = {
1515

1616
const typescriptSettings = {
1717
files: ['*.ts'],
18-
extends: ['standard-with-typescript'],
1918
parserOptions: {
2019
project: './tsconfig.json'
2120
},
21+
plugins: [
22+
'@typescript-eslint'
23+
],
24+
extends: [
25+
'eslint:recommended',
26+
'plugin:@typescript-eslint/eslint-recommended',
27+
'plugin:@typescript-eslint/recommended'
28+
],
2229
rules: {
2330
'no-else-return': ['error', { allowElseIf: false }],
2431
'no-var': 'warn',
@@ -38,7 +45,10 @@ const typescriptSettings = {
3845
requireLast: false
3946
}
4047
}
41-
]
48+
],
49+
// Add some "standard" rules by hand, as eslint-config-standard-with-typescript painful to keep up to date
50+
quotes: ['error', 'single'],
51+
'no-trailing-spaces': 'error'
4252
}
4353
};
4454

0 commit comments

Comments
 (0)