@jenssimon/eslint-config-base

A collection of shareable ESLint configurations


Keywords
eslint, eslintconfig
License
MIT
Install
npm install @jenssimon/eslint-config-base@7.3.25

Documentation

NPM version Downloads star this repo fork this repo Build Status

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:

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