-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (43 loc) · 1.14 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
41
42
43
44
const path = require('path');
module.exports = {
ignorePatterns: ['dist/'],
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
"prettier",
"prettier/@typescript-eslint",
"plugin:react/recommended"
],
plugins: ['@typescript-eslint', 'testing-library'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/prop-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'error',
},
overrides: [
{
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
"extends": ["plugin:testing-library/react"],
rules: {
'testing-library/await-async-utils': 'error',
'testing-library/prefer-screen-queries': 'off',
'testing-library/no-node-access': 'off',
'testing-library/render-result-naming-convention': 'off',
'testing-library/no-container': 'off',
}
},
],
};