@josecfreitas/eslint-config-insider

1.0.4 • Public • Published

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"]
}

Package Sidebar

Install

npm i @josecfreitas/eslint-config-insider

Weekly Downloads

7

Version

1.0.4

License

MIT

Unpacked Size

3.1 kB

Total Files

5

Last publish

Collaborators

  • josecfreitas