Skip to content

Commit

Permalink
Docs: Add JSDoc module to target files 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
DHedgecock committed Sep 12, 2020
1 parent 7c4af19 commit 9667612
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rules/target-node.js
@@ -1,5 +1,10 @@
'use strict'

/**
* Node.js specific rules
* @module
*/

module.exports = (esm) => ({
// Extensions must be provided for ESM usage
'import/extensions': [
Expand Down
5 changes: 5 additions & 0 deletions src/rules/target-react.js
@@ -1,5 +1,10 @@
'use strict'

/**
* React specific rules
* @module
*/

module.exports = {
// ℹ️ webpack bundled React projects don't need extensions defined like Node
// ESM projects so extensions must be consistently omitted.
Expand Down
5 changes: 5 additions & 0 deletions src/rules/target-typescript.js
@@ -1,3 +1,8 @@
'use strict'

/**
* TypeScript specific rules
* @module
*/

module.exports = {}

0 comments on commit 9667612

Please sign in to comment.