@pumpn/eslint-config 14.0.2 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as parser from "@typescript-eslint/parser";
2
+ import { getJsdocProcessorPlugin } from "eslint-plugin-jsdoc/getJsdocProcessorPlugin.js";
2
3
  import globals from "globals";
3
4
 
4
5
  import plugins from "./plugins.js";
@@ -19,6 +20,8 @@ const convertedGlobals = Object.fromEntries(
19
20
  ])
20
21
  );
21
22
 
23
+ const defaultGlob = "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}";
24
+
22
25
  const config = [
23
26
  {
24
27
  ignores: [
@@ -28,7 +31,7 @@ const config = [
28
31
  ]
29
32
  },
30
33
  {
31
- files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
34
+ files: [defaultGlob],
32
35
  languageOptions: {
33
36
  ecmaVersion: "latest",
34
37
  globals: {
@@ -147,6 +150,62 @@ const config = [
147
150
  rules: {
148
151
  "no-undef": "off"
149
152
  }
153
+ },
154
+ {
155
+ files: [defaultGlob],
156
+ plugins: {
157
+ examples: getJsdocProcessorPlugin({
158
+ captionRequired: false,
159
+ checkDefaults: true,
160
+ checkExamples: true,
161
+ checkParams: true,
162
+ checkProperties: true,
163
+ paddedIndent: 0,
164
+ parser,
165
+ sourceType: "module"
166
+ })
167
+ },
168
+ processor: "examples/examples"
169
+ },
170
+ {
171
+ files: ["**/*.md/*.js"],
172
+ languageOptions: {
173
+ parserOptions: {
174
+ program: null,
175
+ project: false,
176
+ projectService: false
177
+ }
178
+ },
179
+ name: "jsdoc/examples/rules",
180
+ rules: {
181
+ "@stylistic/eol-last": "off",
182
+ "@stylistic/line-comment-position": "off",
183
+ "@stylistic/no-multiple-empty-lines": "off",
184
+ "no-inline-comments": "off",
185
+ "react/no-leaked-conditional-rendering": "off",
186
+ "react/prefer-read-only-props": "off"
187
+ }
188
+ },
189
+ {
190
+ files: [defaultGlob],
191
+ name: "jsdoc/default-expressions/processor",
192
+ processor: "examples/examples"
193
+ },
194
+ {
195
+ files: [
196
+ "**/*.jsdoc-defaults",
197
+ "**/*.jsdoc-params",
198
+ "**/*.jsdoc-properties"
199
+ ],
200
+ name: "jsdoc/default-expressions/rules",
201
+ rules: {
202
+ "@stylistic/eol-last": "off",
203
+ "@stylistic/line-comment-position": "off",
204
+ "@stylistic/no-multiple-empty-lines": "off",
205
+ "no-inline-comments": "off",
206
+ "react/no-leaked-conditional-rendering": "off",
207
+ "react/prefer-read-only-props": "off"
208
+ }
150
209
  }
151
210
  ];
152
211
 
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpn/eslint-config",
3
- "version": "14.0.2",
3
+ "version": "15.0.0",
4
4
  "exports": "./config.js",
5
5
  "tasks": {
6
6
  "lint": "deno run -A npm:eslint",