Rinze/.eslintrc.cjs

33 lines
619 B
JavaScript
Raw Normal View History

2023-08-08 13:07:27 +00:00
kk// TypeScript Project
2021-04-28 04:13:36 +00:00
module.exports = {
2023-08-08 13:07:27 +00:00
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
2021-04-28 04:13:36 +00:00
};