Просмотр исходного кода

refs #84709: add test and lint
fix dependencies to dev

NEEDLEMAN3\tatsu 4 лет назад
Родитель
Сommit
60e1158eee

+ 1 - 0
packages/app/package.json

@@ -183,6 +183,7 @@
     "csv-to-markdown-table": "^1.0.1",
     "diff2html": "^3.1.2",
     "eazy-logger": "^3.1.0",
+    "eslint-plugin-regex": "^1.8.0",
     "file-loader": "^5.0.2",
     "handsontable": "=6.2.2",
     "hard-source-webpack-plugin": "^0.13.1",

+ 1 - 3
packages/codemirror-textlint/package.json

@@ -10,13 +10,11 @@
     "lint": "eslint src --ext .ts",
     "lint:fix": "eslint src --ext .ts --fix"
   },
-  "dependencies": {
-    "eslint-plugin-regex": "^1.8.0"
-  },
   "devDependencies": {
     "@textlint-rule/textlint-rule-no-unmatched-pair": "^1.0.8",
     "@textlint/kernel": "^12.0.2",
     "@types/codemirror": "^5.60.2",
+    "eslint-plugin-regex": "^1.8.0",
     "textlint-message-to-codemirror": "^1.0.0",
     "textlint-plugin-markdown": "^4.0.6",
     "textlint-rule-common-misspellings": "^1.0.1",

+ 1 - 1
packages/core/package.json

@@ -19,7 +19,7 @@
     "lint": "npm-run-all -p lint:*",
     "test": "jest --verbose"
   },
-  "dependencies": {
+  "devDependencies": {
     "eslint-plugin-regex": "^1.8.0"
   }
 }

+ 1 - 1
packages/plugin-attachment-refs/package.json

@@ -24,13 +24,13 @@
   "dependencies": {
     "browser-bunyan": "^1.6.3",
     "bunyan": "^1.8.15",
-    "eslint-plugin-regex": "^1.8.0",
     "http-errors": "^1.8.0",
     "react-images": "~1.0.0",
     "react-motion": "^0.5.2",
     "universal-bunyan": "^0.9.2"
   },
   "devDependencies": {
+    "eslint-plugin-regex": "^1.8.0",
     "npm-run-all": "^4.1.5",
     "react": "^16.8.3",
     "react-dom": "^16.8.3"

+ 1 - 3
packages/plugin-lsx/package.json

@@ -21,10 +21,8 @@
     "lint": "run-p lint:*",
     "test": ""
   },
-  "dependencies": {
-    "eslint-plugin-regex": "^1.8.0"
-  },
   "devDependencies": {
+    "eslint-plugin-regex": "^1.8.0",
     "react": "^16.8.3",
     "react-dom": "^16.8.3"
   }

+ 1 - 3
packages/plugin-pukiwiki-like-linker/package.json

@@ -22,9 +22,7 @@
   },
   "devDependencies": {
     "browser-bunyan": "^1.6.3",
+    "eslint-plugin-regex": "^1.8.0",
     "tsc-alias": "^1.2.9"
-  },
-  "dependencies": {
-    "eslint-plugin-regex": "^1.8.0"
   }
 }

+ 1 - 1
packages/slack/package.json

@@ -17,7 +17,6 @@
     "axios": "^0.24.0",
     "browser-bunyan": "^1.6.3",
     "bunyan": "^1.8.15",
-    "eslint-plugin-regex": "^1.8.0",
     "extensible-custom-error": "^0.0.7",
     "http-errors": "^1.8.0",
     "universal-bunyan": "^0.9.2",
@@ -25,6 +24,7 @@
   },
   "devDependencies": {
     "@types/express": "^4.17.11",
+    "eslint-plugin-regex": "^1.8.0",
     "tsc-alias": "^1.2.9"
   }
 }

+ 1 - 1
packages/slackbot-proxy/package.json

@@ -39,7 +39,6 @@
     "compression": "^1.7.4",
     "cookie-parser": "^1.4.5",
     "date-fns": "^2.23.0",
-    "eslint-plugin-regex": "^1.8.0",
     "express-bunyan-logger": "^1.3.3",
     "extensible-custom-error": "^0.0.7",
     "helmet": "^4.6.0",
@@ -57,6 +56,7 @@
     "@tsed/schema": "^6.43.0",
     "bootstrap": "^5.0.2",
     "browser-bunyan": "^1.6.3",
+    "eslint-plugin-regex": "^1.8.0",
     "morgan": "^1.10.0",
     "ts-node-dev": "^1.1.6",
     "tsc-alias": "^1.2.9"

+ 1 - 3
packages/ui/package.json

@@ -15,10 +15,8 @@
     "lint": "npm-run-all -p lint:*",
     "test": "jest --verbose"
   },
-  "dependencies": {
-    "eslint-plugin-regex": "^1.8.0"
-  },
   "devDependencies": {
+    "eslint-plugin-regex": "^1.8.0",
     "react": "^16.8.3"
   }
 }