Last active
June 8, 2024 23:33
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', | |
| }, | |
| }, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| eslint: { | |
| config: { | |
| standalone: false, | |
| }, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "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" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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