mirror of
https://github.com/thepeacockproject/Peacock
synced 2025-02-23 03:35:25 +01:00
Update deps, don't do prettier through eslint
This commit is contained in:
parent
189755f52d
commit
1dfd710a93
@ -77,3 +77,4 @@ task:
|
||||
name: Linting
|
||||
Lint_script:
|
||||
- yarn lint
|
||||
- yarn prettier:check
|
||||
|
11
.eslintrc.js
11
.eslintrc.js
@ -25,14 +25,9 @@ module.exports = {
|
||||
"@typescript-eslint",
|
||||
"promise",
|
||||
"react-hooks",
|
||||
"prettier",
|
||||
"custom-rules",
|
||||
],
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
"@peacockproject",
|
||||
],
|
||||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
||||
parser: "@typescript-eslint/parser",
|
||||
parserOptions: {
|
||||
ecmaVersion: "es2022",
|
||||
@ -68,6 +63,6 @@ module.exports = {
|
||||
"promise/valid-params": "warn",
|
||||
"react-hooks/rules-of-hooks": "error",
|
||||
"react-hooks/exhaustive-deps": "warn",
|
||||
"custom-rules/import-components": "error",
|
||||
"@peacockproject/import-components": "error",
|
||||
},
|
||||
}
|
||||
|
41
package.json
41
package.json
@ -6,8 +6,9 @@
|
||||
"license": "AGPL-3.0",
|
||||
"scripts": {
|
||||
"start": "node chunk0.js",
|
||||
"clean": "rimraf tsconfig.tsbuildinfo build",
|
||||
"clean": "rimraf build",
|
||||
"prettier": "pprettier --write \"**/*.{js,json,ts,md,tsx,css,mjs,html}\"",
|
||||
"prettier:check": "pprettier --check \"**/*.{js,json,ts,md,tsx,css,mjs,html}\"",
|
||||
"build": "yarn webui:build && node packaging/build.mjs",
|
||||
"typecheck-ws": "tsc",
|
||||
"typecheck": "yarn workspaces foreach -A run typecheck-ws",
|
||||
@ -36,14 +37,14 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@peacockproject/statemachine-parser": "^5.5.1",
|
||||
"@yarnpkg/fslib": "^3.0.0-rc.41",
|
||||
"@yarnpkg/libzip": "^3.0.0-rc.41",
|
||||
"@yarnpkg/fslib": "^3.0.0-rc.42",
|
||||
"@yarnpkg/libzip": "^3.0.0-rc.42",
|
||||
"atomically": "^2.0.1",
|
||||
"axios": "^1.3.4",
|
||||
"axios": "^1.3.5",
|
||||
"body-parser": "*",
|
||||
"clipanion": "^3.2.0",
|
||||
"commander": "^10.0.0",
|
||||
"esbuild-wasm": "^0.17.14",
|
||||
"esbuild-wasm": "^0.17.15",
|
||||
"express": "patch:express@npm%3A4.18.2#~/.yarn/patches/express-npm-4.18.2-bb15ff679a.patch",
|
||||
"jest-diff": "^29.5.0",
|
||||
"js-ini": "^1.6.0",
|
||||
@ -62,44 +63,44 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mixer/parallel-prettier": "^2.0.3",
|
||||
"@peacockproject/eslint-plugin": "workspace:*",
|
||||
"@types/body-parser": "1.19.2",
|
||||
"@types/express": "^4.17.17",
|
||||
"@types/jsonwebtoken": "^9.0.1",
|
||||
"@types/node": "^18",
|
||||
"@types/parseurl": "^1.3.1",
|
||||
"@types/progress": "^2.0.5",
|
||||
"@types/prompts": "^2.4.3",
|
||||
"@types/prompts": "^2.4.4",
|
||||
"@types/rimraf": "^4.0.5",
|
||||
"@types/send": "^0.17.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
||||
"@typescript-eslint/parser": "^5.56.0",
|
||||
"@vitest/ui": "0.29.7",
|
||||
"esbuild": "^0.17.14",
|
||||
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
||||
"@typescript-eslint/parser": "^5.57.1",
|
||||
"@vitest/ui": "^0.29.8",
|
||||
"esbuild": "^0.17.15",
|
||||
"esbuild-register": "^3.4.2",
|
||||
"eslint": "^8.36.0",
|
||||
"eslint": "^8.38.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-formatter-pretty": "^4.1.0",
|
||||
"eslint-plugin-custom-rules": "link:./packaging/eslint",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"glob": "^9.3.2",
|
||||
"glob": "^9.3.4",
|
||||
"json-keys-sort": "^2.1.0",
|
||||
"ms": "^2.1.3",
|
||||
"prettier": "^2.8.7",
|
||||
"rimraf": "^4.4.1",
|
||||
"terser": "^5.16.8",
|
||||
"typescript": "4.9.5",
|
||||
"vitest": "0.29.7",
|
||||
"winston": "3.8.2",
|
||||
"winston-daily-rotate-file": "4.7.1"
|
||||
"typescript": "5.0.4",
|
||||
"vitest": "^0.29.8",
|
||||
"winston": "^3.8.2",
|
||||
"winston-daily-rotate-file": "^4.7.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "18.x || 19.x"
|
||||
},
|
||||
"workspaces": [
|
||||
"webui",
|
||||
"packaging/typedefs"
|
||||
"packaging/typedefs",
|
||||
"packaging/eslint"
|
||||
],
|
||||
"packageManager": "yarn@4.0.0-rc.40"
|
||||
}
|
||||
|
@ -4,13 +4,15 @@ module.exports = {
|
||||
create(context) {
|
||||
return {
|
||||
ImportDeclaration: function (node) {
|
||||
if (node.source.value?.toString().startsWith("components")) {
|
||||
context.report({
|
||||
node,
|
||||
message:
|
||||
"Module paths can't start with 'components', use '../' instead.",
|
||||
})
|
||||
if (!node.source.value?.toString().startsWith("components")) {
|
||||
return
|
||||
}
|
||||
|
||||
context.report({
|
||||
node,
|
||||
message:
|
||||
"Module paths can't start with 'components', use '../' instead.",
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
|
7
packaging/eslint/package.json
Normal file
7
packaging/eslint/package.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "@peacockproject/eslint-plugin",
|
||||
"private": true,
|
||||
"peerDependencies": {
|
||||
"eslint": "8.x"
|
||||
}
|
||||
}
|
@ -6,6 +6,13 @@
|
||||
"name": "The Peacock Project",
|
||||
"email": "admin@thepeacockproject.org"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thepeacockproject/Peacock.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/thepeacockproject/Peacock/issues"
|
||||
},
|
||||
"license": "AGPL-3.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -14,11 +21,11 @@
|
||||
"reversion": "node ../versionTypedefsPackageJson.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@peacockproject/statemachine-parser": "^5.4.0",
|
||||
"@peacockproject/statemachine-parser": "^5.5.1",
|
||||
"@types/express": "^4.17.17",
|
||||
"@types/node": "^18.15.3",
|
||||
"@types/node": "^18.15.11",
|
||||
"atomically": "^2.0.1",
|
||||
"axios": "^1.3.4",
|
||||
"axios": "^1.3.5",
|
||||
"js-ini": "^1.6.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
@ -5,7 +5,7 @@
|
||||
"dependencies": {
|
||||
"axios": "^1.2.3",
|
||||
"clsx": "^1.2.1",
|
||||
"immer": "^9.0.15",
|
||||
"immer": "^9.0.21",
|
||||
"infima": "0.2.0-alpha.38",
|
||||
"json-keys-sort": "^2.1.0",
|
||||
"react": "^18.2.0",
|
||||
@ -20,7 +20,7 @@
|
||||
"typecheck-ws": "tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.0.28",
|
||||
"@types/react": "^18.0.33",
|
||||
"@types/react-dom": "^18.0.11",
|
||||
"@types/url-parse": "^1.4.8",
|
||||
"rollup-plugin-license": "^3.0.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user