1 | module.exports = {
|
2 | env: {
|
3 | browser: true,
|
4 | es6: true,
|
5 | node: true
|
6 | },
|
7 | parser: '@typescript-eslint/parser',
|
8 | extends: [
|
9 | 'eslint:recommended',
|
10 | 'plugin:@typescript-eslint/recommended',
|
11 | 'plugin:prettier/recommended',
|
12 | 'prettier/@typescript-eslint'
|
13 | ],
|
14 | parserOptions: {
|
15 | ecmaVersion: 2018,
|
16 | sourceType: 'module'
|
17 | },
|
18 | settings: {
|
19 | react: {
|
20 | version: 'detect'
|
21 | }
|
22 | },
|
23 | globals: {
|
24 |
|
25 | describe: 'readonly',
|
26 | it: 'readonly',
|
27 | jest: 'readonly',
|
28 | expect: 'readonly'
|
29 |
|
30 | },
|
31 | rules: {
|
32 | '@typescript-eslint/explicit-function-return-type': 'off',
|
33 | '@typescript-eslint/no-empty-interface': 'off',
|
34 | '@typescript-eslint/interface-name-prefix': 'off',
|
35 | '@typescript-eslint/no-explicit-any': 'off',
|
36 | '@typescript-eslint/no-use-before-define': ['error', { functions: false }],
|
37 | '@typescript-eslint/no-unused-vars': 'warn',
|
38 | 'no-console': 'warn',
|
39 | 'react/display-name': 'off'
|
40 | }
|
41 | };
|