From fd51c9be2e665531f911ce84ac82e9069cc8ac7c Mon Sep 17 00:00:00 2001 From: Matej Voboril Date: Wed, 7 Feb 2024 22:51:36 -0600 Subject: [PATCH] esm --- configs/strict-esm-jsdoc.js | 23 +++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 configs/strict-esm-jsdoc.js diff --git a/configs/strict-esm-jsdoc.js b/configs/strict-esm-jsdoc.js new file mode 100644 index 0000000..e0b2581 --- /dev/null +++ b/configs/strict-esm-jsdoc.js @@ -0,0 +1,23 @@ +'use strict'; + +module.exports = { + rules: { + 'valid-jsdoc': ['off'], + }, + extends: ['@wfcd/eslint-config/esm', 'plugin:jsdoc/recommended-typescript-flavor-error'], + parser: '@babel/eslint-parser', + parserOptions: { + sourceType: 'module', + ecmaVersion: 6, + ecmaFeatures: { + modules: true, + }, + babelOptions: { + plugins: [ + '@babel/plugin-proposal-class-properties', + '@babel/plugin-proposal-private-methods', + '@babel/plugin-syntax-import-assertions', + ], + }, + }, +}; diff --git a/package.json b/package.json index 204d986..efa9664 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "./esm": "./configs/esm.js", "./prettier": "./configs/prettier.config.js", "./typescript": "./configs/typescript.js", - "./strict-jsdoc": "./configs/strict-jsdoc.js" + "./strict-jsdoc": "./configs/strict-jsdoc.js", + "./strict-esm-jsdoc": "./configs/strict-esm-jsdoc.js" }, "peerDependencies": { "@babel/core": "^7.19.1",