Skip to content

Commit

Permalink
feat: align browser behaviors for ux
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Aug 28, 2021
1 parent 899cf41 commit ef31004
Show file tree
Hide file tree
Showing 8 changed files with 1,129 additions and 71 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint", "react-hooks"],
"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",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"license": "MIT",
"dependencies": {
"@logseq/libs": "^0.0.1-alpha.26",
"eslint-plugin-react-hooks": "^4.2.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-use": "^17.2.4"
Expand All @@ -20,8 +21,12 @@
"@semantic-release/npm": "7.1.3",
"@types/react": "17.0.19",
"@types/react-dom": "17.0.9",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"@vitejs/plugin-react-refresh": "1.3.6",
"conventional-changelog-conventionalcommits": "4.6.0",
"eslint": "^7.32.0",
"eslint-plugin-react": "^7.24.0",
"typescript": "4.4.2",
"vite": "2.5.1",
"vite-plugin-windicss": "1.3.0",
Expand Down
Loading

0 comments on commit ef31004

Please sign in to comment.