-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy patheslint.config.cjs
42 lines (41 loc) · 901 Bytes
/
eslint.config.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
36
37
38
39
40
41
42
const auto = require('eslint-config-canonical/configurations/auto');
const ava = require('eslint-config-canonical/configurations/ava');
const node = require('eslint-config-canonical/configurations/node');
module.exports = [
...auto,
ava.recommended,
{
files: ['**/*.cjs'],
...node.recommended,
},
{
rules: {
'@typescript-eslint/no-explicit-any': 0,
'func-style': 0,
'id-length': 0,
'no-template-curly-in-string': 0,
'regexp/no-unused-capturing-group': 0,
'regexp/optimal-quantifier-concatenation': 0,
'require-unicode-regexp': 0,
},
},
{
files: ['**/src/grammar.ts'],
rules: {
'no-useless-escape': 0,
},
},
{
ignores: [
'package-lock.json',
'dist',
'node_modules',
'*.log',
'.*',
'!.github',
'!.gitignore',
'!.husky',
'!.releaserc',
],
},
];