-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.28 KB
/
.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
45
46
47
48
49
50
51
52
53
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@next/next/recommended',
'plugin:react/recommended',
'plugin:import/errors',
'plugin:import/typescript',
'plugin:import/warnings',
'prettier',
],
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
globals: {
Feature: true,
Scenario: true,
cy: true,
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'@typescript-eslint/no-explicit-any': ['error', { fixToUnknown: true }],
'arrow-body-style': [2, 'as-needed'],
'class-methods-use-this': 0,
'comma-dangle': [2, 'always-multiline'],
'eol-last': 0,
'func-names': 0,
'global-require': 0,
'implicit-arrow-linebreak': 'off',
'import/imports-first': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'max-len': 0,
'new-cap': 0,
'no-confusing-arrow': 'off',
'no-console': ['error', { allow: ['info', 'error'] }],
'no-param-reassign': ['error', { props: false }],
'no-underscore-dangle': 0,
'no-use-before-define': 0,
'object-curly-newline': 'off',
'react/prop-types': 'off',
semi: 2,
},
};