chore: add linter, fix linter bugs
Showing
- .eslintrc.js 19 additions, 0 deletions.eslintrc.js
- package-lock.json 2739 additions, 56 deletionspackage-lock.json
- package.json 7 additions, 1 deletionpackage.json
- src/components/App.tsx 2 additions, 2 deletionssrc/components/App.tsx
- src/components/ErrorModal.tsx 1 addition, 3 deletionssrc/components/ErrorModal.tsx
- src/components/Form/AddPoiForm.tsx 4 additions, 6 deletionssrc/components/Form/AddPoiForm.tsx
- src/components/Form/CoordinateInput.tsx 1 addition, 1 deletionsrc/components/Form/CoordinateInput.tsx
- src/components/Form/FileInput.tsx 1 addition, 1 deletionsrc/components/Form/FileInput.tsx
- src/components/Form/TagInput.tsx 2 additions, 2 deletionssrc/components/Form/TagInput.tsx
- src/components/Form/TextInput.tsx 1 addition, 1 deletionsrc/components/Form/TextInput.tsx
- src/components/Notification.tsx 1 addition, 3 deletionssrc/components/Notification.tsx
- src/components/Sidebar/SidebarCreateView.tsx 1 addition, 3 deletionssrc/components/Sidebar/SidebarCreateView.tsx
- src/components/Sidebar/SidebarListView.tsx 1 addition, 3 deletionssrc/components/Sidebar/SidebarListView.tsx
- src/components/Sidebar/SidebarSingleView.tsx 1 addition, 3 deletionssrc/components/Sidebar/SidebarSingleView.tsx
- src/components/Spinner.tsx 1 addition, 3 deletionssrc/components/Spinner.tsx
- src/components/SwrWrapper.tsx 1 addition, 3 deletionssrc/components/SwrWrapper.tsx
- src/hooks/usePoiData.ts 6 additions, 2 deletionssrc/hooks/usePoiData.ts
- src/hooks/useStore.ts 1 addition, 1 deletionsrc/hooks/useStore.ts
- src/util/array.ts 1 addition, 1 deletionsrc/util/array.ts
- src/util/color.ts 1 addition, 1 deletionsrc/util/color.ts
.eslintrc.js
0 → 100644
This diff is collapsed.
... | ... | @@ -3,7 +3,8 @@ |
"start": "snowpack dev", | ||
"build": "snowpack build && npm run copy:htaccess", | ||
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"", | ||
"lint": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\"", | ||
"prettier:lint": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\"", | ||
"eslint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"", | ||
"copy:htaccess": "cp public/.htaccess build/" | ||
}, | ||
"dependencies": { | ||
... | ... | @@ -30,7 +31,12 @@ |
"@types/react-dom": "^17.0.5", | ||
"@types/react-router-dom": "^5.1.7", | ||
"@types/snowpack-env": "^2.3.2", | ||
"@typescript-eslint/eslint-plugin": "^4.24.0", | ||
"@typescript-eslint/parser": "^4.24.0", | ||
"autoprefixer": "^10.2.4", | ||
"eslint": "^7.26.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-react": "^7.23.2", | ||
"postcss": "^8.3.0", | ||
"postcss-cli": "^8.3.1", | ||
"prettier": "^2.3.0", | ||
... | ... |
Please register or sign in to comment