UNPKG

@chrisburnell/eleventy-cache-webmentions

Version:

Cache webmentions using eleventy-fetch and make them available to use in collections, layouts, pages, etc. in Eleventy.

43 lines (41 loc) 951 B
import js from "@eslint/js"; import jsdoc from "eslint-plugin-jsdoc"; import globals from "globals"; export default [ js.configs.recommended, { files: ["**/*.js"], plugins: { jsdoc }, languageOptions: { ecmaVersion: "latest", globals: { ...globals.node, }, }, rules: { "no-process-env": 0, "jsdoc/check-access": "warn", "jsdoc/check-alignment": "warn", "jsdoc/check-indentation": "warn", "jsdoc/check-param-names": "warn", "jsdoc/check-tag-names": "warn", "jsdoc/check-types": "warn", "jsdoc/implements-on-classes": "warn", "jsdoc/no-undefined-types": "warn", "jsdoc/require-jsdoc": [ "warn", { require: { FunctionDeclaration: true, MethodDefinition: true, ClassDeclaration: true, }, }, ], "jsdoc/require-param": "warn", "jsdoc/require-param-type": "warn", "jsdoc/require-returns": "warn", "jsdoc/require-returns-type": "warn", }, }, ];