diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-03-02 22:25:35 +0100 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-03-02 22:30:00 +0100 |
commit | 0fdfdd829000bffc37e4d32683a8881121faa767 (patch) | |
tree | 59e9dce9d951535b6c1c4dbf1b3d1d5c19fef9a9 /.eslintrc-browser.json | |
parent | 5ea844f65a820ebba7ae7c82af7bfab58f873e5a (diff) | |
download | jquery-0fdfdd829000bffc37e4d32683a8881121faa767.tar.gz jquery-0fdfdd829000bffc37e4d32683a8881121faa767.zip |
Build: Enable ESLint one-var rule for var declarations in browser code
Node.js code is written more & more commonly in ES6+ so it doesn't make sense
to enable it there. There are many violations in test code so it's disabled
there as well.
Closes gh-4615
(cherry picked from commit 4a7fc8544e2020c75047456d11979e4e3a517fdf)
Diffstat (limited to '.eslintrc-browser.json')
-rw-r--r-- | .eslintrc-browser.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc-browser.json b/.eslintrc-browser.json index ffd5b6467..d580883b2 100644 --- a/.eslintrc-browser.json +++ b/.eslintrc-browser.json @@ -24,6 +24,7 @@ }, "rules": { + "one-var": ["error", {"var": "always"}], "strict": ["error", "function"] } } |