-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (42 loc) · 921 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
module.exports = {
root: true,
env: {
es6: true,
browser: true,
node: true,
},
extends: ['eslint-config-lundegaard'],
rules: {
'import/order': ['error', { 'newlines-between': 'always' }],
'sort-imports': [
'error',
{
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
},
],
// for qraphql queries
'react/prop-types': ['error', { ignore: ['data', 'sx'] }],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'tools/**/*.js',
'packages/**/*.test.js',
'apps/**/*.test.js',
'apps/**/gatsby-config.js',
'apps/**/gatsby-ssr.js',
'apps/**/.storybook-ui/*',
'testsSetup.js',
'*.config.js',
'apps/**/*.config.js',
'packages/**/*.config.js',
'rollup.config.js',
],
},
],
// conflicts with Prettier
},
};