moshing-mammut/.eslintrc.cjs

30 lines
654 B
JavaScript
Raw Normal View History

2023-03-19 16:00:49 +00:00
module.exports = {
2023-03-19 16:17:04 +00:00
root: true,
parser: '@typescript-eslint/parser',
2024-01-22 15:26:06 +00:00
extends: ['plugin:svelte/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['@typescript-eslint'],
2023-03-19 16:17:04 +00:00
ignorePatterns: ['*.cjs'],
2024-01-22 15:26:06 +00:00
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
],
2023-03-19 16:17:04 +00:00
settings: {
'svelte3/typescript': () => require('typescript')
},
parserOptions: {
sourceType: 'module',
2024-01-22 15:26:06 +00:00
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
2023-03-19 16:17:04 +00:00
},
env: {
browser: true,
es2017: true,
node: true
}
2023-03-19 16:00:49 +00:00
};