Skip to content

Commit

Permalink
feat: code formatter plugin mvp done
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectPan committed Nov 13, 2022
1 parent 156101d commit dc94873
Show file tree
Hide file tree
Showing 12 changed files with 132 additions and 940 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint", "react-hooks"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,20 @@
"license": "MIT",
"dependencies": {
"@logseq/libs": "^0.0.9",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"prettier": "^2.7.1"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
"@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "9.0.1",
"@types/node": "18.0.4",
"@types/react": "18.0.21",
"@types/react-dom": "18.0.6",
"@types/prettier": "^2.7.1",
"@typescript-eslint/eslint-plugin": "5.40.1",
"@typescript-eslint/parser": "5.40.1",
"@vitejs/plugin-react": "2.1.0",
"autoprefixer": "10.4.12",
"conventional-changelog-conventionalcommits": "5.0.0",
"eslint": "8.25.0",
"eslint-plugin-react": "7.31.10",
"eslint-plugin-react-hooks": "4.6.0",
"postcss": "8.4.18",
"semantic-release": "19.0.5",
"tailwindcss": "3.1.8",
Expand All @@ -37,7 +32,7 @@
"vite-plugin-logseq": "1.1.2"
},
"logseq": {
"id": "_pengx17-logseq-template-react",
"id": "perfectpan-logseq-code-formatter",
"icon": "./logo.svg"
}
}
Loading

0 comments on commit dc94873

Please sign in to comment.