Skip to content

Instantly share code, notes, and snippets.

@devinschumacher
Last active March 26, 2025 02:25
Show Gist options
  • Save devinschumacher/5d5bdaba5c5384b6332b71dd69400ccc to your computer and use it in GitHub Desktop.
Save devinschumacher/5d5bdaba5c5384b6332b71dd69400ccc to your computer and use it in GitHub Desktop.
eslint Configs for Nuxt Project
tags
eslint
nuxt

How To Turn eslint Warnings OFF in VSCode Editor & Console (via config)

// eslint.config.mjs
export default withNuxt({
  rules: {
    'no-unused-vars': 'off',
  },
  ignores: ['**/.playground/**']
});

How To Turn eslint Warnings OFF in VSCode Editor & Console (via run command)

// package.json

"lint": "prettier . --write && eslint --fix --quiet",

How To Tell eslint to Ignore Certain Files / Directories

// eslint.config.mjs

export default withNuxt({
  ignores: ['**/.playground/**']
});

How to Ignore an Entire File for ESLint

Put this at the top of the file:

/* eslint-disable */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment