mirror of
https://github.com/WilliamsNY/linter-configs.git
synced 2024-11-26 09:41:26 -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" ],
|
"use-isnan": [ "warn" ],
|
||||||
"valid-jsdoc": [ "warn" ],
|
"valid-jsdoc": [ "warn" ],
|
||||||
"valid-typeof": [ "error" ],
|
"valid-typeof": [ "error" ],
|
||||||
"curly": [ "warn" ],
|
"curly": [ "warn", "multi" ],
|
||||||
"default-case": [ "warn" ],
|
"default-case": [ "warn" ],
|
||||||
"dot-location": [ "warn", "property" ],
|
"dot-location": [ "warn", "property" ],
|
||||||
"eqeqeq": [ "warn", "smart" ],
|
"eqeqeq": [ "warn", "smart" ],
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
"yoda": [ "warn" ],
|
"yoda": [ "warn" ],
|
||||||
"array-bracket-spacing": [ "warn", "always" ],
|
"array-bracket-spacing": [ "warn", "always" ],
|
||||||
"block-spacing": [ "warn" ],
|
"block-spacing": [ "warn" ],
|
||||||
"brace-style": [ "warn" ],
|
"brace-style": [ "warn", "1tbs", { "allowSingleLine": true } ],
|
||||||
"comma-spacing": [ "warn" ],
|
"comma-spacing": [ "warn" ],
|
||||||
"comma-style": [ "warn" ],
|
"comma-style": [ "warn" ],
|
||||||
"computed-property-spacing": [ "warn" ],
|
"computed-property-spacing": [ "warn" ],
|
||||||
|
@ -92,7 +92,6 @@
|
||||||
"keyword-spacing": [ "warn" ],
|
"keyword-spacing": [ "warn" ],
|
||||||
"linebreak-style": [ "warn" ],
|
"linebreak-style": [ "warn" ],
|
||||||
"newline-after-var": [ "warn" ],
|
"newline-after-var": [ "warn" ],
|
||||||
"newline-before-return": [ "warn" ],
|
|
||||||
"no-lonely-if": [ "warn" ],
|
"no-lonely-if": [ "warn" ],
|
||||||
"no-multiple-empty-lines": [ "warn", { "max": 1 } ],
|
"no-multiple-empty-lines": [ "warn", { "max": 1 } ],
|
||||||
"no-spaced-func": [ "warn" ],
|
"no-spaced-func": [ "warn" ],
|
||||||
|
|
Loading…
Reference in a new issue