-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
51 lines (51 loc) · 1.42 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: ['eslint:recommended', 'airbnb', 'airbnb-typescript', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['prettier', '@typescript-eslint', 'react-hooks'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
ignorePatterns: [
'jest.config.ts',
'jest.setup.ts',
'.eslintrc.cjs',
'vite.config.ts',
'postcss.config.js',
'tailwind.config.js',
'engine/**',
'pnpm-lock.yaml',
],
settings: {
'import/resolver': {
node: {
paths: ['src'],
},
},
},
rules: {
'import/no-extraneous-dependencies': [
'error',
{
packageDir: [__dirname],
},
],
'@typescript-eslint/lines-between-class-members': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-loss-of-precision': 'off',
'@typescript-eslint/no-useless-constructor': 'off',
'arrow-body-style': 'warn',
'import/no-cycle': 'off',
'import/prefer-default-export': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'react/button-has-type': 'off',
'react/destructuring-assignment': 'off',
'react/function-component-definition': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
},
}