Skip to content

Commit dc94873

Browse files
committed
feat: code formatter plugin mvp done
1 parent 156101d commit dc94873

File tree

12 files changed

+132
-940
lines changed

12 files changed

+132
-940
lines changed

.eslintrc.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
22
"extends": [
33
"eslint:recommended",
4-
"plugin:react/recommended",
54
"plugin:@typescript-eslint/eslint-recommended",
65
"plugin:@typescript-eslint/recommended"
76
],
8-
"plugins": ["@typescript-eslint", "react-hooks"],
7+
"plugins": ["@typescript-eslint"],
98
"parser": "@typescript-eslint/parser",
109
"rules": {
11-
"react-hooks/rules-of-hooks": "error",
12-
"react-hooks/exhaustive-deps": "warn",
1310
"import/prefer-default-export": "off",
1411
"@typescript-eslint/ban-ts-comment": "off",
1512
"@typescript-eslint/no-non-null-assertion": "off",

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99
<body>
1010
<div id="app"></div>
11-
<script type="module" src="/src/main.tsx"></script>
11+
<script type="module" src="/src/main.ts"></script>
1212
</body>
1313
</html>

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,20 @@
1010
"license": "MIT",
1111
"dependencies": {
1212
"@logseq/libs": "^0.0.9",
13-
"react": "^18.2.0",
14-
"react-dom": "^18.2.0"
13+
"prettier": "^2.7.1"
1514
},
1615
"devDependencies": {
1716
"@semantic-release/changelog": "6.0.1",
1817
"@semantic-release/exec": "6.0.3",
1918
"@semantic-release/git": "10.0.1",
2019
"@semantic-release/npm": "9.0.1",
2120
"@types/node": "18.0.4",
22-
"@types/react": "18.0.21",
23-
"@types/react-dom": "18.0.6",
21+
"@types/prettier": "^2.7.1",
2422
"@typescript-eslint/eslint-plugin": "5.40.1",
2523
"@typescript-eslint/parser": "5.40.1",
26-
"@vitejs/plugin-react": "2.1.0",
2724
"autoprefixer": "10.4.12",
2825
"conventional-changelog-conventionalcommits": "5.0.0",
2926
"eslint": "8.25.0",
30-
"eslint-plugin-react": "7.31.10",
31-
"eslint-plugin-react-hooks": "4.6.0",
3227
"postcss": "8.4.18",
3328
"semantic-release": "19.0.5",
3429
"tailwindcss": "3.1.8",
@@ -37,7 +32,7 @@
3732
"vite-plugin-logseq": "1.1.2"
3833
},
3934
"logseq": {
40-
"id": "_pengx17-logseq-template-react",
35+
"id": "perfectpan-logseq-code-formatter",
4136
"icon": "./logo.svg"
4237
}
4338
}

0 commit comments

Comments
 (0)