Enable the ESLint rule accessor-pairs
for Classes
Please see https://eslint.org/docs/rules/accessor-pairs#enforceforclassmembers
This commit is contained in:
parent
00c3339520
commit
4bdf65b89d
@ -60,7 +60,10 @@
|
|||||||
"valid-typeof": ["error", { "requireStringLiterals": true, }],
|
"valid-typeof": ["error", { "requireStringLiterals": true, }],
|
||||||
|
|
||||||
// Best Practices
|
// Best Practices
|
||||||
"accessor-pairs": ["error", { "setWithoutGet": true, }],
|
"accessor-pairs": ["error", {
|
||||||
|
"setWithoutGet": true,
|
||||||
|
"enforceForClassMembers": true,
|
||||||
|
}],
|
||||||
"consistent-return": "error",
|
"consistent-return": "error",
|
||||||
"curly": ["error", "all"],
|
"curly": ["error", "all"],
|
||||||
"eqeqeq": ["error", "always"],
|
"eqeqeq": ["error", "always"],
|
||||||
|
Loading…
Reference in New Issue
Block a user