eslint config for cathaybc projects feat. Eric
npm install --save-dev ericlint
`
Usage
Create a .eslintrc file under root directory
`
{
"extends": [
"./node_modules/ericlint"
]
}
`Edit the scripts section in package.json
`
"scripts": {
"eslint": "eslint -c .eslintrc \"./*/.ts\"",
}
`Override
If you wish to override the typescript configuration location (default: "tsconfig.json")
`
{
"extends": [
"./node_modules/ericlint"
],
"parserOptions": {
"project": "tsconfig.json"
}
}
``