trifid/tfweb/.eslintrc.cjs

30 lines
529 B
JavaScript
Raw Permalink Normal View History

2023-02-20 04:23:19 +00:00
module.exports = {
root: true,
2023-05-30 22:50:47 +00:00
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended'
],
2023-02-20 04:23:19 +00:00
parser: '@typescript-eslint/parser',
2023-05-30 22:50:47 +00:00
plugins: ['@typescript-eslint'],
2023-02-20 04:23:19 +00:00
parserOptions: {
sourceType: 'module',
2023-05-30 22:50:47 +00:00
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
2023-02-20 04:23:19 +00:00
},
env: {
browser: true,
es2017: true,
node: true
2023-05-30 22:50:47 +00:00
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
2023-02-20 04:23:19 +00:00
};