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