2023-10-09 06:38:42 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:svelte/recommended',
|
2024-04-27 05:32:09 +08:00
|
|
|
'plugin:cypress/recommended',
|
2023-10-09 06:38:42 +08:00
|
|
|
'prettier'
|
|
|
|
],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['@typescript-eslint'],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
extraFileExtensions: ['.svelte']
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2017: true,
|
|
|
|
node: true
|
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.svelte'],
|
|
|
|
parser: 'svelte-eslint-parser',
|
|
|
|
parserOptions: {
|
|
|
|
parser: '@typescript-eslint/parser'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|