36 lines
794 B
JavaScript
36 lines
794 B
JavaScript
import js from '@eslint/js';
|
|||
|
|
import svelte from 'eslint-plugin-svelte';
|
||
|
|
import prettier from 'eslint-config-prettier';
|
||
|
|
|
||
|
|
export default [
|
||
|
|
js.configs.recommended,
|
||
|
|
...svelte.configs.recommended,
|
||
|
|
prettier,
|
||
|
|
...svelte.configs.prettier,
|
||
|
|
{
|
||
|
|
languageOptions: {
|
||
|
|
globals: {
|
||
|
|
console: 'readonly',
|
||
|
|
fetch: 'readonly',
|
||
|
|
window: 'readonly',
|
||
|
|
document: 'readonly',
|
||
|
|
localStorage: 'readonly',
|
||
|
|
setTimeout: 'readonly',
|
||
|
|
clearTimeout: 'readonly',
|
||
|
|
navigator: 'readonly',
|
||
|
|
__FRONTEND_TECH_STACK__: 'readonly',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ['*.config.js'],
|
||
|
|
languageOptions: {
|
||
|
|
globals: {
|
||
|
|
process: 'readonly',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
ignores: ['build/', '.svelte-kit/', 'dist/', 'node_modules/'],
|
||
|
|
},
|
||
|
|
];
|