Tools: Update ESLint rules

This commit is contained in:
Romain Vigier
2023-08-19 19:23:30 +02:00
parent 84bd23cad3
commit 31da7cd779
2 changed files with 13 additions and 10 deletions
+4 -7
View File
@@ -68,7 +68,10 @@ rules:
jsdoc/check-tag-names: error
jsdoc/check-types: error
jsdoc/implements-on-classes: error
jsdoc/newline-after-description: error
jsdoc/tag-lines:
- error
- any
- startLines: 1
jsdoc/require-jsdoc: error
jsdoc/require-param: error
jsdoc/require-param-description: error
@@ -127,12 +130,6 @@ rules:
no-restricted-globals: [error, window]
no-restricted-properties:
- error
- object: imports
property: format
message: Use template strings
- object: pkg
property: initFormat
message: Use template strings
- object: Lang
property: copyProperties
message: Use Object.assign()
+9 -3
View File
@@ -8,12 +8,18 @@ rules:
- properties: never
allow: [^vfunc_, ^on_]
consistent-return: error
eqeqeq:
- error
- smart
key-spacing:
- error
- mode: minimum
beforeColon: false
afterColon: true
object-curly-spacing:
- error
- always
prefer-arrow-callback: error
jsdoc/require-param-description: off
jsdoc/require-jsdoc:
- error
- exemptEmptyFunctions: true
publicOnly:
esm: true