🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

eslint-config-stezu

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-stezu

A collection of eslint configurations for my projects.

2.0.0
latest
Source
npm
Version published
Weekly downloads
22
-21.43%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

eslint

FAQs

Package last updated on 07 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts