forked from aronwoost/google-calendar-hours
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (40 loc) · 1.07 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
module.exports = {
env: {
browser: true,
jest: true,
},
parser: 'babel-eslint',
extends: [
'airbnb',
'prettier',
'prettier/react',
'plugin:testing-library/react',
'plugin:jest-dom/recommended',
],
plugins: ['prettier', 'testing-library', 'jest-dom', 'no-only-tests'],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'arrow-body-style': ['error', 'as-needed'],
'import/no-named-as-default': 'off',
'no-param-reassign': 'off',
'react/jsx-fragments': ['error', 'element'],
'jsx-a11y/label-has-associated-control': [
'error',
{
labelComponents: [],
labelAttributes: [],
controlComponents: [],
assert: 'either',
depth: 25,
},
],
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: ['**/*.test.js'] },
],
'testing-library/prefer-wait-for': 'error',
'testing-library/no-manual-cleanup': 'error',
'testing-library/prefer-screen-queries': 'error',
'no-only-tests/no-only-tests': 'error',
},
};