eslint-config-flitz

0.2.0 • Public • Published

npm

eslint-config-flitz

Shared ESLint config for flitz.

meme

Install

Run

npm install --save-dev eslint eslint-config-flitz

from the folder, where your package.json is stored.

Usage

ESLint

Once the eslint-config-flitz package is installed, you can use it by specifying flitz in the extends section of your ESLint configuration.

Create a .eslintrc.js file in the root folder of your project and use the following skeleton:

module.exports = {
  "extends": "flitz",
  "rules": {
    // Additional, per-project rules...
  }
}

As optional feature, you can add script entry, called lint e.g., to your package.json:

{
  "scripts": {
    "lint": "eslint -c .eslintrc.js --ext .ts <mySrcFolder>"
  }
}

Visual Studio Code

First install ESLint extension for Visual Studio Code by Dirk Baeumer.

Then setup your settings.json inside your .vscode subfolder by adding the following entries:

{
  "editor.formatOnSave": true,
  "editor.tabSize": 2,
  "eslint.quiet": false,
  "eslint.enable": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}

To keep sure, to have the extension installed, create a extensions.json file inside the same folder, if needed, and add the following entry as recommendation:

{
  "recommendations": [
    "dbaeumer.vscode-eslint"
  ]
}

License

MIT © Marcel Kloubert

Package Sidebar

Install

npm i eslint-config-flitz

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

5.07 kB

Total Files

5

Last publish

Collaborators

  • mkloubert