-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
58 lines (58 loc) · 1.92 KB
/
Copy patheslint.config.js
File metadata and controls
58 lines (58 loc) · 1.92 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
53
54
55
56
57
58
export default [
{
files: ['resources/js/**/*.js', 'resources/js/**/*.mjs'],
ignores: ['public/build/**', 'vendor/**', 'node_modules/**'],
languageOptions: {
ecmaVersion: 2024,
sourceType: 'module',
globals: {
// Browser globals
window: 'readonly',
document: 'readonly',
console: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
setInterval: 'readonly',
clearInterval: 'readonly',
fetch: 'readonly',
localStorage: 'readonly',
navigator: 'readonly',
CustomEvent: 'readonly',
URL: 'readonly',
requestAnimationFrame: 'readonly',
// Three.js globals
OrbitControls: 'readonly',
THREE: 'readonly',
// App globals
Alpine: 'readonly',
lucide: 'readonly',
supabase: 'readonly',
Swal: 'readonly',
showSweetToast: 'readonly',
confirmReload: 'readonly',
},
},
rules: {
'no-console': ['warn', { allow: ['warn', 'error', 'log'] }],
'no-unused-vars': ['off'],
'no-undef': 'error',
'no-var': 'error',
'prefer-const': 'error',
'eqeqeq': ['error', 'always'],
'curly': ['error', 'all'],
'no-eval': 'error',
'semi': ['error', 'always'],
'quotes': ['error', 'single', { avoidEscape: true }],
'indent': 'off', // Handled by Prettier
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': ['error', { before: false, after: true }],
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'brace-style': ['error', '1tbs'],
'object-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['error', 'never'],
'max-len': ['warn', { code: 140, ignoreUrls: true, ignoreStrings: true, ignoreTemplateLiterals: true }],
'no-trailing-spaces': 'error',
'eol-last': ['error', 'always'],
},
},
];