-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
40 lines (37 loc) · 840 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
// @flow
const OFF = 0;
const ERROR = 2;
module.exports = {
root: true,
plugins: ['sx'],
extends: ['@adeira/eslint-config/strict'],
// adjust the rules as needed
parser: 'babel-eslint',
env: {
jest: true,
node: true,
browser: true,
es6: true,
},
rules: {
'adeira/relay-import-no-values': OFF,
'sx/no-unused-stylesheet': ERROR,
'react/react-in-jsx-scope': OFF,
'import/no-unresolved': OFF,
'import/no-extraneous-dependencies': [
ERROR,
{
devDependencies: [
'**/*.test.js',
'**/scripts/**/*.js',
'**/mocks/**/*.js',
'**/*.stories.js',
'src/app1/webpack.config.js',
'**/test-utils/**/*.js',
],
},
],
'flowtype/require-inexact-type': OFF,
'adeira/only-nullable-fields': OFF,
},
};