Skip to content

Commit

Permalink
✨ feat: Update Remark
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jan 7, 2025
1 parent 0a8d8de commit 78eec46
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 72 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
- name: Install deps
run: bun i

- name: Test
run: bun run test

- name: Build
run: bun run build

Expand Down
1 change: 0 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

git add .
npm run type-check
npm run lint:circular
npx --no-install lint-staged
4 changes: 4 additions & 0 deletions clean-package.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
indent: 2,
remove: ['scripts', 'lint-staged', 'devDependencies', 'publishConfig', 'clean-package'],
};
121 changes: 62 additions & 59 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@
"scripts": {
"build": "father build",
"dev": "father dev",
"doctor": "father doctor",
"lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
"lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
"lint:md": "remark . --quiet --output",
"lint:style": "stylelint \"{src,tests}/**/*.{css,less,js,jsx,ts,tsx}\" --fix",
"prepack": "npm run build && clean-pkg-json",
"prepare": "husky install && npm run build",
"prepack": "clean-package",
"postpack": "clean-package restore",
"prepare": "husky && npm run build",
"prettier": "prettier -c --write \"**/**\"",
"release": "semantic-release",
"start": "npm run dev",
"test": "father doctor",
"type-check": "tsc -p tsconfig-check.json"
"type-check": "tsc --noEmit"
},
"lint-staged": {
"*.md": [
Expand All @@ -55,87 +57,88 @@
]
},
"dependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@typescript-eslint/eslint-plugin": "7.5.0",
"@typescript-eslint/parser": "7.5.0",
"@umijs/babel-preset-umi": "^4.3.12",
"@umijs/lint": "^4.3.12",
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
"@typescript-eslint/eslint-plugin": "8.19.1",
"@typescript-eslint/parser": "8.19.1",
"@umijs/babel-preset-umi": "^4.4.4",
"@umijs/lint": "^4.4.4",
"commitlint-config-gitmoji": "^2.3.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.8.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"eslint-plugin-typescript-sort-keys": "^3.2.0",
"eslint-plugin-unicorn": "^54.0.0",
"eslint-plugin-unused-imports": "^3.2.0",
"eslint-plugin-typescript-sort-keys": "^3.3.0",
"eslint-plugin-unicorn": "^56.0.1",
"eslint-plugin-unused-imports": "^4.1.4",
"gatsby-remark-find-replace": "^0.3.0",
"postcss-less": "^6.0.0",
"postcss-styled-syntax": "^0.6.4",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-packagejson": "^2.5.1",
"postcss-styled-syntax": "^0.7.0",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-packagejson": "^2.5.6",
"prettier-plugin-sh": "^0.14.0",
"prettier-plugin-sort-json": "^4.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^3.0.1",
"remark-lint": "^9.1.2",
"remark-lint-checkbox-content-indent": "^4.1.2",
"remark-gfm": "^4.0.0",
"remark-lint": "^10.0.0",
"remark-lint-checkbox-content-indent": "^5.0.0",
"remark-lint-frontmatter-schema": "^3.15.4",
"remark-lint-heading-whitespace": "^1.0.0",
"remark-lint-linebreak-style": "^3.1.2",
"remark-lint-list-item-indent": "^3.1.2",
"remark-lint-list-item-spacing": "^4.1.2",
"remark-lint-no-duplicate-headings-in-section": "^3.1.2",
"remark-lint-linebreak-style": "^4.0.0",
"remark-lint-list-item-indent": "^4.0.0",
"remark-lint-list-item-spacing": "^5.0.0",
"remark-lint-no-duplicate-headings-in-section": "^4.0.0",
"remark-lint-no-empty-sections": "^4.0.0",
"remark-lint-no-empty-url": "^3.1.2",
"remark-lint-no-file-name-irregular-characters": "^2.1.2",
"remark-lint-no-heading-indent": "^4.1.2",
"remark-lint-no-heading-like-paragraph": "^3.1.2",
"remark-lint-no-paragraph-content-indent": "^4.1.2",
"remark-lint-no-reference-like-url": "^3.1.2",
"remark-lint-no-shell-dollars": "^3.1.2",
"remark-lint-no-tabs": "^3.1.2",
"remark-lint-no-unneeded-full-reference-image": "^3.1.2",
"remark-lint-no-unneeded-full-reference-link": "^3.1.2",
"remark-lint-ordered-list-marker-value": "^3.1.2",
"remark-lint-no-empty-url": "^4.0.0",
"remark-lint-no-file-name-irregular-characters": "^3.0.0",
"remark-lint-no-heading-indent": "^5.0.0",
"remark-lint-no-heading-like-paragraph": "^4.0.0",
"remark-lint-no-paragraph-content-indent": "^5.0.0",
"remark-lint-no-reference-like-url": "^4.0.0",
"remark-lint-no-shell-dollars": "^4.0.0",
"remark-lint-no-tabs": "^4.0.0",
"remark-lint-no-unneeded-full-reference-image": "^4.0.0",
"remark-lint-no-unneeded-full-reference-link": "^4.0.0",
"remark-lint-ordered-list-marker-value": "^4.0.0",
"remark-lint-write-good": "^1.2.0",
"remark-pangu": "^2.2.0",
"remark-preset-lint-consistent": "^5.1.2",
"remark-preset-lint-markdown-style-guide": "^5.1.3",
"remark-preset-lint-recommended": "^6.1.3",
"remark-remove-unused-definitions": "^1.0.4",
"remark-sort-definitions": "^1.0.5",
"remark-textr": "^5.0.1",
"remark-preset-lint-consistent": "^6.0.0",
"remark-preset-lint-markdown-style-guide": "^6.0.0",
"remark-preset-lint-recommended": "^7.0.0",
"remark-remove-unused-definitions": "^2.0.0",
"remark-sort-definitions": "^2.0.0",
"remark-textr": "^6.1.0",
"remark-toc": "^9.0.0",
"semantic-release-config-gitmoji": "^1.5.3",
"stylelint-config-clean-order": "^6.1.0",
"stylelint-config-clean-order": "^7.0.0",
"stylelint-config-recommended": "^14.0.1",
"stylelint-less": "^3.0.1",
"stylelint-order": "^6.0.4",
"stylelint-use-logical-spec": "^5.0.1",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@commitlint/cli": "^19.4.0",
"@types/node": "^20.14.14",
"antd-style": "^3.6.2",
"clean-pkg-json": "^1.2.0",
"commitlint": "^19.4.0",
"@commitlint/cli": "^19.6.1",
"@types/node": "^22.10.5",
"antd-style": "^3.7.1",
"clean-package": "^2.2.0",
"commitlint": "^19.6.1",
"dpdm": "^3.14.0",
"eslint": "^8.57.0",
"father": "^4.5.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"prettier": "^3.3.3",
"react": "^18.3.1",
"remark": "^14.0.3",
"remark-cli": "^11.0.0",
"father": "^4.5.1",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"prettier": "^3.4.2",
"react": "^19.0.0",
"remark": "^15.0.1",
"remark-cli": "^12.0.1",
"semantic-release": "^21.1.2",
"stylelint": "^16.8.1",
"typescript": "^5.5.4"
"stylelint": "^16.12.0",
"typescript": "^5.7.2"
},
"publishConfig": {
"access": "public",
Expand Down
1 change: 0 additions & 1 deletion src/remarklint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export default {
bullet: '-',
emphasis: '*',
fences: true,
listItemIndent: 1,
rule: '-',
strong: '*',
tightDefinitions: true,
Expand Down
6 changes: 0 additions & 6 deletions tsconfig-check.json

This file was deleted.

0 comments on commit 78eec46

Please sign in to comment.