@playcanvas/eslint-config 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -19,6 +19,7 @@ module.exports = {
|
|
|
19
19
|
"no-compare-neg-zero": "error",
|
|
20
20
|
"no-cond-assign": "error",
|
|
21
21
|
"no-const-assign": "error",
|
|
22
|
+
"no-constant-binary-expression": "error",
|
|
22
23
|
"no-constant-condition": [
|
|
23
24
|
"error", {
|
|
24
25
|
"checkLoops": false
|
|
@@ -93,7 +94,7 @@ module.exports = {
|
|
|
93
94
|
"default-case-last": "off",
|
|
94
95
|
"default-param-last": "off",
|
|
95
96
|
"dot-notation": "error",
|
|
96
|
-
"eqeqeq": "
|
|
97
|
+
"eqeqeq": ["error", "smart"],
|
|
97
98
|
"func-name-matching": "error",
|
|
98
99
|
"func-names": "off",
|
|
99
100
|
"func-style": "off",
|
|
@@ -208,6 +209,7 @@ module.exports = {
|
|
|
208
209
|
"prefer-exponentiation-operator": "off",
|
|
209
210
|
"prefer-named-capture-group": "off",
|
|
210
211
|
"prefer-numeric-literals": "error",
|
|
212
|
+
"prefer-object-has-own": "off",
|
|
211
213
|
"prefer-object-spread": "off",
|
|
212
214
|
"prefer-promise-reject-errors": "error",
|
|
213
215
|
"prefer-regex-literals": "off",
|
|
@@ -430,6 +432,7 @@ module.exports = {
|
|
|
430
432
|
"jsdoc/require-throws": "off",
|
|
431
433
|
"jsdoc/require-yields": "error",
|
|
432
434
|
"jsdoc/require-yields-check": "error",
|
|
435
|
+
"jsdoc/sort-tags": "off",
|
|
433
436
|
"jsdoc/tag-lines": "off",
|
|
434
437
|
"jsdoc/valid-types": "off"
|
|
435
438
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://playcanvas.com",
|
|
6
6
|
"description": "ESLint configuration used by PlayCanvas",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"eslint-plugin-jsdoc": "^
|
|
29
|
+
"eslint-plugin-jsdoc": "^39.3.3"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"test": "echo \"Error: no test specified\" && exit 1"
|