merge: Run eslint with caching (!618)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/618

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Tess K <me@thvxl.se>
This commit is contained in:
dakkar 2024-09-14 10:45:44 +00:00
commit b211507a07
9 changed files with 11 additions and 8 deletions

3
.gitignore vendored
View File

@ -23,6 +23,9 @@ packages/sw/.yarn/cache
# pnpm
.pnpm-store
# eslint
**/.eslintcache
# Cypress
cypress/screenshots
cypress/videos

View File

@ -20,7 +20,7 @@
"restart": "pnpm build && pnpm start",
"dev": "node ./scripts/dev.mjs",
"typecheck": "pnpm --filter megalodon build && tsc --noEmit && tsc -p test --noEmit",
"eslint": "eslint --quiet \"src/**/*.ts\"",
"eslint": "eslint --quiet \"src/**/*.ts\" --cache",
"lint": "pnpm typecheck && pnpm eslint",
"jest": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit --config jest.config.unit.cjs",
"jest:e2e": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit --config jest.config.e2e.cjs",

View File

@ -13,7 +13,7 @@
"test": "vitest --run --globals",
"test-and-coverage": "vitest --run --coverage --globals",
"typecheck": "vue-tsc --noEmit",
"eslint": "eslint --quiet \"src/**/*.{ts,vue}\"",
"eslint": "eslint --quiet \"src/**/*.{ts,vue}\" --cache",
"lint": "pnpm typecheck && pnpm eslint"
},
"dependencies": {

View File

@ -6,7 +6,7 @@
"typings": "./lib/src/index.d.ts",
"scripts": {
"build": "tsc -p ./",
"lint": "eslint --ext .js,.ts src",
"lint": "eslint --ext .js,.ts src --cache",
"doc": "typedoc --out ../docs ./src",
"test": "NODE_ENV=test jest -u --maxWorkers=3"
},

View File

@ -17,7 +17,7 @@
"scripts": {
"build": "node ./build.js",
"watch": "nodemon -w package.json -e json --exec \"node ./build.js --watch\"",
"eslint": "eslint './**/*.{js,jsx,ts,tsx}'",
"eslint": "eslint './**/*.{js,jsx,ts,tsx}' --cache",
"typecheck": "tsc --noEmit",
"lint": "pnpm typecheck && pnpm eslint"
},

View File

@ -4,7 +4,7 @@
"description": "Misskey TypeGenerator",
"type": "module",
"scripts": {
"generate": "tsx src/generator.ts && eslint ./built/**/*.ts --fix"
"generate": "tsx src/generator.ts && eslint ./built/**/*.ts --fix --cache"
},
"devDependencies": {
"@readme/openapi-parser": "2.5.0",

View File

@ -22,7 +22,7 @@
"tsd": "tsd",
"api": "pnpm api-extractor run --local --verbose",
"api-prod": "pnpm api-extractor run --verbose",
"eslint": "eslint './**/*.{js,jsx,ts,tsx}'",
"eslint": "eslint './**/*.{js,jsx,ts,tsx}' --cache",
"typecheck": "tsc --noEmit",
"lint": "pnpm typecheck && pnpm eslint",
"jest": "jest --coverage --detectOpenHandles",

View File

@ -17,7 +17,7 @@
"scripts": {
"build": "node ./build.js",
"watch": "nodemon -w package.json -e json --exec \"node ./build.js --watch\"",
"eslint": "eslint './**/*.{js,jsx,ts,tsx}'",
"eslint": "eslint './**/*.{js,jsx,ts,tsx}' --cache",
"typecheck": "tsc --noEmit",
"lint": "pnpm typecheck && pnpm eslint"
},

View File

@ -5,7 +5,7 @@
"watch": "nodemon -w ../../package.json -e json --exec \"node build.js watch\"",
"build": "node build.js",
"typecheck": "tsc --noEmit",
"eslint": "eslint --quiet src/**/*.ts",
"eslint": "eslint --quiet src/**/*.ts --cache",
"lint": "pnpm typecheck && pnpm eslint"
},
"dependencies": {