Skip to content

Commit 6a39cb4

Browse files
authored
Merge pull request #13 from cto-af/ignore
Ignore eslint config
2 parents 4b29c5a + ac35c5f commit 6a39cb4

File tree

4 files changed

+12
-24
lines changed

4 files changed

+12
-24
lines changed

.npmignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.c8rc
22
.editorconfig
3-
.eslintrc.cjs
43
.github/
54
.mocharc.cjs
65
.vscode/
76
coverage/
7+
docs/
8+
eslint.config.js
89
examples/
10+
t.js
911
test/
1012
tools/
1113
tsconfig.json
12-
docs/
1314
typedoc.config.cjs
14-
t.js

eslint.config.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import cjs from "@peggyjs/eslint-config/flat/cjs.js";
22
import mocha from "@peggyjs/eslint-config/flat/mocha.js";
33
import mod from "@peggyjs/eslint-config/flat/module.js";
4+
import modern from "@peggyjs/eslint-config/flat/modern.js";
45

56
export default [
67
{
@@ -12,20 +13,7 @@ export default [
1213
],
1314
},
1415
mod,
15-
{
16-
languageOptions: {
17-
ecmaVersion: 2022,
18-
},
19-
rules: {
20-
"no-unused-vars": ["error", {
21-
argsIgnorePattern: "^_",
22-
caughtErrorsIgnorePattern: "^(_|ignore)",
23-
destructuredArrayIgnorePattern: "^_",
24-
varsIgnorePattern: "^_[^_]",
25-
reportUsedIgnorePattern: true,
26-
}],
27-
},
28-
},
16+
modern,
2917
cjs,
3018
mocha,
3119
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"license": "MIT",
3333
"devDependencies": {
34-
"@peggyjs/eslint-config": "4.0.3",
34+
"@peggyjs/eslint-config": "4.0.4",
3535
"@types/node": "22.0.2",
3636
"c8": "10.1.2",
3737
"eslint": "9.8.0",

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)