Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-jameslnewell

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-jameslnewell - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"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`.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc