2023-05-18 17:43:09 +02:00
|
|
|
/** @type {import('eslint').Linter.Config} */
|
2022-05-21 09:23:55 +02:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2023-05-18 17:43:09 +02:00
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:svelte/recommended'
|
|
|
|
],
|
2022-05-21 09:23:55 +02:00
|
|
|
parser: '@typescript-eslint/parser',
|
2023-05-18 17:43:09 +02:00
|
|
|
plugins: ['@typescript-eslint'],
|
2022-05-21 09:23:55 +02:00
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
2023-05-18 17:43:09 +02:00
|
|
|
ecmaVersion: 2020,
|
|
|
|
extraFileExtensions: ['.svelte']
|
2022-05-21 09:23:55 +02:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2017: true,
|
2022-07-16 06:18:17 +02:00
|
|
|
node: true
|
2022-09-08 17:30:49 +02:00
|
|
|
},
|
2023-05-18 17:43:09 +02:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.svelte'],
|
|
|
|
parser: 'svelte-eslint-parser',
|
|
|
|
parserOptions: {
|
|
|
|
parser: '@typescript-eslint/parser'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-09-08 17:30:49 +02:00
|
|
|
globals: {
|
|
|
|
NodeJS: true
|
2023-05-18 17:43:09 +02:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
'warn',
|
|
|
|
{
|
|
|
|
// Allow underscore (_) variables
|
|
|
|
argsIgnorePattern: '^_$',
|
|
|
|
varsIgnorePattern: '^_$'
|
|
|
|
}
|
|
|
|
]
|
2022-07-16 06:18:17 +02:00
|
|
|
}
|
2022-05-21 09:23:55 +02:00
|
|
|
};
|