wordpress/.jshintrc
Pascal Birchler 38ee6fc470 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
2024-02-23 10:36:36 +00:00

32 lines
481 B
Plaintext

{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"esversion": 6,
"expr": true,
"immed": true,
"noarg": true,
"nonbsp": true,
"quotmark": "single",
"undef": true,
"unused": true,
"browser": true,
"globals": {
"_": false,
"Backbone": false,
"jQuery": false,
"JSON": false,
"wp": false,
"export": false,
"module": false,
"require": false,
"WorkerGlobalScope": false,
"self": false,
"OffscreenCanvas": false,
"Promise": false
}
}