2024-04-04 19:17:27 +02:00
|
|
|
/** @type { import("eslint").Linter.Config } */
|
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
extends: [
|
2024-11-02 15:15:09 +01:00
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:svelte/recommended",
|
|
|
|
"prettier",
|
|
|
|
"plugin:storybook/recommended"
|
|
|
|
],
|
2024-04-04 19:17:27 +02:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|