-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy patheslint.config.js
More file actions
51 lines (48 loc) · 1.4 KB
/
eslint.config.js
File metadata and controls
51 lines (48 loc) · 1.4 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
import js from '@eslint/js';
import prettierConfig from '@vue/eslint-config-prettier';
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
import pluginVue from 'eslint-plugin-vue';
import globals from 'globals';
export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['**/*.{js,ts,vue}'],
},
js.configs.recommended,
...pluginVue.configs['flat/recommended'],
prettierConfig,
vueTsConfigs.recommended,
{
ignores: [
'vendor',
'node_modules',
'public',
'tests-coverage',
'bootstrap/ssr',
'storage',
'bootstrap/cache',
'**/*.min.js',
'**/*.bundle.js',
'resources/types/Api.gen.ts', // Auto-generated from Swagger
],
},
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
},
},
rules: {
// Code quality
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-debugger': 'warn',
// Vue specific
'vue/multi-word-component-names': 'off',
'vue/no-template-shadow': 'error',
// Remove these rules, once they are fixed
'vue/block-lang': 'off',
},
},
);