-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.js
65 lines (64 loc) · 1.37 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
'use strict'
const eslintConfig = {
extends: [
'eslint:recommended'
],
parserOptions: {
"ecmaVersion": "latest"
},
env: {
"es6": true,
"node": true
},
plugins: [
'ava'
],
rules: {
'ava/no-import-test-files': 0,
'ava/no-ignored-test-files': 0,
indent: [
'error',
2,
{
CallExpression: {
arguments: 'first'
},
SwitchCase: 1
}
],
'no-console': 0,
strict: 'error',
'comma-dangle': ['error', 'never'],
semi: ['error', 'never'],
'space-before-function-paren': ['error', 'always']
},
overrides: [
{
files: ["**/*.ts"],
extends: [
'eslint:recommended',
'plugin:ava/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:promise/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript'
],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module'
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
semi: ['error', 'always'],
'space-before-function-paren': ['error', {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}]
}
}
]
}
module.exports = eslintConfig