eslint-config-code-smells

ESLint Rules to Enforce Clean Code


Keywords
clean, code, config, eslint, heuristics, smells
License
MIT
Install
npm install eslint-config-code-smells@0.1.2

Documentation

eslint-config-code-smells

A collection of ESLint rules to enforce clean coding conventions.

This configuration is a demonstration of how ESLint can be used to automate enforcement of some rules. The configuration represents a subset of rules from some eslint plugins; it is still suggested to use the plugins directly and their recommended rules.

Usage

install

yarn install --save-dev eslint-config-code-smells

eslint config

extends:
  - code-smells
parserOptions:
  project: ./tsconfig.json # if using typescript