Skip to content

Commit eb3f4b4

Browse files
committed
chore(linting): add ignores properly and disable directives for now
1 parent 5e6280f commit eb3f4b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

eslint.config.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import jsdoc from './dist/index.js';
44
// import canonicalJsdoc from 'eslint-config-canonical/jsdoc.js';
55

66
const common = {
7-
linterOptions: {
8-
reportUnusedDisableDirectives: 0
9-
},
107
plugins: {
118
jsdoc
129
}
@@ -15,6 +12,10 @@ const common = {
1512
export default [
1613
// canonical,
1714
// canonicalJsdoc,
15+
{
16+
// Must be by itself
17+
ignores: ['dist/**/*.js', '.ignore/**/*.js'],
18+
},
1819
{
1920
...common,
2021
files: ['.ncurc.js'],
@@ -44,7 +45,6 @@ export default [
4445
},
4546
{
4647
...common,
47-
ignores: ['dist/**/*.js', '.ignore/**/*.js'],
4848
languageOptions: {
4949
globals: globals.node
5050
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"create-options": "node ./src/bin/generateOptions.mjs",
134134
"install-offline": "pnpm install --prefer-offline --no-audit",
135135
"lint": "npm run lint-arg -- .",
136-
"lint-arg": "eslint --report-unused-disable-directives=false",
136+
"lint-arg": "eslint --report-unused-disable-directives-severity=off",
137137
"lint-fix": "npm run lint-arg -- --fix .",
138138
"prepare": "husky install",
139139
"test-no-cov": "cross-env BABEL_ENV=test mocha",

0 commit comments

Comments
 (0)