Skip to content

Instantly share code, notes, and snippets.

View JohnCampionJr's full-sized avatar

John Campion Jr JohnCampionJr

View GitHub Profile
@JohnCampionJr
JohnCampionJr / eslint.config.mjs
Last active June 8, 2024 23:33
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: {
@JohnCampionJr
JohnCampionJr / eslint.config.mjs
Last active June 7, 2024 08:20
ESLint Configuration - Based on @antfu/eslint-config, but with Nuxt and Tailwind
import antfu from '@antfu/eslint-config'
import perfectionistNatural from 'eslint-plugin-perfectionist/configs/recommended-natural'
import tailwind from 'eslint-plugin-tailwindcss'
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
antfu(
{ formatters: true, stylistic: true },