New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-onelint

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-onelint - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

41

documentation/indent.md

@@ -20,1 +20,42 @@ You must use 4 spaces for indentation.

```
```js
var foo = 'foo';
var num = 0;
switch (foo) {
case 'foo':
num++;
break;
case 'bar':
num--;
break;
default:
num = num*2;
}
```
```js
var foo = 'foo';
var num = 0;
switch (foo) {
case 'foo':
num++;
break;
case 'bar':
num--;
break;
default:
num = num*2;
}
```
```output
Line 40, column 1: Expected indentation of 4 space characters but found 0.
Line 41, column 5: Expected indentation of 8 space characters but found 4.
Line 42, column 5: Expected indentation of 8 space characters but found 4.
Line 43, column 1: Expected indentation of 4 space characters but found 0.
Line 44, column 5: Expected indentation of 8 space characters but found 4.
Line 45, column 5: Expected indentation of 8 space characters but found 4.
Line 46, column 1: Expected indentation of 4 space characters but found 0.
Line 47, column 5: Expected indentation of 8 space characters but found 4.
```

2

eslintrc.json

@@ -16,3 +16,3 @@ {

"eqeqeq": [2],
"indent": [2, 4],
"indent": [2, 4, {"SwitchCase": 1}],
"new-cap": [2, {"capIsNew": false}],

@@ -19,0 +19,0 @@ "no-caller": [2],

{
"name": "eslint-config-onelint",
"version": "0.0.2",
"version": "0.0.3",
"description": "eslint configuration for one.com code style",

@@ -5,0 +5,0 @@ "main": "index.js",

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