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 36ef951
Show file tree
Hide file tree
Showing 8 changed files with 1,497 additions and 18 deletions.
10 changes: 6 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ import jsdoc from './src/index.js';
// import canonicalJsdoc from 'eslint-config-canonical/jsdoc.js';

const common = {
plugins: {
jsdoc
},
linterOptions: {
reportUnusedDisableDirectives: 'off'
},
plugins: {
jsdoc
}
};

export default [
// canonical,
// canonicalJsdoc,
...jsdoc.configs['examples-and-default-expressions'],
{
// Must be by itself
ignores: ['dist/**/*.js', '.ignore/**/*.js'],
ignores: ['dist/**', '.ignore/**/*.js'],
},
{
...common,
Expand All @@ -32,6 +33,7 @@ export default [
}
},
rules: {
'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 36ef951

Please sign in to comment.