Skip to content

Commit

Permalink
feat: add check-examples replacement processor; fixes gajus#928
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jul 27, 2024
1 parent 1482f89 commit 01a4d78
Show file tree
Hide file tree
Showing 8 changed files with 1,429 additions and 17 deletions.
13 changes: 10 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,27 @@ import globals from 'globals';
import jsdoc from './src/index.js';
// import canonical from 'eslint-config-canonical';
// import canonicalJsdoc from 'eslint-config-canonical/jsdoc.js';
import {getJsdocProcessorPlugin} from './src/getJsdocProcessorPlugin.js';

const examples = getJsdocProcessorPlugin();

const common = {
linterOptions: {
reportUnusedDisableDirectives: 'off'
},
plugins: {
jsdoc
}
jsdoc,
examples
},
processor: 'examples/example-tags'
};

export default [
// canonical,
// canonicalJsdoc,
{
// Must be by itself
ignores: ['dist/**/*.js', '.ignore/**/*.js'],
ignores: ['dist/**', '.ignore/**/*.js'],
},
{
...common,
Expand All @@ -32,6 +37,8 @@ export default [
}
},
rules: {
'no-alert': 'error',
'no-extra-semi': 'error',
'array-element-newline': 0,
'filenames/match-regex': 0,
'import/extensions': 0,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@types/chai": "^4.3.16",
"@types/debug": "^4.1.12",
"@types/eslint": "^8.56.10",
"@types/espree": "^10.1.0",
"@types/esquery": "^1.5.4",
"@types/estree": "^1.0.5",
"@types/json-schema": "^7.0.15",
Expand Down
19 changes: 15 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 01a4d78

Please sign in to comment.