-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (65 loc) · 1.87 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const { resolve } = require('node:path');
const project = resolve(__dirname, 'tsconfig.json');
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
require.resolve('@vercel/style-guide/eslint/browser'),
require.resolve('@vercel/style-guide/eslint/typescript'),
require.resolve('@vercel/style-guide/eslint/react'),
'plugin:tailwindcss/recommended',
'plugin:cypress/recommended',
],
ignorePatterns: [
'node_modules',
'dist',
'build',
'coverage',
'cypress',
'cypress.config.ts',
'**/*.js',
],
parserOptions: {
project,
},
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
rules: {
'no-shadow': 'error',
'react/self-closing-comp': 'error',
'react/no-array-index-key': 'error',
'unicorn/filename-case': 'off',
'import/no-default-export': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'react/function-component-definition': 'off',
'eslint-comments/require-description': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/restrict-template-expressions': [
'error',
{ allowNumber: true },
],
'@typescript-eslint/no-misused-promises': [
'error',
{ checksVoidReturn: false },
],
'no-console': ['warn', { allow: ['warn', 'error'] }],
'import/no-cycle': 'off',
},
};