1.0.4 • Published 3 years ago

@josecfreitas/eslint-config-insider v1.0.4

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

Eslint Standard Configs

This is a standard configuration for eslint and prettier. It also has an .editorconfig file that you can put into your project.

How to use

Install this package:

NPM - v7

npm install @josecfreitas/eslint-config-insider -D

Then, create a .eslintrc.js (or .eslintrc.json) file in the root of your project's directory and put this:

{
  "extends": ["@josecfreitas/eslint-config-insider"]
}

How to add typescript

Install the following dependencies:

NPM

npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser -D

Update your .eslintrc file to look like this:

{
  "extends": [
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended",
    "@josecfreitas/eslint-config-insider"
  ],
  "parser": "@typescript-eslint/parser",
  "plugins": ["@typescript-eslint"]
}