-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (49 loc) · 1.4 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
/** @type {import('@types/eslint').Linter.BaseConfig} */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['tsconfig.json']
},
extends: [
'@remix-run/eslint-config',
'@remix-run/eslint-config/node',
'prettier',
'eslint:recommended',
'plugin:sonarjs/recommended'
],
env: {
'cypress/globals': true,
node: true,
browser: true,
amd: true
},
plugins: ['cypress', 'react-hooks', 'sonarjs', 'no-relative-import-paths'],
settings: {
jest: {
version: 28
},
react: {
version: 'detect'
}
},
rules: {
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-duplicate-imports': 'error',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'no-console': 'off',
'no-debugger': 'error',
'no-duplicate-imports': 0,
'no-relative-import-paths/no-relative-import-paths': ['error', { allowSameFolder: true, rootDir: 'src' }],
'no-unused-vars': 'off',
'react-hooks/exhaustive-deps': 'error',
'react/display-name': 0,
'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
'require-await': 'warn',
complexity: ['warn', 15],
eqeqeq: ['warn', 'smart']
}
};