mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 01:10:40 +01:00
chore(deps): use @nuxt/eslint-config
This commit is contained in:
12
.eslintrc.cjs
Normal file
12
.eslintrc.cjs
Normal 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
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
root: true,
|
|
||||||
extends: [
|
|
||||||
'@nuxtjs/eslint-config-typescript'
|
|
||||||
],
|
|
||||||
rules: {
|
|
||||||
'vue/multi-word-component-names': 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"prepack": "yarn build",
|
"prepack": "yarn build",
|
||||||
"dev": "nuxi dev docs",
|
"dev": "nuxi dev docs",
|
||||||
"build:docs": "nuxi build docs",
|
"build:docs": "nuxi build docs",
|
||||||
"lint": "eslint --ext .ts,.js,.vue .",
|
"lint": "eslint .",
|
||||||
"typecheck": "nuxi typecheck",
|
"typecheck": "nuxi typecheck",
|
||||||
"prepare": "nuxi prepare docs",
|
"prepare": "nuxi prepare docs",
|
||||||
"release": "yarn lint && standard-version && git push --follow-tags"
|
"release": "yarn lint && standard-version && git push --follow-tags"
|
||||||
@@ -50,12 +50,12 @@
|
|||||||
"@iconify-json/simple-icons": "^1.1.53",
|
"@iconify-json/simple-icons": "^1.1.53",
|
||||||
"@nuxt/content": "^2.6.0",
|
"@nuxt/content": "^2.6.0",
|
||||||
"@nuxt/devtools": "^0.4.6",
|
"@nuxt/devtools": "^0.4.6",
|
||||||
|
"@nuxt/eslint-config": "^0.1.1",
|
||||||
"@nuxt/module-builder": "^0.3.1",
|
"@nuxt/module-builder": "^0.3.1",
|
||||||
"@nuxthq/studio": "^0.12.1",
|
"@nuxthq/studio": "^0.12.1",
|
||||||
"@nuxtjs/eslint-config-typescript": "^12.0.0",
|
|
||||||
"@nuxtjs/plausible": "^0.2.1",
|
"@nuxtjs/plausible": "^0.2.1",
|
||||||
"@types/lodash-es": "^4.17.7",
|
"@types/lodash-es": "^4.17.7",
|
||||||
"@types/node": "^20.1.4",
|
"@types/node": "^20.1.7",
|
||||||
"@vueuse/nuxt": "^10.1.2",
|
"@vueuse/nuxt": "^10.1.2",
|
||||||
"eslint": "^8.40.0",
|
"eslint": "^8.40.0",
|
||||||
"nuxt": "^3.4.3",
|
"nuxt": "^3.4.3",
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ export function useTimer (cb: (...args: unknown[]) => any, interval: number, opt
|
|||||||
timer = setTimeout(() => {
|
timer = setTimeout(() => {
|
||||||
timer = null
|
timer = null
|
||||||
startTime.value = null
|
startTime.value = null
|
||||||
// eslint-disable-next-line n/no-callback-literal
|
|
||||||
cb(...args)
|
cb(...args)
|
||||||
}, remaining.value) as unknown as number
|
}, remaining.value) as unknown as number
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user