eslint-config-wcl-backend
Advanced tools
Comparing version 0.1.1 to 0.2.1
@@ -8,2 +8,5 @@ { | ||
"extends": "loopback", | ||
"parserOptions": { | ||
"ecmaVersion": 8 | ||
}, | ||
"rules": { | ||
@@ -19,4 +22,6 @@ "strict": "warn", | ||
"one-var": ["error", "never"], | ||
"indent": ["error", 2, {"SwitchCase": 1, "MemberExpression": 1}], | ||
"no-multi-spaces": ["error"], | ||
"linebreak-style": [ "error", "unix" ] | ||
} | ||
} |
{ | ||
"name": "eslint-config-wcl-backend", | ||
"version": "0.1.1", | ||
"description": "eslint config used in wcl", | ||
"version": "0.2.1", | ||
"description": "eslint config used in WCL", | ||
"main": "lint.json", | ||
@@ -11,6 +11,11 @@ "scripts": { | ||
"eslint", | ||
"loopback" | ||
"loopback", | ||
"wcl" | ||
], | ||
"author": "xavierchow", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Wiredcraft/eslint-config-wcl-backend" | ||
}, | ||
"dependencies": { | ||
@@ -17,0 +22,0 @@ "eslint-config-loopback": "^8.0.0" |
@@ -1,1 +0,36 @@ | ||
# eslint-config-wcl-backend | ||
# eslint-config-wcl-backend | ||
WCL's ESlint shareable configs used for backend, it's extended from [eslint-config-loopback](https://github.com/strongloop/eslint-config-loopback). | ||
## Prerequisite | ||
ESlint@3.18 or later. | ||
## Usage | ||
``` | ||
npm i -D eslint eslint-config-wcl-backend | ||
``` | ||
Create .eslintrc as following, | ||
``` | ||
{ | ||
"extends": "wcl-backend" | ||
} | ||
``` | ||
## Rules overriding | ||
You can override the rules by adding the `rules`. | ||
``` | ||
{ | ||
"extends": "wcl-backend", | ||
"rules": { | ||
"eqeqeq": "off" | ||
} | ||
} | ||
``` | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2793
25
37
0