1- import js from '@eslint/js' ;
21import prettier from 'eslint-config-prettier' ;
32import vue from 'eslint-plugin-vue' ;
4- import globals from 'globals' ;
5- import typescript from 'typescript-eslint' ;
63
7- /** @type {import('eslint').Linter.Config[] } */
8- export default [
9- js . configs . recommended ,
10- ...typescript . configs . recommended ,
11- {
12- ...vue . configs . flat . recommended ,
13- ...vue . configs [ 'flat/strongly-recommended' ] ,
14- ...vue . configs [ 'flat/essential' ] ,
15- languageOptions : {
16- globals : {
17- ...globals . browser ,
18- } ,
19- } ,
4+ import {
5+ defineConfigWithVueTs ,
6+ vueTsConfigs ,
7+ } from '@vue/eslint-config-typescript'
8+
9+ export default defineConfigWithVueTs (
10+ vue . configs [ 'flat/essential' ] ,
11+ vueTsConfigs . recommended , {
12+ ignores : [ 'vendor' , 'node_modules' , 'public' , 'bootstrap/ssr' , 'tailwind.config.js' , 'resources/js/components/ui/*' ] ,
13+ } , {
2014 rules : {
21- 'vue/match-component-import-name' : 'warn' ,
22- 'vue/match-component-file-name' : [
23- 'error' ,
24- {
25- extensions : [ 'vue' ] ,
26- shouldMatchCase : true ,
27- } ,
28- ] ,
29- 'vue/component-definition-name-casing' : [ 'error' , 'PascalCase' ] ,
30- 'vue/block-tag-newline' : [
31- 'warn' ,
32- {
33- singleline : 'always' ,
34- multiline : 'always' ,
35- maxEmptyLines : 0 ,
36- } ,
37- ] ,
38- 'vue/html-self-closing' : [
39- 'error' ,
40- {
41- html : {
42- void : 'always' ,
43- normal : 'never' ,
44- component : 'always' ,
45- } ,
46- svg : 'always' ,
47- math : 'always' ,
48- } ,
49- ] ,
50- 'vue/require-default-prop' : 'off' ,
51- } ,
52- } ,
53- {
54- plugins : {
55- '@typescript-eslint' : tseslint . plugin ,
56- } ,
57- languageOptions : {
58- parser : tseslint . parser ,
59- parserOptions : {
60- project : true ,
61- } ,
62- } ,
63- } ,
64- {
65- ignores : [ 'vendor' , 'node_modules' , 'public' , 'bootstrap/ssr' , 'tailwind.config.js' ] ,
15+ 'vue/multi-word-component-names' : 'off' ,
16+ '@typescript-eslint/no-explicit-any' : 'off'
17+ }
6618 } ,
67- prettier , // Turn off all rules that might conflict with Prettier
68- ] ;
19+ prettier
20+ )
0 commit comments