Skip to content

Commit

Permalink
dev: reset eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Octobug committed Oct 31, 2023
1 parent 1461880 commit a7e0ee1
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 97 deletions.
66 changes: 31 additions & 35 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,53 @@
{
"parser": "vue-eslint-parser",
"env": {
"browser": true,
"es2021": true
},
"extends": [
"xo",
"plugin:vue/vue3-essential"
"eslint:recommended",
"plugin:vue/vue3-recommended"
],
"ignorePatterns": [
"!.vitepress"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"vue"
],
"ignorePatterns": [
"!.vitepress"
"vue",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/indent": [
"error",
2
],
"@typescript-eslint/object-curly-spacing": [
"error",
"always"
],
"@typescript-eslint/quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"@typescript-eslint/semi": [
"error",
"always"
],
"vue/multi-word-component-names": "off"
},
"overrides": [
{
"parser": "vue-eslint-parser",
"extends": [
"xo-typescript"
],
"files": [
"*.ts",
"*.tsx",
"*.vue"
],
"rules": {
"@typescript-eslint/indent": [
"error",
2
],
"@typescript-eslint/object-curly-spacing": [
"error",
"always"
],
"@typescript-eslint/quotes": [
"error",
"double",
{
"avoidEscape": true
}
]
},
"parserOptions": {
"parser": "@typescript-eslint/parser",
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [
".vue"
]
}
]
}
]
}
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/.vitepress/dist
/.vitepress/cache
.DS_Store
.vitepress/dist
.vitepress/cache
node_modules
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Thoughts on everything.

## The Theme

This blog is powered by [VitePress](https://vitepress.dev/). Its theme highly utilizes these two projects:
This blog is powered by [VitePress](https://vitepress.dev/) and hosted on
GitHub Pages. Its theme highly utilized these two projects:

- [airene/vitepress-blog-pure](https://github.com/airene/vitepress-blog-pure)
- [clark-cui/vitepress-blog-zaun](https://github.com/clark-cui/vitepress-blog-zaun)
Expand Down
50 changes: 3 additions & 47 deletions package-lock.json

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

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.50.0",
"eslint-config-xo": "^0.43.1",
"eslint-config-xo-typescript": "^1.0.1",
"eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.3",
"lint-staged": "^15.0.2",
Expand Down
9 changes: 0 additions & 9 deletions tsconfig.eslint.json

This file was deleted.

0 comments on commit a7e0ee1

Please sign in to comment.