-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.cjs
47 lines (42 loc) · 1.36 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
module.exports = {
root: true,
extends: ['plugin:unicorn/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:tailwindcss/recommended', 'prettier', 'plugin:storybook/recommended'],
plugins: ['unicorn', 'tailwindcss', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
settings: {
tailwindcss: {
config: 'tailwind/default.config.ts',
},
},
overrides: [
{
files: ['*.ts'],
rules: {
'unicorn/filename-case': 'error',
},
},
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': 'off',
'no-undef': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'unicorn/filename-case': 'off',
'unicorn/no-null': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/template-indent': 'off',
// 'vue/require-expose': 'error',
// 'import/default': 'off',
// 'vue/script-setup-uses-vars': 'error',
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/classnames-order': 'error',
},
}