@jenssimon/eslint-config-base
v7.4.42
Published
A collection of shareable ESLint configurations
Downloads
5,141
Readme
eslint-config-base
A collection of shareable ESLint configurations for both client and server side code
Installation
yarn add @jenssimon/eslint-config-base --dev
General
All configurations are based on the Airbnb JavaScript Style Guide.
Additionally:
- line length 120 characters
- no semicolons
- eslint-plugin-unicorn
- eslint-plugin-sonarjs
- eslint-plugin-promise
- eslint-plugin-eslint-comments
Note
If you don't trust ASI and still want to use semicolons:
{ "extends": [ "@jenssimon/base", ] "rules": { "semi": ["error", "always"] } }
Configurations
Base configuration
Suitable for server side Node.js code. Based on eslint-config-airbnb-base.
{
"extends": [
"@jenssimon/base"
]
}
Frontend Standard
Standard rules for frontend code (without React/JSX). Enforces ES2015+ code without jQuery. Based on eslint-config-airbnb-base.
{
"extends": [
"@jenssimon/base/frontend"
]
}
Frontend Lit
Rules for frontend code that uses Lit. Like the standard frontend rules it enforces ES2015+ code. Based on eslint-config-airbnb-base.
{
"extends": [
"@jenssimon/base/frontend-lit"
]
}
Frontend React
Rules for frontend code that typically uses React. Like the standard frontend rules it enforces ES2015+ code. Based on eslint-config-airbnb.
{
"extends": [
"@jenssimon/base/frontend-react"
]
}
License
MIT © 2023 Jens Simon