2023-02-24 12:46:41 +03:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
parser: '@typescript-eslint/parser',
|
2023-03-27 18:24:18 +03:00
|
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
|
2023-02-24 12:46:41 +03:00
|
|
|
plugins: ['svelte3', '@typescript-eslint'],
|
|
|
|
ignorePatterns: ['*.cjs'],
|
2023-03-27 18:24:18 +03:00
|
|
|
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
|
2023-02-24 12:46:41 +03:00
|
|
|
settings: {
|
|
|
|
'svelte3/typescript': () => require('typescript')
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
|
|
|
ecmaVersion: 2020
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2017: true,
|
|
|
|
node: true
|
2023-02-24 13:00:17 +03:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-namespace': 'off',
|
|
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off'
|
2023-02-24 12:46:41 +03:00
|
|
|
}
|
|
|
|
};
|