Skip to content

Commit

Permalink
ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait committed Oct 7, 2023
1 parent a37b0f4 commit 4d8a9c9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions web/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
extends: ['plugin:svelte/recommended'],
plugins: ['@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: { parser: '@typescript-eslint/parser' }
}
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
Expand All @@ -16,5 +19,8 @@ module.exports = {
browser: true,
es2017: true,
node: true
},
rules: {
'svelte/valid-compile': 'off'
}
};

0 comments on commit 4d8a9c9

Please sign in to comment.