Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Plugin frontend refactor changes #106

Merged
merged 17 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions plugin/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"standard-with-typescript"
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"react",
"react-hooks"
],
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"],
"rules": {
"semi": [2, "never"],
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": ""
}
], // Checks effect dependencies
"multiline-ternary": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"no-multiple-empty-lines": ["error", { "max": 3 }],
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/no-explicit-any": "off"
},
"settings": {
"react": {
Expand Down
3 changes: 2 additions & 1 deletion plugin/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"useTabs": false,
"singleQuote": true,
"semi": false,
"trailingComma": "none"
"trailingComma": "none",
"printWidth": 120
}
4 changes: 4 additions & 0 deletions plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,20 @@
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^7.10.0",
"@vitejs/plugin-react": "^4.1.0",
"assemblyscript": "^0.27.5",
"eslint": "^8.45.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^35.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.2",
"prettier": "^3.2.5",
"typescript": "^5.1.6",
"vite": "^4.4.9"
},
Expand Down
Loading
Loading