Skip to content

Instantly share code, notes, and snippets.

@JohnCampionJr
Last active June 8, 2024 23:33
Show Gist options
  • Select an option

  • Save JohnCampionJr/8d7f77fe5af9b6922c611ca08722714e to your computer and use it in GitHub Desktop.

Select an option

Save JohnCampionJr/8d7f77fe5af9b6922c611ca08722714e to your computer and use it in GitHub Desktop.
Prettier / ESLint Config - Based on @antfu/eslint-config, but with Prettier, Nuxt, and Tailwind
import { jcamp } from '@jcamp/eslint-config'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
jcamp(),
// these should be set if the particular project needs them
{
name: 'jcamp/overrides',
rules: {
eqeqeq: 'off',
},
},
)
eslint: {
config: {
standalone: false,
},
},
"devDependencies": {
"@antfu/eslint-config": "^2.20.0",
"@jcamp/eslint-config": "^2.1.0",
"@nuxt/eslint": "^0.3.13",
"eslint": "9.4.0",
"prettier": "3.3.1"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [],
"allowedVersions": {
"eslint": "9"
}
}
}
import { prettier } from '@jcamp/eslint-config'
export default {
...prettier,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment