-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
41 lines (40 loc) · 902 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
const eslintConfig = {
extends: [
'eslint:recommended',
'plugin:ava/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:promise/recommended',
'standard',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
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', 'only-multiline'],
semi: ['error', 'always'],
'space-before-function-paren': ['error', 'never']
},
};
module.exports = eslintConfig;