Enable the ESLint rule accessor-pairs for Classes

Please see https://eslint.org/docs/rules/accessor-pairs#enforceforclassmembers
This commit is contained in:
Jonas Jenwald 2019-10-11 13:28:46 +02:00
parent 00c3339520
commit 4bdf65b89d

View File

@ -60,7 +60,10 @@
"valid-typeof": ["error", { "requireStringLiterals": true, }],
// Best Practices
"accessor-pairs": ["error", { "setWithoutGet": true, }],
"accessor-pairs": ["error", {
"setWithoutGet": true,
"enforceForClassMembers": true,
}],
"consistent-return": "error",
"curly": ["error", "all"],
"eqeqeq": ["error", "always"],