Skip to content

Commit

Permalink
Merge pull request #33 from hildjj/ignore
Browse files Browse the repository at this point in the history
Ignore rules tweaked
  • Loading branch information
hildjj authored Aug 1, 2024
2 parents 7a9b0e9 + ec596fe commit a8f4010
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.github/
.ncurc
eslint.config.js
eslint.config.mjs
node_modules/
test/
2 changes: 1 addition & 1 deletion flat/modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const globals = require("globals");
module.exports = {
languageOptions: {
globals: globals.node,
ecmaVersion: 2020,
ecmaVersion: 2022,
},
};
8 changes: 7 additions & 1 deletion rules/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ module.exports = {
"no-unsafe-negation": "error",
"no-unsafe-optional-chaining": "error",
"no-unused-private-class-members": "off", // Not using private yet
"no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
"no-unused-vars": ["error", {
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^(_|ignore)",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_[^_]",
reportUsedIgnorePattern: true,
}],

// This is going to cause problems, but I don't care.
"no-use-before-define": "error",
Expand Down

0 comments on commit a8f4010

Please sign in to comment.