rano/eslint.config.js

34 lines
662 B
JavaScript
Raw Permalink Normal View History

2024-11-01 14:25:30 +00:00
import prettier from 'eslint-config-prettier';
2024-11-01 17:49:56 +00:00
import eslint from '@eslint/js';
2024-11-01 14:25:30 +00:00
import svelte from 'eslint-plugin-svelte';
2024-11-01 17:49:56 +00:00
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
process: true
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: tseslint.parser
}
}
},
{
ignores: ['.svelte-kit/', 'web/public/build']
}
);