Skip to content

Commit

Permalink
Simplify eslint dependencies for TypeScript (#1425)
Browse files Browse the repository at this point in the history
* Simplify TypeScript eslint dependencies

* Remove comment

* Build fresh package-lock
  • Loading branch information
shadowspawn committed Dec 27, 2020
1 parent c09159d commit 5173665
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 394 deletions.
14 changes: 12 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ const javascriptSettings = {

const typescriptSettings = {
files: ['*.ts'],
extends: ['standard-with-typescript'],
parserOptions: {
project: './tsconfig.json'
},
plugins: [
'@typescript-eslint'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
],
rules: {
'no-else-return': ['error', { allowElseIf: false }],
'no-var': 'warn',
Expand All @@ -38,7 +45,10 @@ const typescriptSettings = {
requireLast: false
}
}
]
],
// Add some "standard" rules by hand, as eslint-config-standard-with-typescript painful to keep up to date
quotes: ['error', 'single'],
'no-trailing-spaces': 'error'
}
};

Expand Down

0 comments on commit 5173665

Please sign in to comment.