eslint-config-jameslnewell
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "eslint-config-jameslnewell", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "ESLint config for how I like to format code - readable with whitespace and semicolons.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -19,10 +19,10 @@ # eslint-config-jameslnewell | ||
- **2 spaces** � for indentation | ||
- **Single quotes for strings** � except to avoid escaping | ||
- **No unused variables** � this one catches *tons* of bugs! | ||
- **2 spaces** - for indentation | ||
- **Single quotes for strings** - except to avoid escaping | ||
- **No unused variables** - this one catches *tons* of bugs! | ||
- **Space after keywords** - `if (condition) { ... }` | ||
- **No space after function name** - `function name(arg) { ... }` | ||
- Always use `===` instead of `==` � but `obj == null` is allowed to check `null || undefined`. | ||
- Always use `===` instead of `==` - but `obj == null` is allowed to check `null || undefined`. | ||
- Always handle the node.js `err` function parameter | ||
- Always prefix browser globals with `window` � except `document` and `navigator` are okay | ||
- Always prefix browser globals with `window` - except `document` and `navigator` are okay | ||
- Prevents accidental use of poorly-named browser globals like `open`, `length`, | ||
@@ -29,0 +29,0 @@ `event`, and `name`. |
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
7985