-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.js
56 lines (51 loc) · 1.28 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json', './__tests__/simple-service/tsconfig.json', './__tests__/tls-service/tsconfig.json']
},
plugins: [
'simple-import-sort',
'prettier'
],
extends: [
'airbnb',
'airbnb/hooks',
'airbnb-typescript',
'plugin:import/electron',
'prettier',
'plugin:storybook/recommended'
],
env: {
browser: true,
es6: true,
node: true
},
rules: {
'prettier/prettier': ['error', {
printWidth: 100,
singleQuote: true,
trailingComma: 'es5'
}],
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': [
'error',
{
'devDependencies': [
'**/*.stories.*',
'**/.storybook/**/*.*'
],
'peerDependencies': true
}
],
'react/prop-types': 'off',
'react/function-component-definition': 'off',
'react/require-default-props': 'off',
'react/jsx-props-no-spreading': 'off',
'react-hooks/exhaustive-deps': 'off',
'simple-import-sort/imports': [
'error',
{ 'groups': [['^\\u0000'], ['^[^.]'], ['^@(context|hooks|layouts|components|storage|core|core/types)'], ['^\\.'], ['^.+\\.s?css$']] }
],
'no-plusplus': 'off'
}
};