-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
89 additions
and
108 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# pnpm lint-staged |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
module.exports = { | ||
extends: ['ali'], | ||
export default { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'feat', | ||
'fix', | ||
'docs', | ||
'chore', | ||
'style', | ||
'refactor', | ||
'ci', | ||
'test', | ||
'revert', | ||
'perf', | ||
], | ||
], | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import stylistic from '@stylistic/eslint-plugin'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import js from '@eslint/js'; | ||
import reactHooks from 'eslint-plugin-react-hooks'; | ||
import reactRefresh from 'eslint-plugin-react-refresh'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
{ | ||
files: ['**/src/**/*.{ts?(x),js?(x)}'], | ||
plugins: { | ||
'@stylistic': stylistic, | ||
'react-hooks': reactHooks, | ||
}, | ||
languageOptions: { | ||
parser: tsParser, | ||
}, | ||
rules: { | ||
'@stylistic/indent': ['error', 2], | ||
"@stylistic/indent-binary-ops": ["error", 2], | ||
'@stylistic/max-len': ["error", { "tabWidth": 2 }], | ||
'@stylistic/no-tabs': "error", | ||
'@stylistic/quotes': ["error", "single"], | ||
"@stylistic/jsx-pascal-case": [2], | ||
"@stylistic/jsx-indent": [2, 2, { checkAttributes: true, indentLogicalExpressions: true }], | ||
|
||
'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks | ||
'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies | ||
}, | ||
}, | ||
{ | ||
files: ['**/src/**/*.{tsx,jsx}'], | ||
plugins: { | ||
'react-refresh': reactRefresh, | ||
}, | ||
rules: { | ||
'react-refresh/only-export-components': 'warn', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,54 @@ | ||
{ | ||
"name": "lowcode-engine-repo", | ||
"name": "@alilc/lowcode-monorepo", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"playground": "pnpm --filter playground dev", | ||
"test": "pnpm -r test", | ||
"build": "pnpm -r build", | ||
"clean": "rimraf ./packages/*/dist", | ||
"clean:lib": "rimraf ./node_modules ./packages/*/node_modules", | ||
"lint": "f2elint scan -q -i ./packages/*/src", | ||
"lint:fix": "f2elint fix -i ./packages/*/src", | ||
"lint": "eslint --cache --no-warn-ignored", | ||
"pub": "npm run watchdog:build && lerna publish patch --yes --force-publish --exact --no-changelog", | ||
"pub:minor": "npm run watchdog:build && lerna publish minor --yes --force-publish --exact --no-changelog", | ||
"pub:major": "npm run watchdog:build && lerna publish major --yes --force-publish --exact --no-changelog", | ||
"pub:premajor": "npm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog", | ||
"pub:preminor": "npm run watchdog:build && lerna publish preminor --force-publish --exact --dist-tag beta --preid beta --no-changelog", | ||
"pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog", | ||
"pub:prerelease": "npm run watchdog:build && lerna publish prerelease --yes --force-publish --exact --dist-tag beta --preid beta --no-changelog", | ||
"syncOss": "node ./scripts/sync-oss.js" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "f2elint commit-file-scan", | ||
"commit-msg": "f2elint commit-msg-scan" | ||
} | ||
"syncOss": "node ./scripts/sync-oss.js", | ||
"prepare": "husky" | ||
}, | ||
"devDependencies": { | ||
"@alilc/build-plugin-lce": "^0.0.5", | ||
"@alilc/lowcode-test-mate": "^1.0.1", | ||
"@changesets/cli": "^2.27.1", | ||
"@commitlint/cli": "^19.2.1", | ||
"@commitlint/config-conventional": "^19.1.0", | ||
"@eslint/js": "^8.57.0", | ||
"@microsoft/api-extractor": "^7.43.0", | ||
"@stylistic/eslint-plugin": "^1.7.0", | ||
"@types/node": "^20.11.30", | ||
"@types/react-router": "5.1.18", | ||
"@typescript-eslint/parser": "^7.4.0", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"babel-jest": "^26.5.2", | ||
"del": "^6.1.1", | ||
"execa": "^8.0.1", | ||
"f2elint": "^4.2.1", | ||
"gulp": "^4.0.2", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.6", | ||
"husky": "^9.0.11", | ||
"typescript": "^5.4.2", | ||
"prettier": "^3.2.5", | ||
"lint-staged": "^15.2.2", | ||
"rimraf": "^5.0.2", | ||
"rollup": "^4.13.0", | ||
"typescript": "^5.4.2", | ||
"vite": "^5.1.6", | ||
"vitest": "^1.3.1" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0", | ||
"pnpm": ">= 8" | ||
}, | ||
"lint-staged": { | ||
"*": "pnpm lint" | ||
}, | ||
"repository": "[email protected]:alibaba/lowcode-engine.git" | ||
} |
10 changes: 5 additions & 5 deletions
10
packages/renderer-react/package.json → packages/react-renderer/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters