Skip to content

Commit 9b2d540

Browse files
committed
chore: update eslint/core
1 parent 49df660 commit 9b2d540

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@babel/preset-env": "^7.28.5",
3232
"@es-joy/escodegen": "^4.2.0",
3333
"@es-joy/jsdoc-eslint-parser": "^0.25.0",
34-
"@eslint/core": "^0.16.0",
34+
"@eslint/core": "^0.17.0",
3535
"@hkdobrev/run-if-changed": "^0.6.3",
3636
"@rollup/plugin-node-resolve": "^16.0.3",
3737
"@semantic-release/commit-analyzer": "^13.0.1",

pnpm-lock.yaml

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/buildForbidRuleDefinition.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ import iterateJsdoc from './iterateJsdoc.js';
2121
* schema?: import('eslint').Rule.RuleMetaData['schema']
2222
* url?: string,
2323
* }} cfg
24-
* @returns {import('@eslint/core').RuleDefinition<
25-
* import('@eslint/core').RuleDefinitionTypeOptions
26-
* >}
24+
* @returns {import('eslint').Rule.RuleModule}
2725
*/
2826
export const buildForbidRuleDefinition = ({
2927
contextName,

src/buildRejectOrPreferRuleDefinition.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ const infoUC = {
104104
* typeName?: string,
105105
* url?: string,
106106
* }} cfg
107-
* @returns {import('@eslint/core').RuleDefinition<
108-
* import('@eslint/core').RuleDefinitionTypeOptions
109-
* >}
107+
* @returns {import('eslint').Rule.RuleModule}
110108
*/
111109
export const buildRejectOrPreferRuleDefinition = ({
112110
checkNativeTypes = null,

test/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import {
1010
import {
1111
expect,
1212
} from 'chai';
13+
import {
14+
defineConfig,
15+
} from 'eslint/config';
1316
import {
1417
parser as typescriptEslintParser,
1518
} from 'typescript-eslint';
@@ -239,6 +242,18 @@ describe('buildForbidRuleDefinition', () => {
239242
});
240243
});
241244

245+
describe('`defineConfig`', () => {
246+
it('works with `defineConfig`', () => {
247+
expect(() => {
248+
defineConfig({
249+
plugins: {
250+
jsdoc: jsdocDefault,
251+
},
252+
});
253+
}).not.to.throw();
254+
});
255+
});
256+
242257
for (const [
243258
contextName,
244259
contexts,

0 commit comments

Comments
 (0)