forked from gpbl/react-day-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (46 loc) · 1.19 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
45
46
47
/* eslint-env node */
/** @type {import('eslint').Linter.Config */
const config = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
ignorePatterns: ['**/*.css.d.ts', 'dist', 'build'],
plugins: ['@typescript-eslint', 'jest'],
extends: [
'plugin:jest/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:import/recommended',
'plugin:import/typescript'
],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx']
}
},
rules: {
'import/no-unresolved': 'off',
'prettier/prettier': 'warn',
'no-console': 'warn'
},
overrides: [
{
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
env: {
jest: true
},
extends: ['plugin:jest/recommended', 'plugin:testing-library/react'],
rules: {
'testing-library/no-render-in-setup': 'off',
'testing-library/no-node-access': 'off',
'testing-library/render-result-naming-convention': 'off'
}
}
]
};
module.exports = config;