-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
60 lines (59 loc) · 2.1 KB
/
eslint.config.mjs
File metadata and controls
60 lines (59 loc) · 2.1 KB
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
import { createConfigForNuxt } from '@nuxt/eslint-config/flat';
// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
export default createConfigForNuxt({
features: {
// Rules for module authors
tooling: true,
// Rules for formatting
stylistic: true,
},
dirs: {
src: ['./playground'],
},
}).append(
// your custom flat config here...
{
rules: {
// '@typescript-eslint/explicit-module-boundary-types': 'off',
'no-shadow': 'error',
'no-unused-labels': 'warn',
'no-unused-expressions': 'warn',
'no-duplicate-imports': 'off',
'no-console': 'off',
// 'no-console': ['error', { allow: ['warn', 'error', 'debug'] }],
'no-debugger': 'warn',
'@stylistic/indent': ['off', 4],
'@stylistic/semi': ['warn', 'always'],
'@stylistic/operator-linebreak': ['off'],
'@stylistic/jsx-one-expression-per-line': ['off'],
'@stylistic/member-delimiter-style': [
'warn',
{ multiline: { delimiter: 'semi' } },
],
'@stylistic/brace-style': ['warn', '1tbs'],
'@stylistic/quote-props': ['off'],
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@stylistic/jsx-curly-brace-presence': ['off'],
'@stylistic/jsx-indent-props': ['off'],
// '@typescript-eslint/consistent-type-imports': 'error',
// '@typescript-eslint/no-unused-vars': [
// 2,
// {
// args: 'all',
// argsIgnorePattern: '^_',
// varsIgnorePattern: '^_',
// caughtErrors: 'none',
// caughtErrorsIgnorePattern: '^_',
// },
// ],
},
ignores: [
'dist',
'node_modules',
'playground/.nuxt',
'playground/.output',
'playground/bcms',
],
},
);