-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
45 lines (44 loc) · 988 Bytes
/
Copy path.eslintrc.js
File metadata and controls
45 lines (44 loc) · 988 Bytes
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
const path = require('path');
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
plugins: ['react', '@typescript-eslint/eslint-plugin'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'eslint-config-prettier',
'eslint-config-prettier/@typescript-eslint',
'plugin:jest/recommended',
],
rules: {
strict: ['error', 'never'],
},
env: {
browser: true,
},
overrides: [
{
files: ['**/src/**'],
settings: { 'import/resolver': 'webpack' },
},
{
files: ['**/__test__/**'],
settings: {
'import/resolver': {
jest: {
jestConfigFile: path.join(__dirname, './jest.config.js'),
},
},
},
},
],
};