2022-05-21 07:23:55 +00: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 04:18:17 +00:00
|
|
|
'svelte3/typescript': () => require('typescript')
|
2022-05-21 07:23:55 +00:00
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
2022-07-16 04:18:17 +00:00
|
|
|
ecmaVersion: 2020
|
2022-05-21 07:23:55 +00:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2017: true,
|
2022-07-16 04:18:17 +00:00
|
|
|
node: true
|
|
|
|
}
|
2022-05-21 07:23:55 +00:00
|
|
|
};
|