Guild's ESLint shareable configs for linting JavaScript/TypeScript/React projects.
For JavaScript/TypeScript projects
pnpm add -D eslint @theguild/eslint-config
Extend a @theguild
config for JavaScript/TypeScript projects.
// .eslintrc.cjs
module.exports = {
extends: ['@theguild']
}
Extend a @theguild/eslint-config/react
config for React projects.
// .eslintrc.cjs
module.exports = {
extends: ['@theguild/eslint-config/react']
}
Extend a @theguild/eslint-config/mdx
config for .md
/.mdx
files.
// .eslintrc.cjs
module.exports = {
extends: ['@theguild/eslint-config/mdx']
}
Extend a @theguild/eslint-config/json
config for .json
/.jsonc
/.json5
files.
// .eslintrc.cjs
module.exports = {
extends: ['@theguild/eslint-config/json']
}
Extend a @theguild/eslint-config/yml
config for .yml
/.yaml
files.
// .eslintrc.cjs
module.exports = {
extends: ['@theguild/eslint-config/yml']
}