forked from unlock-protocol/unlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·67 lines (67 loc) · 1.68 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
module.exports = {
extends: [
'standard',
'airbnb',
'eslint:recommended',
'prettier',
'plugin:prettier/recommended',
],
env: {
es6: true,
node: true,
browser: true,
jest: true,
},
plugins: ['jest', 'promise', 'import', '@typescript-eslint', 'prettier'],
parser: '@typescript-eslint/parser',
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
// use <root>/tsconfig.json
typescript: {},
},
},
rules: {
'prettier/prettier': 'error',
'linebreak-style': ['error', 'unix'],
quotes: [
'error',
'single',
{ avoidEscape: true, allowTemplateLiterals: false },
],
'no-multiple-empty-lines': [
'error',
{
max: 1,
maxEOF: 0,
maxBOF: 0,
},
],
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true,
argsIgnorePattern: '^_\\S*$',
},
],
'brace-style': 0,
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 0,
'standard/computed-property-even-spacing': 0,
'standard/object-curly-even-spacing': 0,
'standard/array-bracket-even-spacing': 0,
'promise/prefer-await-to-then': 'warn',
'jest/no-disabled-tests': 'warn',
'jest/no-identical-title': 'error',
'jest/no-focused-tests': 'error',
'jest/prefer-expect-assertions': 'error',
'react/jsx-props-no-spreading': 0, // TODO: consider changing to error to tighten things up
'import/prefer-default-export': 'off',
semi: ['error', 'never'],
'import/extensions': [2, 'never'],
},
}