-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc-ts.config.js
71 lines (71 loc) · 2.14 KB
/
.eslintrc-ts.config.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
68
69
70
71
module.exports = {
extends: [
'plugin:@next/next/recommended',
'plugin:jsdoc/recommended-typescript',
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:react-prefer-function-component/recommended',
'plugin:@tanstack/eslint-plugin-query/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
sourceType: 'module'
},
plugins: ['@typescript-eslint', 'import', 'react-hooks', '@tanstack/query', 'jsdoc'],
rules: {
'import/extensions': 'off',
'arrow-body-style': ['warn', 'always'],
'no-param-reassign': 'off',
'class-methods-use-this': 'off',
'no-underscore-dangle': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'no-console': 'warn',
curly: 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'import/order': 'warn',
'@typescript-eslint/lines-between-class-members': 'warn',
'array-element-newline': 'off',
'import/prefer-default-export': 'off',
'import/newline-after-import': 'warn',
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/check-param-names': 'off',
'default-case': 'off',
'consistent-return': 'off',
// #region Specific rules for this project
'react-hooks/exhaustive-deps': 'warn',
'react/prop-types': 'off',
'react/no-danger': 'off',
'react/require-default-props': 'off',
'react/function-component-definition': [
'error',
{
namedComponents: ['arrow-function'],
unnamedComponents: ['arrow-function']
}
],
'react/jsx-filename-extension': [
'error',
{
extensions: ['.tsx']
}
],
'react/react-in-jsx-scope': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-quotes': ['warn', 'prefer-double'],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['tailwind.config.ts']
}
]
// #endregion
}
};