0.2.0 • Published 5 years ago
eslint-config-flitz v0.2.0
eslint-config-flitz
Shared ESLint config for flitz.

Install
Run
npm install --save-dev eslint eslint-config-flitzfrom 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