@@ -5,7 +5,9 @@ const esmConfig = require("./configs/recommended-module")
55const cjsConfig = require ( "./configs/recommended-script" )
66const recommendedConfig = require ( "./configs/recommended" )
77
8- /** @type {import('eslint').ESLint.Plugin } */
8+ /** @import { ESLint, Linter } from 'eslint' */
9+
10+ /** @type {ESLint.Plugin } */
911const base = {
1012 meta : {
1113 name : pkg . name ,
@@ -58,13 +60,13 @@ const base = {
5860}
5961/**
6062 * @typedef {{
61- * 'recommended-module': import('eslint'). ESLint.ConfigData;
62- * 'recommended-script': import('eslint'). ESLint.ConfigData;
63- * 'recommended': import('eslint'). ESLint.ConfigData;
64- * 'flat/recommended-module': import('eslint'). Linter.FlatConfig ;
65- * 'flat/recommended-script': import('eslint'). Linter.FlatConfig ;
66- * 'flat/recommended': import('eslint'). Linter.FlatConfig ;
67- * 'flat/mixed-esm-and-cjs': import('eslint'). Linter.FlatConfig [];
63+ * 'recommended-module': ESLint.ConfigData;
64+ * 'recommended-script': ESLint.ConfigData;
65+ * 'recommended': ESLint.ConfigData;
66+ * 'flat/recommended-module': Linter.Config ;
67+ * 'flat/recommended-script': Linter.Config ;
68+ * 'flat/recommended': Linter.Config ;
69+ * 'flat/mixed-esm-and-cjs': Linter.Config [];
6870 * }} Configs
6971 */
7072
@@ -83,7 +85,7 @@ const configs = {
8385 ] ,
8486}
8587
86- /** @type {import('eslint'). ESLint.Plugin & { configs: Configs } } */
88+ /** @type {ESLint.Plugin & { configs: Configs } } */
8789module . exports = {
8890 meta : base . meta ,
8991 rules : base . rules ,
0 commit comments