-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.js
39 lines (39 loc) · 988 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
module.exports = {
extends: [
'eslint:recommended',
'prettier',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:storybook/recommended',
'plugin:testing-library/react',
'plugin:jest-dom/recommended',
],
plugins: ['react', 'jest', 'testing-library', 'jest-dom', 'prettier', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
env: {
browser: true,
node: true,
commonjs: true,
jest: true,
es6: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
modules: true,
arrowFunctions: true,
restParams: true,
experimentalObjectRestSpread: true,
},
},
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-unused-vars': ['warn'],
},
};