generated from christian-bromann/typescript-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
35 lines (33 loc) · 917 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings'
],
env: {
node: true,
es6: true,
jest: true
},
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module'
},
rules: {
semi: ['error', 'never'],
quotes: ['error', 'single'],
indent: [2, 4],
'no-constant-condition': 0,
// see https://stackoverflow.com/questions/55280555/typescript-eslint-eslint-plugin-error-route-is-defined-but-never-used-no-un
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'import/no-unresolved': 0,
'import/named': 2,
'import/namespace': 2,
'import/default': 0,
'import/export': 2,
}
}