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',
|
|
|
|
'plugin:svelte/recommended'
|
|
|
|
],
|
|
|
|
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
|
|
|
|
}
|
|
|
|
};
|