mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-02-04 07:53:11 +00:00
47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
import js from '@eslint/js'
|
|
import pluginVue from 'eslint-plugin-vue'
|
|
|
|
export default [
|
|
{
|
|
name: 'app/files-to-lint',
|
|
files: ['**/*.{js,mjs,jsx,vue}'],
|
|
},
|
|
|
|
{
|
|
name: 'app/files-to-ignore',
|
|
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
|
|
},
|
|
|
|
js.configs.recommended,
|
|
...pluginVue.configs['flat/recommended'],
|
|
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
window: 'readonly',
|
|
document: 'readonly',
|
|
navigator: 'readonly',
|
|
location: 'readonly',
|
|
localStorage: 'readonly',
|
|
URL: 'readonly',
|
|
URLSearchParams: 'readonly',
|
|
CSS: 'readonly',
|
|
Notification: 'readonly',
|
|
requestAnimationFrame: 'readonly',
|
|
setTimeout: 'readonly',
|
|
clearTimeout: 'readonly',
|
|
setInterval: 'readonly',
|
|
clearInterval: 'readonly',
|
|
console: 'readonly',
|
|
require: 'readonly',
|
|
self: 'readonly',
|
|
caches: 'readonly',
|
|
Blob: 'readonly',
|
|
},
|
|
},
|
|
rules: {
|
|
'vue/multi-word-component-names': 'off',
|
|
},
|
|
}
|
|
]
|