1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | 'use strict';
|
9 |
|
10 |
|
11 | require('@rushstack/eslint-patch/modern-module-resolution');
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | module.exports = {
|
18 | root: true,
|
19 |
|
20 | parser: '@babel/eslint-parser',
|
21 |
|
22 | plugins: ['react'],
|
23 |
|
24 | env: {
|
25 | browser: true,
|
26 | commonjs: true,
|
27 | es6: true,
|
28 | jest: true,
|
29 | node: true,
|
30 | },
|
31 |
|
32 | parserOptions: {
|
33 | sourceType: 'module',
|
34 | requireConfigFile: false,
|
35 | babelOptions: {
|
36 | presets: [require.resolve('babel-preset-react-app/prod')],
|
37 | },
|
38 | },
|
39 |
|
40 | settings: {
|
41 | react: {
|
42 | version: 'detect',
|
43 | },
|
44 | },
|
45 |
|
46 | rules: {
|
47 | 'react/jsx-uses-vars': 'warn',
|
48 | 'react/jsx-uses-react': 'warn',
|
49 | },
|
50 | };
|