Skip to content

Commit

Permalink
refresh ESLint setup with antfu's config and package upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
camdendotlol committed Sep 7, 2024
1 parent 97061ca commit 58a6dee
Show file tree
Hide file tree
Showing 54 changed files with 3,508 additions and 2,466 deletions.
23 changes: 0 additions & 23 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
with:
branch: gh-pages
clean: true
folder: ./dist
folder: ./dist
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
Expand Down
50 changes: 50 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ I'm happy to accept contributions for anything in the list of issues. Please lea

If you want to change something not listed in the issues, open an issue to propose it. For the most part I'm not interested in big design changes, but I'm always open to new item categories, performance improvements, or other bug fixes.

Keep in mind that this project started as a personal portfolio project when I had very little programming experience. The code isn't very professional and there's a lot of room for improvement. This was also my first, and so far only, Vue project. Feedback and contributions from Vue experts would be greatly appreciated.
Keep in mind that this project started as a personal portfolio project when I had very little programming experience. The code isn't very professional and there's a lot of room for improvement.

## Project setup

Expand All @@ -34,6 +34,3 @@ Please make sure your changes pass the linter before opening a PR.
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu()
Loading

0 comments on commit 58a6dee

Please sign in to comment.