-
-
Notifications
You must be signed in to change notification settings - Fork 209
Expand file tree
/
Copy patheslint.config.mjs
More file actions
32 lines (31 loc) · 833 Bytes
/
eslint.config.mjs
File metadata and controls
32 lines (31 loc) · 833 Bytes
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
import antfu from '@antfu/eslint-config'
import pluginCypress from 'eslint-plugin-cypress/flat'
export default antfu({
ignores: [
'**/histoire-dist/',
'**/generated/',
'**/public/',
'**/.svelte-kit/',
],
}, {
rules: {
'curly': ['error', 'multi-line', 'consistent'],
'antfu/if-newline': 'off',
'antfu/no-import-dist': 'off',
'node/prefer-global/process': 'off',
'no-console': 'warn',
'ts/no-use-before-define': 'warn',
'vue/define-macros-order': 'off', // Bugged
'unused-imports/no-unused-vars': 'off', // Bugged on catch : https://github.com/sweepline/eslint-plugin-unused-imports/issues/105
},
}, {
files: ['**/*.vue'],
rules: {
'import/first': 'off',
},
}, {
files: ['**/*.cy.js'],
plugins: {
cypress: pluginCypress,
},
}, pluginCypress.configs.globals)