1.4.0 • Published 5 months ago

eslint-config-landr v1.4.0

Weekly downloads
504
License
MIT
Repository
github
Last release
5 months ago

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'],
};
1.4.0

5 months ago

1.2.0

6 months ago

1.3.0

6 months ago

1.0.1

2 years ago

1.1.0

1 year ago

1.0.0

2 years ago

0.8.0

2 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.12.0

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago