@jenssimon/eslint-config-base

7.4.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @jenssimon/eslint-config-base

Weekly Downloads

825

Version

7.4.5

License

MIT

Unpacked Size

11 kB

Total Files

12

Last publish

Collaborators

  • jenssimon