Skip to content

Commit

Permalink
chore: lint with @nuxt/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Apr 18, 2024
1 parent b699024 commit 4f6a634
Show file tree
Hide file tree
Showing 9 changed files with 733 additions and 1,072 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Silent the stylistic rules in you IDE, but still auto-fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "@stylistic/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
Expand Down
16 changes: 11 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import antfu from '@antfu/eslint-config'
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default await antfu({
rules: {
'node/prefer-global/process': 'off',
'ts/ban-types': 'off',
export default createConfigForNuxt({
features: {
tooling: true,
stylistic: true,
},
dirs: {
src: [
'./playground',
],
},
})
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "nuxt-gtag",
"type": "module",
"version": "2.0.5",
"packageManager": "pnpm@8.15.6",
"packageManager": "pnpm@8.15.7",
"description": "Natively integrates Google Tag into Nuxt",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"author": "Johann Schopplich <hello@johannschopplich.com>",
"license": "MIT",
"homepage": "https://github.com/johannschopplich/nuxt-gtag#readme",
"repository": {
Expand Down Expand Up @@ -39,7 +39,7 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test:types": "tsc --noEmit",
"release": "bumpp --commit --push --tag"
"release": "bumpp"
},
"dependencies": {
"@nuxt/kit": "^3.11.2",
Expand All @@ -48,13 +48,13 @@
"ufo": "^1.5.3"
},
"devDependencies": {
"@antfu/eslint-config": "^2.13.2",
"@nuxt/eslint-config": "^0.3.8",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "^3.11.2",
"@types/node": "^20.12.7",
"bumpp": "^9.4.0",
"eslint": "^8.57.0",
"eslint": "^9.0.0",
"nuxt": "^3.11.2",
"typescript": "^5.4.4"
"typescript": "^5.4.5"
}
}
1 change: 0 additions & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const isInitialized = ref(gtagOpts.enabled)
const isAnalyticsActive = ref(true)
onMounted(() => {
// eslint-disable-next-line no-console
console.log('Use the "gtag" function to send custom events', gtag)
})
Expand Down

0 comments on commit 4f6a634

Please sign in to comment.