-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy patheslint.config.mjs
46 lines (43 loc) · 1.31 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
import tamiaTypeScriptReact from 'eslint-config-tamia/typescript-react';
import markdown from '@eslint/markdown';
export default [
...tamiaTypeScriptReact,
...markdown.configs.processor,
{
rules: {
// Can't disable these for a particular example because
// of the prettier-ignore comment
curly: 'off',
'no-cond-assign': 'off',
'no-constant-condition': 'off',
'no-extra-label': 'off',
'no-labels': 'off',
'no-lone-blocks': 'off',
'no-unreachable': 'off',
'no-unused-labels': 'off',
'unicorn/no-abusive-eslint-disable': 'off',
'unicorn/no-negation-in-equality-check': 'off',
'unicorn/no-nested-ternary': 'off',
'unicorn/prefer-node-protocol': 'off',
// Many "bad" example use this
camelcase: 'off',
eqeqeq: 'off',
'no-alert': 'off',
'no-empty': 'off',
'no-var': 'off',
'one-var': 'off',
'prefer-const': 'off',
'unicorn/expiring-todo-comments': 'off',
'unicorn/no-null': 'off',
'unicorn/prefer-global-this': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prefer-regexp-test': 'off',
// Some examples use it
// Most examples define variables or functions
'@typescript-eslint/no-unused-vars': 'off'
}
},
{
ignores: ['generator/']
}
];