@xip-online-applications/eslint-config
v0.7.1
Published
Company-wide [Eslint](https://eslint.org/) config for JS based projects.
Downloads
213
Readme
Eslint config
Company-wide Eslint config for JS based projects.
Usage
Install
npm i -D eslint @xip-online-applications/eslint-config
Add config
{
// ...
"eslintConfig": {
"extends": "@xip-online-applications/eslint-config"
// TypeScript flavour
// "extends": "@xip-online-applications/eslint-config/typescript"
}
}
Or in an NX repo
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript", "@xip-online-applications/eslint-config/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript", "@xip-online-applications/eslint-config"],
"rules": {}
}
Add script
{
// ...
"scripts": {
// ...
"lint": "eslint --ext .js, YOUR_SOURCE_FOLDER"
// ...
}
}