forked from Niek/chatgpt-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
35 lines (35 loc) · 1.11 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
extraFileExtensions: ['.svelte']
},
extends: ['standard-with-typescript'],
plugins: [
'svelte3',
'@typescript-eslint'
],
// Disable these rules: import/first, import/no-duplicates, import/no-mutable-exports, import/no-unresolved, import/prefer-default-export
// Reference: https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/OTHER_PLUGINS.md#eslint-plugin-import
rules: {
'import/first': 'off',
'import/no-duplicates': 'off',
'import/no-mutable-exports': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 2, maxEOF: 0 }] // See: https://github.com/sveltejs/eslint-plugin-svelte3/issues/41
},
overrides: [
{
files: [
'**/*.svelte'
],
processor: 'svelte3/svelte3'
}
],
settings: {
'svelte3/typescript': true
},
ignorePatterns: ['node_modules/*', 'dist/*', 'src-tauri/*', '.eslintrc.cjs', '*.json']
}