-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy patheslint.config.mjs
More file actions
33 lines (32 loc) · 953 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
33 lines (32 loc) · 953 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
33
// @ts-check
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(
{
rules: {
// Override quotes rule to use single quotes
'quotes': ['error', 'single', { avoidEscape: true }],
'jsx-quotes': ['error', 'prefer-single'],
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
'@stylistic/jsx-quotes': ['error', 'prefer-single'],
// Disable trailing commas
'comma-dangle': 'off',
'@stylistic/comma-dangle': 'off',
// Disable unified-signatures due to bug with Vue files
'@typescript-eslint/unified-signatures': 'off',
},
},
)