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