@jenssimon/eslint-config-base

A collection of shareable ESLint configurations

Usage no npm install needed!

<script type="module">
  import jenssimonEslintConfigBase from 'https://cdn.skypack.dev/@jenssimon/eslint-config-base';
</script>

README

NPM version Downloads star this repo fork this repo Build Status Code Style

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:

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 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 © 2022 Jens Simon