forked from react95-io/React95
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
28 lines (28 loc) · 823 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
module.exports = {
extends: ['airbnb', 'plugin:prettier/recommended', 'prettier/react'],
parser: 'babel-eslint',
plugins: ['react', 'prettier'],
env: {
browser: true,
es6: true,
jest: true
},
rules: {
'import/no-unresolved': ['error', { ignore: ['react95'] }],
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'jsx-a11y/label-has-associated-control': [
'error',
{
required: {
some: ['nesting', 'id']
}
}
],
'jsx-a11y/label-has-associated-control': ['error', { assert: 'either' }],
'jsx-a11y/label-has-for': 'off',
'prettier/prettier': 'error',
'react/no-array-index-key': 'off',
'react/forbid-prop-types': 'off'
}
};