-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.mjs
More file actions
95 lines (92 loc) · 2.42 KB
/
eslint.config.mjs
File metadata and controls
95 lines (92 loc) · 2.42 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* Copyright (c) 2025 BadLabs
*
* Use of this software is governed by the Business Source License 1.1 included in the file LICENSE.txt.
*
* As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, version 2.0.
*/
// eslint.config.mjs
import antfu from '@antfu/eslint-config'
export default antfu(
{
// Existing configuration
type: 'lib',
stylistic: {
indent: 2,
quotes: 'single',
},
typescript: true,
jsx: true,
react: true,
gitignore: true,
toml: true,
jsonc: true,
formatters: {
css: true,
html: true,
markdown: 'prettier',
graphql: 'prettier',
},
ignores: [
'**/fixtures',
'**/*.generated.*',
'packages/badai-api/src/gql/client/**/*',
'packages/badai-api/schema.graphql',
'**/*.md',
'**/ecosystem.config.js',
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/.nuxt/**',
'**/.output/**',
'**/.vercel/**',
'**/.turbo/**',
'**/coverage/**',
'**/.git/**',
'**/.hg/**',
'**/.svn/**',
'**/.DS_Store',
'**/Thumbs.db',
'**/*.min.*',
'**/CHANGELOG',
'**/LICENSE*',
'**/README*',
'**/*.config.js',
'**/*.config.cjs',
'**/*.config.mjs',
'**/vite.config.*',
'**/webpack.config.*',
'**/rollup.config.*',
'**/gulpfile.*',
'**/Gruntfile.*',
'**/jest.config.*',
'**/babel.config.*',
'**/tsconfig*.json',
'**/pnpm-lock.yaml',
'**/package-lock.json',
'**/yarn.lock',
'**/.conductor/**/*',
],
},
// Add custom rules
{
rules: {
'ts/explicit-function-return-type': 'off',
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'unused-imports/no-unused-vars': 'off',
'no-unused-variable': 'off',
'no-unused-vars': 'off',
// '@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
'ts/no-unsafe-function-type': 'off',
'no-console': 'off',
// imports
'import/order': 'off',
'import/first': 'off',
'import/no-duplicates': 'off',
'sort-imports': 'off',
'simple-import-sort/imports': 'off',
'antfu/imports-order': 'off', // Specifically for @antfu/eslint-config
'style/eol-last': 'off'
},
},
)