eslint-plugin-use-agnostic 0.10.5 → 0.10.6

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.
Files changed (2) hide show
  1. package/comments.config.js +25 -0
  2. package/package.json +3 -2
@@ -0,0 +1,25 @@
1
+ import {
2
+ agnostic20ConfigName,
3
+ directive21ConfigName,
4
+ } from "./library/_commons/constants/bases.js";
5
+
6
+ import { agnostic20Comments } from "./jscomments/agnostic20/constants/bases.js";
7
+ import { directive21Comments } from "./jscomments/directive21/constants/bases.js";
8
+
9
+ const config = Object.freeze({
10
+ comment: "comment", // $COMMENT#COMMENT in code, "comment" on hover when resolved by the VSCode extension JSComments
11
+ [agnostic20ConfigName]: agnostic20Comments,
12
+ [directive21ConfigName]: directive21Comments,
13
+ });
14
+
15
+ export default config;
16
+
17
+ /* Notes
18
+ Aims of the VSCode extension JSComments:
19
+ - automatically capitalizes keys, so here:
20
+ - config.comment would return $COMMENT#COMMENT
21
+ - automatically chain keys within keys, so here
22
+ - config["agnostic20"] would return $COMMENT#AGNOSTIC20#*
23
+ - config["directive21"] would return $COMMENT#DIRECTIVE21#*
24
+ - this way, instead doing a find-replace on a big documentation comment, the comment stays within the config and only the config placeholder is found and replaced for the same results
25
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-use-agnostic",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "Highlights problematic server-client imports in projects made with the Fullstack React Architecture.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -22,7 +22,8 @@
22
22
  "files": [
23
23
  "library",
24
24
  "types/index.d.ts",
25
- "jscomments"
25
+ "jscomments",
26
+ "comments.config.js"
26
27
  ],
27
28
  "exports": {
28
29
  ".": {