-
Notifications
You must be signed in to change notification settings - Fork 303
Expand file tree
/
Copy patheslint.config.mjs
More file actions
31 lines (28 loc) · 1019 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
31 lines (28 loc) · 1019 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
// @ts-check
import withNuxt from './.nuxt/eslint.config.mjs';
export default withNuxt(
// Ignore auto-generated and declaration files
{
ignores: ['**/types/gql.ts', '**/app/gql/default.ts'],
},
// SEOHead is intentionally renderless — template has no child elements
{
files: ['**/generalElements/SEOHead.vue'],
rules: { 'vue/valid-template-root': 'off' },
},
{
rules: {
// Vue
'vue/html-self-closing': ['error', { html: { void: 'always', normal: 'never', component: 'always' } }],
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
'vue/no-v-html': 'off',
// TypeScript
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
// General
'no-console': ['warn', { allow: ['warn', 'error'] }],
'prefer-const': 'error',
'@typescript-eslint/no-unused-expressions': ['error', { allowTernary: true }],
},
},
);