Skip to content

GAlexIHU/eslint-config-codingsans

 
 

Repository files navigation

npm version MIT license

eslint-config-codingsans

Sharable eslint config created and used by CodingSans

ESLINT Version

This config created for eslint 6/7

Installation

yarn add -D eslint prettier @codingsans/eslint-config

or

npm install --save-dev eslint prettier @codingsans/eslint-config

Usage

Add .eslintrc.json:

{
  "extends": ["@codingsans/eslint-config/typescript-recommended"]
}

Run:

eslint . --ext .ts

VSCode settings

Add the dbaeumer.vscode-eslint extension to the vscode, and thats all.

You could add this to your settings, to have auto-format, and auto import organize.

{
  "[typescript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "eslint.enable": true,
  "editor.codeActionsOnSave": [
    "source.organizeImports",
    "source.fixAll"
  ],
}

About

Sharable eslint config created and used by CodingSans

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%