@joshunrau/eslint-config
v4.3.3
Published
Linting configurations for my personal projects
Downloads
30
Readme
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"
]
}