Skip to content

Dalee/eslint-config-dalee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-dalee

ESLint shareable config for the Dalee IA style

Install

$ npm install --save-dev eslint eslint-config-dalee

Usage

Create a eslint configuration file that extends the package (.eslintrc.json for example):

{
    "extends": "eslint-config-dalee"
}

By default it lints against es5 rules. To enable es6 rules (inheriting es5) use:

{
    "extends": "eslint-config-dalee/es6"
}

Add a shortcut to package.json:

{
    "scripts": {
        "lint": "eslint ."
    }
}

And finally run it:

$ npm run lint