-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
52 lines (52 loc) · 1.21 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
const path = require('path');
module.exports = {
parser: "babel-eslint",
globals: {
graphql: false,
config: false,
},
rules: {
'global-require': 'off',
'react/prop-types': 'off',
'react/no-unescaped-entities': 'off',
'import/order': 'off',
'import/named': 'off',
'import/no-useless-path-segments': 'off',
'import/no-duplicates': 'off',
'import/no-cycle': 'off',
'import/no-named-as-default-member': 'off',
'import/no-self-import': 'off',
'import/no-webpack-loader-syntax': 'off',
'prefer-arrow-callback': 'off',
'jsx-a11y/label-has-associated-control': 'off', // this rule doesn't work..
},
settings: {
'import/resolver': {
webpack: {
config: {
resolve: {
alias: {
'@ahaui/react': path.resolve(__dirname, './aha-react/src'),
},
},
},
},
},
},
overrides: [
{
files: ['src/examples/**'],
rules: {
'comma-dangle': 'off',
'max-classes-per-file': 'off',
'no-console': 'off',
},
},
{
files: ['config.js', 'gatsby-config.js', 'gatsby-node.js'],
settings: {
'import/resolver': 'node'
}
}
],
};