diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-12-01 15:10:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 15:10:19 +0300 |
commit | 7e8ac77fdba8e7d13de133843d32d139da686ab9 (patch) | |
tree | 4c0867006337e4f4641ffa82da906e9f13e6f311 /package.json | |
parent | 990c7e6ecb8ed3a6495dbda9816b5ef7bec080e2 (diff) |
Lint tweaks (#422)
* switch to always using a space in object curly braces
* consistently use strict mode
* move a constant outside of the constructor
* use Object spread instead of Object.assign
* use a ternary in more places
* remove redundant parentheses
* enable `prefer-template` rule so that we are consistent
* return early in a few cases
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package.json b/package.json index 600c1bd..4b84ea8 100644 --- a/package.json +++ b/package.json @@ -95,10 +95,15 @@ "never" ], "node/prefer-promises/fs": "off", + "object-curly-spacing": [ + "error", + "always" + ], "operator-linebreak": [ "error", "after" ], + "prefer-template": "error", "promise/prefer-await-to-then": "off", "unicorn/prefer-module": "off", "unicorn/prevent-abbreviations": "off" |