1.0.0 • Published 5 years ago

eman-eslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

eslint-config

This package contains shared rules for ESlint with TypeScript and Prettier.

Inspired by https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb

Usage

Install ESlint:

yarn add eslint eman-eslint-config -D

Update config files as follows:

.eslintrc.js

module.exports = {
  extends: [
    "eman-eslint-config/eslint-default"
  ]
};

tslint.json

{
  "extends": ["eman-eslint-config/tslint"]
}

.prettierrc.js

module.exports = require("eman-eslint-config/prettier-config");

TODO

Once SonarTS rules are moved from TSlint to ESlint, all references to TSlint can be removed. See https://github.com/SonarSource/SonarTS/issues/825