Skip to content

Commit

Permalink
chore(lint): set up linter (#16)
Browse files Browse the repository at this point in the history
* chore(lint): set up linter

* chore: update

---------

Co-authored-by: Sébastien Chopin <[email protected]>
  • Loading branch information
orimdominic and atinux authored Feb 28, 2023
1 parent 4b2eb4e commit 251f857
Show file tree
Hide file tree
Showing 5 changed files with 7,413 additions and 8 deletions.
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

0 comments on commit 251f857

Please sign in to comment.