chore(deps): use @nuxt/eslint-config

This commit is contained in:
Benjamin Canac
2023-05-17 12:30:03 +02:00
parent 1bfcf31964
commit ead46f6798
5 changed files with 113 additions and 699 deletions

12
.eslintrc.cjs Normal file
View File

@@ -0,0 +1,12 @@
module.exports = {
root: true,
extends: ['@nuxt/eslint-config'],
rules: {
'vue/multi-word-component-names': 0,
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 5
}
}]
}
}

View File

@@ -1,9 +0,0 @@
module.exports = {
root: true,
extends: [
'@nuxtjs/eslint-config-typescript'
],
rules: {
'vue/multi-word-component-names': 0
}
}

View File

@@ -22,7 +22,7 @@
"prepack": "yarn build",
"dev": "nuxi dev docs",
"build:docs": "nuxi build docs",
"lint": "eslint --ext .ts,.js,.vue .",
"lint": "eslint .",
"typecheck": "nuxi typecheck",
"prepare": "nuxi prepare docs",
"release": "yarn lint && standard-version && git push --follow-tags"
@@ -50,12 +50,12 @@
"@iconify-json/simple-icons": "^1.1.53",
"@nuxt/content": "^2.6.0",
"@nuxt/devtools": "^0.4.6",
"@nuxt/eslint-config": "^0.1.1",
"@nuxt/module-builder": "^0.3.1",
"@nuxthq/studio": "^0.12.1",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"@nuxtjs/plausible": "^0.2.1",
"@types/lodash-es": "^4.17.7",
"@types/node": "^20.1.4",
"@types/node": "^20.1.7",
"@vueuse/nuxt": "^10.1.2",
"eslint": "^8.40.0",
"nuxt": "^3.4.3",

View File

@@ -18,7 +18,6 @@ export function useTimer (cb: (...args: unknown[]) => any, interval: number, opt
timer = setTimeout(() => {
timer = null
startTime.value = null
// eslint-disable-next-line n/no-callback-literal
cb(...args)
}, remaining.value) as unknown as number
}

784
yarn.lock

File diff suppressed because it is too large Load Diff