Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(lint): set up linter #16

Merged
merged 3 commits into from
Feb 28, 2023
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
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
.output
.nuxt
8 changes: 8 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
root: true,
extends: '@nuxt/eslint-config',
rules: {
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 'off'
}
}
8 changes: 3 additions & 5 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@ export default defineAppConfig({
description: 'The best place to start your documentation.',
image: 'https://user-images.githubusercontent.com/904724/185365452-87b7ca7b-6030-4813-a2db-5e65c785bf88.png',
socials: {
twitter: 'nuxt_themes',
twitter: 'nuxtstudio',
github: 'nuxt-themes/docus'
},
aside: {
level: 0,
exclude: []
},
header: {
logo: true,
showLinkIcon: true,
exclude: []
logo: true
},
footer: {
iconLinks: [
{
href: 'https://nuxt.com',
icon: 'IconNuxtLabs'
icon: 'simple-icons:nuxtdotjs'
}
]
}
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
"dev": "nuxi dev",
"build": "nuxi build",
"generate": "nuxi generate",
"preview": "nuxi preview"
"preview": "nuxi preview",
"lint": "eslint ."
},
"devDependencies": {
"nuxt": "^3.2.2",
"@nuxt-themes/docus": "^1.9.0"
"@nuxt-themes/docus": "^1.9.0",
"@nuxt/eslint-config": "^0.1.1",
"eslint": "^8.35.0",
"nuxt": "^3.2.2"
}
}
Loading