2022-05-21 09:23:55 +02:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
|
|
|
|
plugins: ['svelte3', '@typescript-eslint'],
|
|
|
|
ignorePatterns: ['*.cjs'],
|
|
|
|
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
|
|
|
|
settings: {
|
2022-07-16 06:18:17 +02:00
|
|
|
'svelte3/typescript': () => require('typescript')
|
2022-05-21 09:23:55 +02:00
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
2022-07-16 06:18:17 +02:00
|
|
|
ecmaVersion: 2020
|
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
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
NodeJS: true
|
2022-07-16 06:18:17 +02:00
|
|
|
}
|
2022-05-21 09:23:55 +02:00
|
|
|
};
|