@joshunrau/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

4.3.3 • Public • Published

ESLint Config

Install

pnpm add -D @joshunrau/eslint-config eslint

Usage

eslint.config.js

import { config } from '@joshunrau/eslint-config';

// These are the defaults, override as needed depending on project
export default config({
  astro: { enabled: false },
  env: { browser: true, es2021: true, node: true },
  exclude: [],
  jsdoc: { enabled: false },
  json: { enabled: true, sort: { packageJson: true, tsconfig: true } },
  perfectionist: { enabled: true },
  react: { enabled: false },
  svelte = { enabled: false },
  typescript: { enabled: true }
});

VSCode

settings.json

{
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "astro",
    "typescript",
    "typescriptreact",
    "javascript",
    "javascriptreact",
    "json",
    "jsonc"
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i @joshunrau/eslint-config

Weekly Downloads

0

Version

4.3.3

License

MIT

Unpacked Size

31.7 kB

Total Files

33

Last publish

Collaborators

  • joshunrau