Skip to content

Commit

Permalink
esm
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Feb 8, 2024
1 parent d42cbb7 commit fd51c9b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions configs/strict-esm-jsdoc.js
Original file line number Diff line number Diff line change
@@ -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',
],
},
},
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fd51c9b

Please sign in to comment.