-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy patheslint.config.mjs
59 lines (58 loc) · 1.05 KB
/
eslint.config.mjs
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
import * as myPlugin from '@ota-meshi/eslint-plugin';
import globals from 'globals';
/**
* @type {import('eslint').Linter.Config[]}
*/
const config = [
{
ignores: [
'node_modules/',
'.svelte-kit/',
'build/',
'shim/eslint.mjs',
'shim/assert.mjs',
'src/routes/*.md',
'src/routes/**/*.md',
'src/app.html'
]
},
...myPlugin.config({
eslintPlugin: true,
ts: true,
json: true,
packageJson: true,
yaml: true,
md: true,
prettier: true,
svelte: { withTs: false }
}),
{
languageOptions: {
sourceType: 'module',
globals: {
...globals.browser,
require: 'readonly'
}
}
},
{
rules: {
'jsdoc/require-jsdoc': 'off',
'@typescript-eslint/no-shadow': 'off',
'no-shadow': 'off',
'@typescript-eslint/naming-convention': 'off',
'new-cap': 'off',
complexity: 'off',
'n/no-missing-import': 'off',
'n/file-extension-in-import': 'off',
'n/no-extraneous-import': 'off'
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: { project: null }
}
}
];
export default config;