2024-04-17 01:38:43 +00:00
|
|
|
/** @type { import("eslint").Linter.Config } */
|
2022-01-28 05:27:12 +00:00
|
|
|
module.exports = {
|
2023-05-05 22:53:35 +00:00
|
|
|
root: true,
|
2023-12-15 01:53:15 +00:00
|
|
|
extends: [
|
|
|
|
|
'eslint:recommended',
|
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
|
'plugin:svelte/recommended',
|
|
|
|
|
'prettier'
|
|
|
|
|
],
|
2023-05-05 22:53:35 +00:00
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
|
plugins: ['@typescript-eslint'],
|
2023-12-15 01:53:15 +00:00
|
|
|
parserOptions: {
|
|
|
|
|
sourceType: 'module',
|
|
|
|
|
ecmaVersion: 2020,
|
2023-12-20 01:54:39 +00:00
|
|
|
extraFileExtensions: ['.svelte']
|
|
|
|
|
},
|
|
|
|
|
env: {
|
|
|
|
|
browser: true,
|
|
|
|
|
es2017: true,
|
|
|
|
|
node: true
|
2023-12-15 01:53:15 +00:00
|
|
|
},
|
2023-05-05 22:53:35 +00:00
|
|
|
overrides: [
|
|
|
|
|
{
|
|
|
|
|
files: ['*.svelte'],
|
|
|
|
|
parser: 'svelte-eslint-parser',
|
|
|
|
|
parserOptions: {
|
|
|
|
|
parser: '@typescript-eslint/parser'
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-12-20 01:54:39 +00:00
|
|
|
]
|
|
|
|
|
};
|