-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
44 lines (42 loc) · 964 Bytes
/
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
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import solid from 'eslint-plugin-solid/configs/recommended';
import globals from 'globals';
export default [
{
ignores: ['dist/**/*', '**/*.js', '**/*.cjs', '**/*.mjs'],
},
{
files: ['**/*.{ts,tsx}'],
...solid,
},
{
plugins: {
'@typescript-eslint': typescriptEslint,
},
languageOptions: {
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.node,
},
},
rules: {
'@typescript-eslint/no-unused-vars': [
1,
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'solid/no-unknown-namespaces': [
'off',
{
// an array of additional namespace names to allow
allowedNamespaces: [], // Array<string>
},
],
},
},
];