-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (41 loc) · 975 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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
env: {
browser: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['import', 'prettier'],
settings: {
"import/resolver": {
"node": true,
"typescript": true
},
},
rules: {
'import/extensions': [
'error',
'always',
// hide known extensions that are resolved by webpack
{
js: 'never',
ts: 'never',
},
],
// prettier compatibility
'max-len': 0,
'prettier/prettier': [
'error',
{ singleQuote: true, trailingComma: 'all', printWidth: 100, tabWidth: 2 },
],
// only for use with getter-setters
'no-underscore-dangle': 0,
// to correctly work on windows with some tools that create windows line-endings
// this will be correct by git when committed
'linebreak-style': 0
},
};