Repository navigation
Expand file tree
/
Copy patheslint.config.js
More file actions
52 lines (51 loc) · 1.68 KB
/
Copy patheslint.config.js
File metadata and controls
52 lines (51 loc) · 1.68 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
52
import eslint from '@eslint/js';
import prettier from 'eslint-config-prettier';
import tseslint from 'typescript-eslint';
import vue from 'eslint-plugin-vue';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...vue.configs['flat/recommended'],
prettier,
{
files: ['resources/js/**/*.{ts,vue}'],
languageOptions: {
globals: {
document: 'readonly',
Element: 'readonly',
Event: 'readonly',
File: 'readonly',
HTMLImageElement: 'readonly',
HTMLInputElement: 'readonly',
IntersectionObserver: 'readonly',
KeyboardEvent: 'readonly',
localStorage: 'readonly',
location: 'readonly',
matchMedia: 'readonly',
route: 'readonly',
setTimeout: 'readonly',
URL: 'readonly',
URLSearchParams: 'readonly',
window: 'readonly',
},
parserOptions: {
parser: tseslint.parser,
},
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off',
'vue/attributes-order': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off',
'vue/no-v-text-v-html-on-component': 'off',
'vue/require-default-prop': 'off',
},
},
{
ignores: ['public/build/**', 'node_modules/**'],
linterOptions: {
reportUnusedDisableDirectives: false,
},
},
);