-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
48 lines (47 loc) · 1015 Bytes
/
.eslintrc.js
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
36
37
38
39
40
41
42
43
44
45
46
47
48
const typescriptRules = {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/no-unused-vars': 'warn'
}
module.exports = {
extends: [
// js/ts specific
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'typescript',
// jest
'plugin:jest/recommended',
'plugin:jest/style',
// must be last for prettier to work well with eslint
'prettier'
],
env: {
es6: true,
node: true
},
rules: {
quotes: [
'warn',
'single',
{ avoidEscape: true, allowTemplateLiterals: false }
],
'no-console': 'warn'
},
overrides: [
{
files: ['**/*.ts?(x)'],
excludedFiles: ['e2e/**'],
parserOptions: {
project: './tsconfig.json'
},
rules: typescriptRules
},
{
files: ['e2e/**/*.ts?(x)'],
parserOptions: {
project: './e2e/tsconfig.json'
},
rules: typescriptRules
}
]
}