Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-landr

LandrAudio3.7kMIT1.5.0

LANDR's shareable ESLint config

javascript, ecmascript, typescript, eslint, lint, config, prettier

readme

eslint-config-landr

This package exposes the ESLint configuration used for LANDR projects.

  • Uses a typescript parser that allows for the linting of both JS and TS files (therefore typescript is a installed as a peer dependency for this config).
  • Uses both eslint-config-prettier and eslint-plugin-prettier to display prettier formatting issues as ESLint errors and fix them with the ESLint --fix command. Prettier rules will be taken from a .prettierrc.js file found in your root project directory or if none is found, it will use default prettier settings. The prettier configuration used at LANDR is prettier-config-landr.

Installation

Install eslint-config-landr and all of it's peer dependencies as dev dependencies of your project. This can be done with the following command:

yarn eslint eslint-config-landr --dev

Add landr as a value to the extends array of your .eslintrc.js config file.

module.exports = {
  extends: ['landr'],
};

Framework specific

To use a framework specific config, just use 'landr/${framework}' in the extends array. Every framework specific config already extends the landr config.

Available framework configs

React

yarn add -D eslint-config-landr
// .eslintrc.js
module.exports = {
  extends: ['landr/react'],
};

Test

yarn add -D eslint-config-landr
// .eslintrc.js
module.exports = {
  extends: ['landr/test'],
};

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.5.0 (2024-11-18)

Features

  • add react google translate plugin (b840825)
  • distro: use error instead of warn (b43c1c5)

1.4.1 (2024-09-16)

Note: Version bump only for package eslint-config-landr

1.4.0 (2024-01-03)

Bug Fixes

1.3.0 (2023-11-20)

Features

1.2.0 (2023-11-15)

Features

  • add eslint-plugin-prettier (35bdcc8)

1.1.0 (2022-12-22)

Features

  • lint: add pattern for typescript paths to eslint import order (#99) (a976534)

1.0.1 (2022-10-12)

Note: Version bump only for package eslint-config-landr

1.0.0 (2022-03-10)

Features

  • update eslint/prettier/stylelint/typescript (c6cbf0b)

0.7.0 (2021-08-05)

Note: Version bump only for package eslint-config-landr

0.6.0 (2020-12-08)

Bug Fixes

Features

  • disable no use before define (e8d6e0b)

0.5.0 (2020-12-07)

Bug Fixes

Features

  • add PascalCase to allowed const naming convetions (563db97)
  • update linter dependencies and migrate deprecated rules (88b86a9)

0.3.1 (2020-10-14)

Note: Version bump only for package eslint-config-landr