2.0.0 • Published 6 years ago

eslint-config-stezu v2.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

eslint-config-stezu

npm version

A collection of eslint configurations for my projects.

Installation

React

npm install --save-dev eslint eslint-config-stezu babel-eslint eslint-plugin-react

ES6/ES5

npm install --save-dev eslint eslint-config-stezu

Usage

Refer to the ESLint documentation if you need to customize rules, but the basics are documented below.

ES6

The default configuration is for ES6 and up. The main goal is to prevent common issues and enforce readable code. Complexity should be low, JSDoc comments should exist, etc. The goal is to generally make things easy to understand by a junior developer. Due to the complexity rules, it tends to favor a more functional style, but I personally believe that helps with readability which is the overall goal of this ruleset.

.eslintrc.yml

extends: stezu

React

A superset of the ES6 guide, but with react-specific additions to help prevent making some common mistakes.

.eslintrc.yml

extends: stezu/react

ES5

Generally the same rules as the ES6 style guide, but doesn't enforce ES6-specific things like arrow functions. Useful if you're still writing ES5 code by hand, but you should really stop doing that. It's bad for your health.

.eslintrc.yml

extends: stezu/es5
2.0.0

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago