Skip to content

Commit

Permalink
feat: Replace eslint plugin with @nabla/vite-plugin-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigismall committed May 10, 2024
1 parent adebfef commit 162d045
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
.cache/
coverage/
dist/*

node_modules/
*.log
.idea
.eslintcache

# OS generated files
.DS_Store
Expand Down
68 changes: 17 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"lint:fix": "eslint --fix --ext .ts,.tsx src"
},
"devDependencies": {
"@nabla/vite-plugin-eslint": "^2.0.4",
"@types/leaflet": "^1.9.12",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"eslint": "^8.57.0",
Expand All @@ -21,8 +22,7 @@
"eslint-plugin-promise": "^6.1.1",
"sass": "^1.77.0",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite-plugin-eslint": "^1.8.1"
"vite": "^5.2.11"
},
"dependencies": {
"exifr": "^7.1.3",
Expand Down
5 changes: 3 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import eslint from 'vite-plugin-eslint'
import eslintPlugin from "@nabla/vite-plugin-eslint";

export default defineConfig({
plugins: [eslint({
plugins: [eslintPlugin({
exclude: ['node_modules/**', 'dist/**']
})],
base: '/'
Expand Down

0 comments on commit 162d045

Please sign in to comment.