-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 923 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
module.exports = {
extends: ['@esolidar/eslint-config-esolidar'],
rules: {
'react/react-in-jsx-scope': 'off',
},
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: ['@esolidar/eslint-config-esolidar'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
globals: {
React: true,
google: true,
mount: true,
mountWithRouter: true,
shallow: true,
shallowWithRouter: true,
context: true,
expect: true,
jsdom: true,
JSX: true,
},
rules: {
'react/react-in-jsx-scope': 'off',
'no-use-before-define': 'off',
'react/jsx-filename-extension': ['off', { extensions: ['.tsx'] }],
// '@typescript-eslint/no-use-before-define': ['error'],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
},
},
],
};