mirror of
https://github.com/WilliamsNY/linter-configs.git
synced 2024-12-22 17:50:23 -05:00
Eslint: allow single-line functions and statements and don't require a newline before a return statement
This commit is contained in:
parent
32e4af8120
commit
b0510955f3
1 changed files with 2 additions and 3 deletions
5
eslintrc
5
eslintrc
|
@ -30,7 +30,7 @@
|
|||
"use-isnan": [ "warn" ],
|
||||
"valid-jsdoc": [ "warn" ],
|
||||
"valid-typeof": [ "error" ],
|
||||
"curly": [ "warn" ],
|
||||
"curly": [ "warn", "multi" ],
|
||||
"default-case": [ "warn" ],
|
||||
"dot-location": [ "warn", "property" ],
|
||||
"eqeqeq": [ "warn", "smart" ],
|
||||
|
@ -83,7 +83,7 @@
|
|||
"yoda": [ "warn" ],
|
||||
"array-bracket-spacing": [ "warn", "always" ],
|
||||
"block-spacing": [ "warn" ],
|
||||
"brace-style": [ "warn" ],
|
||||
"brace-style": [ "warn", "1tbs", { "allowSingleLine": true } ],
|
||||
"comma-spacing": [ "warn" ],
|
||||
"comma-style": [ "warn" ],
|
||||
"computed-property-spacing": [ "warn" ],
|
||||
|
@ -92,7 +92,6 @@
|
|||
"keyword-spacing": [ "warn" ],
|
||||
"linebreak-style": [ "warn" ],
|
||||
"newline-after-var": [ "warn" ],
|
||||
"newline-before-return": [ "warn" ],
|
||||
"no-lonely-if": [ "warn" ],
|
||||
"no-multiple-empty-lines": [ "warn", { "max": 1 } ],
|
||||
"no-spaced-func": [ "warn" ],
|
||||
|
|
Loading…
Reference in a new issue