eslint-config-onelint
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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. | ||
``` |
@@ -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", |
18316