aboutsummaryrefslogtreecommitdiffstats
path: root/dist/.eslintrc.json
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-03-02 22:25:35 +0100
committerGitHub <noreply@github.com>2020-03-02 22:25:35 +0100
commit4a7fc8544e2020c75047456d11979e4e3a517fdf (patch)
treee31e53ef30dab19b043fa3bb2981c2369904ed1c /dist/.eslintrc.json
parent364476c3dc1231603ba61fc08068fa89fb095e1a (diff)
downloadjquery-4a7fc8544e2020c75047456d11979e4e3a517fdf.tar.gz
jquery-4a7fc8544e2020c75047456d11979e4e3a517fdf.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
Diffstat (limited to 'dist/.eslintrc.json')
-rw-r--r--dist/.eslintrc.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/dist/.eslintrc.json b/dist/.eslintrc.json
index c2259f149..af08e6812 100644
--- a/dist/.eslintrc.json
+++ b/dist/.eslintrc.json
@@ -19,7 +19,8 @@
"rules": {
// That is okay for the built version
- "no-multiple-empty-lines": "off"
+ "no-multiple-empty-lines": "off",
+ "one-var": "off"
}
}
]