summaryrefslogtreecommitdiffstatshomepage
path: root/.jshintrc
diff options
context:
space:
mode:
authorPascal Birchler <swissspidy@git.wordpress.org>2024-02-23 10:36:36 +0000
committerPascal Birchler <swissspidy@git.wordpress.org>2024-02-23 10:36:36 +0000
commit38ee6fc470a3f9c2c82f18c5fb4dfb92cae5fd6e (patch)
tree8a30fe79cac33b6f74041f7f57b68becd5dcb26f /.jshintrc
parent6ffe615d1c56fb142db3918456bd08760b0a9106 (diff)
downloadwordpress-38ee6fc470a3f9c2c82f18c5fb4dfb92cae5fd6e.tar.gz
wordpress-38ee6fc470a3f9c2c82f18c5fb4dfb92cae5fd6e.zip
Build/Test Tools: Update JSHint config to remove deprecated options.
Removes deprecated options that no longer have any effect, and updates the targeted ES version in line with WordPress’ browser support. This change mostly allows new code to properly use trailing commas, as added by the Prettier formatter. Future efforts should rather go towards adopting ESLint for code formatting, see #31823. Props netweb. Fixes #28236. git-svn-id: https://develop.svn.wordpress.org/trunk@57702 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to '.jshintrc')
-rw-r--r--.jshintrc4
1 files changed, 1 insertions, 3 deletions
diff --git a/.jshintrc b/.jshintrc
index fb4a1cf8ba..4caa7d2287 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -3,14 +3,12 @@
"curly": true,
"eqeqeq": true,
"eqnull": true,
- "esversion": 3,
+ "esversion": 6,
"expr": true,
"immed": true,
"noarg": true,
"nonbsp": true,
- "onevar": true,
"quotmark": "single",
- "trailing": true,
"undef": true,
"unused": true,