Răsfoiți Sursa

use "yarn eslint"

Yuki Takei 3 ani în urmă
părinte
comite
32b66fccea

+ 1 - 1
apps/app/package.json

@@ -28,7 +28,7 @@
     "//// for CI": "",
     "dev:ci": "yarn cross-env NODE_ENV=development yarn swc-node src/server/app.ts --ci",
     "lint:typecheck": "npx -y tsc",
-    "lint:eslint": "eslint --quiet \"**/*.{js,jsx,ts,tsx}\"",
+    "lint:eslint": "yarn eslint --quiet \"**/*.{js,jsx,ts,tsx}\"",
     "lint:styles": "stylelint src/**/*.scss",
     "lint:swagger2openapi": "node node_modules/.bin/oas-validate tmp/swagger.json",
     "lint": "run-p lint:*",

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

@@ -17,7 +17,7 @@
     "build:cjs": "tsc -p tsconfig.build.cjs.json && tsc-alias -p tsconfig.build.cjs.json",
     "build:esm": "tsc -p tsconfig.build.esm.json && tsc-alias -p tsconfig.build.esm.json",
     "clean": "npx -y shx rm -rf dist",
-    "lint:js": "eslint **/*.{js,jsx,ts,tsx}",
+    "lint:js": "yarn eslint **/*.{js,jsx,ts,tsx}",
     "lint:styles": "stylelint src/**/*.scss src/**/*.css",
     "lint": "run-p lint:*",
     "test": ""

+ 2 - 2
packages/codemirror-textlint/package.json

@@ -8,8 +8,8 @@
     "clean": "npx -y shx rm -rf dist",
     "tsc": "tsc -p tsconfig.build.json",
     "tsc:w": "yarn tsc -w",
-    "lint": "eslint src --ext .ts",
-    "lint:fix": "eslint src --ext .ts --fix"
+    "lint": "yarn eslint src --ext .ts",
+    "lint:fix": "yarn eslint src --ext .ts --fix"
   },
   "dependencies": {},
   "devDependencies": {

+ 1 - 1
packages/core/package.json

@@ -17,7 +17,7 @@
     "clean": "npx -y shx rm -rf dist",
     "dev": "vite build --mode dev",
     "watch": "yarn dev -w",
-    "lint:js": "eslint **/*.{js,ts}",
+    "lint:js": "yarn eslint **/*.{js,ts}",
     "lint": "npm-run-all -p lint:*",
     "test": "jest --verbose"
   },

+ 1 - 1
packages/hackmd/package.json

@@ -12,7 +12,7 @@
     "clean": "npx -y shx rm -rf dist",
     "dev": "vite build --mode dev",
     "watch": "yarn dev -w",
-    "lint:js": "eslint **/*.{js,ts}",
+    "lint:js": "yarn eslint **/*.{js,ts}",
     "lint": "npm-run-all -p lint:*"
   },
   "dependencies": {},

+ 1 - 1
packages/presentation/package.json

@@ -16,7 +16,7 @@
     "dev": "run-p dev:*",
     "dev:js": "vite build --mode dev",
     "watch": "run-p 'dev:js -w",
-    "lint:js": "eslint **/*.{js,jsx,ts,tsx}",
+    "lint:js": "yarn eslint **/*.{js,jsx,ts,tsx}",
     "lint:styles": "stylelint --allow-empty-input src/**/*.scss src/**/*.css",
     "lint": "run-p lint:*"
   },

+ 1 - 1
packages/preset-themes/package.json

@@ -17,7 +17,7 @@
     "dev:libs": "yarn build:libs --mode dev",
     "dev:themes": "yarn build:themes --mode dev",
     "watch": "run-p 'dev:libs -w' 'dev:themes -w",
-    "lint:eslint": "eslint --quiet \"**/*.{js,jsx,ts,tsx}\"",
+    "lint:eslint": "yarn eslint \"**/*.{js,jsx,ts,tsx}\"",
     "lint:styles": "stylelint src/**/*.scss",
     "lint": "run-p lint:*",
     "preview": "vite preview"

+ 1 - 1
packages/remark-drawio/package.json

@@ -18,7 +18,7 @@
     "tsc": "tsc -p tsconfig.build.json",
     "tsc:w": "yarn tsc -w",
     "clean": "npx -y shx rm -rf dist",
-    "lint:js": "eslint **/*.{js,jsx,ts,tsx}",
+    "lint:js": "yarn eslint **/*.{js,jsx,ts,tsx}",
     "lint:styles": "stylelint --allow-empty-input src/**/*.scss src/**/*.css",
     "lint": "run-p lint:*"
   },

+ 2 - 2
packages/remark-growi-directive/package.json

@@ -23,8 +23,8 @@
     "test": "cross-env NODE_ENV=test npm run test-coverage",
     "test-api": "tape --conditions development test/**.test.js",
     "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
-    "lint": "eslint \"**/*.{cjs, js,jsx,ts,tsx}\"",
-    "lint:fix": "eslint \"**/*.{cjs, js,jsx,ts,tsx}\" --fix"
+    "lint": "yarn eslint \"**/*.{cjs, js,jsx,ts,tsx}\"",
+    "lint:fix": "yarn eslint \"**/*.{cjs, js,jsx,ts,tsx}\" --fix"
   },
   "dependencies": {
     "@types/mdast": "^3.0.0",

+ 1 - 1
packages/remark-lsx/package.json

@@ -18,7 +18,7 @@
     "watch": "run-p watch:*",
     "watch:client": "yarn dev:client -w",
     "watch:server": "yarn dev:server -w",
-    "lint:js": "eslint **/*.{js,jsx,ts,tsx}",
+    "lint:js": "yarn eslint **/*.{js,jsx,ts,tsx}",
     "lint:styles": "stylelint --allow-empty-input src/**/*.scss src/**/*.css",
     "lint": "run-p lint:*"
   },

+ 1 - 1
packages/slack/package.json

@@ -10,7 +10,7 @@
     "clean": "npx -y shx rm -rf dist",
     "dev": "vite build --mode dev",
     "watch": "yarn dev -w",
-    "lint:js": "eslint **/*.{js,ts}",
+    "lint:js": "yarn eslint **/*.{js,ts}",
     "lint": "npm-run-all -p lint:*"
   },
   "dependencies": {

+ 1 - 1
packages/ui/package.json

@@ -13,7 +13,7 @@
     "clean": "npx -y shx rm -rf dist",
     "dev": "vite build --mode dev",
     "watch": "yarn dev -w",
-    "lint:js": "eslint **/*.{js,ts}",
+    "lint:js": "yarn eslint **/*.{js,ts}",
     "lint": "npm-run-all -p lint:*"
   },
   "dependencies": {