-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·81 lines (80 loc) · 2.19 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: '.',
ecmaVersion: 2018,
ecmaFeatures: {
jsx: true
}
},
extends: [
// '@react-native-community',
// 'airbnb-typescript',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
// 'prettier/react',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:prettier/recommended',
],
plugins: [
'prettier',
'@typescript-eslint',
'import',
'jsdoc'
],
env: {
node: true,
browser: true,
es6: true
},
settings: {
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx', '.test.ts']
},
'import/resolver': {
'typescript': {
'alwaysTryTypes': true
}
}
},
rules: {
//indent: [2, 4],
'object-curly-spacing': [2, 'always'],
//'@typescript-eslint/indent': [2, 4],
'spaced-comment': [2, 'always', { markers: ['/'] }],
quotes: [2, 'single'],
'lines-between-class-members': 0,
'import/prefer-default-export': 0,
'import/no-unresolved': 2,
'import/named': 2,
'import/namespace': 2,
'import/default': 2,
'import/export': 2,
'prettier/prettier': 0,
/*'react/jsx-filename-extension': [
2,
{
extensions: ['.js', '.jsx'],
},
],
'react/jsx-indent': [2, 4],
'react/forbid-prop-types': 0,
'react/prefer-stateless-function': 0,
'react/jsx-props-no-spreading': 0,
'react/destructuring-assignment': 0*/
'jsdoc/check-alignment': 1,
'jsdoc/check-indentation': 1,
'jsdoc/check-param-names': 1,
'no-warning-comments': [1, {
terms: ['todo', 'fixme'],
location: 'anywhere'
}]
}
};