Skip to content

Commit

Permalink
chore(linting): add ignores properly and disable directives for now
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Dec 31, 2023
1 parent 5e6280f commit eb3f4b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import jsdoc from './dist/index.js';
// import canonicalJsdoc from 'eslint-config-canonical/jsdoc.js';

const common = {
linterOptions: {
reportUnusedDisableDirectives: 0
},
plugins: {
jsdoc
}
Expand All @@ -15,6 +12,10 @@ const common = {
export default [
// canonical,
// canonicalJsdoc,
{
// Must be by itself
ignores: ['dist/**/*.js', '.ignore/**/*.js'],
},
{
...common,
files: ['.ncurc.js'],
Expand Down Expand Up @@ -44,7 +45,6 @@ export default [
},
{
...common,
ignores: ['dist/**/*.js', '.ignore/**/*.js'],
languageOptions: {
globals: globals.node
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"create-options": "node ./src/bin/generateOptions.mjs",
"install-offline": "pnpm install --prefer-offline --no-audit",
"lint": "npm run lint-arg -- .",
"lint-arg": "eslint --report-unused-disable-directives=false",
"lint-arg": "eslint --report-unused-disable-directives-severity=off",
"lint-fix": "npm run lint-arg -- --fix .",
"prepare": "husky install",
"test-no-cov": "cross-env BABEL_ENV=test mocha",
Expand Down

0 comments on commit eb3f4b4

Please sign in to comment.