Anvil/.eslintrc.cjs
André Jaenisch e248e0073d
chore: setup and configure default Storybook
I had to downgrade Vite because the Storybook builder does not support
v5 yet. Therefore this will be on a separate branch and updated as we
move along with the codebase.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-07-04 08:21:34 +02:00

30 lines
650 B
JavaScript

// SPDX-FileCopyrightText: 2023 Pere Lev
//
// SPDX-License-Identifier: AGPL-3.0-or-later
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:svelte/recommended',
'plugin:storybook/recommended'
],
plugins: ['@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], parser: 'svelte-eslint-parser' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2023
},
env: {
browser: true,
es2023: true,
node: true
}
};