-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
99 lines (98 loc) · 2.22 KB
/
Copy patheslint.config.js
File metadata and controls
99 lines (98 loc) · 2.22 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.worker
}
}
},
{
files: ['**/*.ts', '**/*.mts', '**/*.cts', '**/*.svelte.ts'],
languageOptions: {
parser: ts.parser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
},
{
ignores: [
'.DS_Store',
'.codex/',
'node_modules/',
'.cache/',
'build/',
'.svelte-kit/',
'**/.svelte-kit/',
'package/',
'dist/',
'**/dist/',
'coverage/',
'.eslintrc.cjs',
'.env',
'.env.*',
'pnpm-lock.yaml',
'package-lock.json',
'yarn.lock',
'static/',
'runtimes/*/dist/',
'runtimes/*/node_modules/',
'runtimes/*/.cache/',
'runtimes/*/artifacts/',
'runtimes/*/public/tools/',
'runtimes/wasm-dotnet/dotnet/**/bin/',
'runtimes/wasm-dotnet/dotnet/**/obj/',
'runtimes/wasm-elixir/assets/',
'runtimes/wasm-elixir/vendor/',
'runtimes/wasm-of-js-of-ocaml/.cache/',
'runtimes/wasm-of-js-of-ocaml/browser-harness/dist/',
'runtimes/wasm-of-js-of-ocaml/dist/',
'runtimes/wasm-of-js-of-ocaml/toolchain/',
'runtimes/wasm-tinygo/public/vendor/',
'tools/dool/',
'**/RISK_REGISTER.md'
]
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-control-regex': 'off',
'no-async-promise-executor': 'off',
'no-empty': 'off',
'no-extra-boolean-cast': 'off',
'no-misleading-character-class': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'no-useless-assignment': 'off',
'no-useless-escape': 'off',
'no-var': 'off',
'prefer-const': 'off',
'preserve-caught-error': 'off',
'svelte/no-navigation-without-resolve': 'off'
}
}
];