2024-03-06 16:03:12 +01:00
|
|
|
// SPDX-FileCopyrightText: 2023 Pere Lev
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2023-05-03 11:28:02 +02:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
parser: '@typescript-eslint/parser',
|
2023-12-20 23:10:18 +01:00
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'prettier',
|
2024-02-08 10:43:55 +01:00
|
|
|
'plugin:svelte/recommended',
|
|
|
|
'plugin:storybook/recommended'
|
2023-12-20 23:10:18 +01:00
|
|
|
],
|
|
|
|
plugins: ['@typescript-eslint'],
|
2023-05-03 11:28:02 +02:00
|
|
|
ignorePatterns: ['*.cjs'],
|
2023-12-20 23:10:18 +01:00
|
|
|
overrides: [{ files: ['*.svelte'], parser: 'svelte-eslint-parser' }],
|
2023-05-03 11:28:02 +02:00
|
|
|
settings: {
|
|
|
|
'svelte3/typescript': () => require('typescript')
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
2023-12-20 23:10:18 +01:00
|
|
|
ecmaVersion: 2023
|
2023-05-03 11:28:02 +02:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
2023-12-20 23:10:18 +01:00
|
|
|
es2023: true,
|
2023-05-03 11:28:02 +02:00
|
|
|
node: true
|
|
|
|
}
|
|
|
|
};
|