forked from R1ZEN/react-yandex-maps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
44 lines (43 loc) · 827 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
40
41
42
43
44
const {
configs: { recommended: jestRecommendedConfig },
} = require('eslint-plugin-jest');
module.exports = {
settings: {
react: {
version: 'detect',
},
},
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: ['react', '@typescript-eslint'],
parserOptions: {
ecmaVersion: 2018,
},
env: {
node: true,
es6: true,
},
overrides: [
{
extends: ['plugin:@typescript-eslint/recommended'],
files: ['**/src/**'],
parserOptions: {
sourceType: 'module',
},
env: {
browser: true,
},
},
{
files: ['**/*.test.{js,jsx}'],
...jestRecommendedConfig,
env: {
jest: true,
},
},
],
};