Skip to content

Commit a29234f

Browse files
authored
Merge pull request #54 from github/mp/audit
eslint 9 + vulnerabilities
2 parents fcd92c6 + 09a935f commit a29234f

6 files changed

Lines changed: 4350 additions & 2337 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import github from 'eslint-plugin-github'
2+
3+
export default [
4+
{
5+
ignores: ['dist/'],
6+
},
7+
github.getFlatConfigs().browser,
8+
github.getFlatConfigs().recommended,
9+
...github.getFlatConfigs().typescript,
10+
{
11+
rules: {
12+
'github/no-then': 'off',
13+
},
14+
},
15+
{
16+
files: ['src/**/*.ts'],
17+
rules: {
18+
'@typescript-eslint/no-non-null-assertion': 'off',
19+
},
20+
},
21+
{
22+
files: ['test/**/*.js'],
23+
rules: {
24+
'github/unescaped-html-literal': 'off',
25+
'import/no-unresolved': 'off',
26+
'import/extensions': 'off',
27+
'import/named': 'off',
28+
'eslint-comments/no-use': 'off',
29+
'github/no-inner-html': 'off',
30+
'i18n-text/no-en': 'off',
31+
'github/filenames-match-regex': 'off',
32+
},
33+
},
34+
]

0 commit comments

Comments
 (0)