Merge pull request #11228 from Snuffleupagus/eslint-accessor-pairs
Enable the ESLint rule `accessor-pairs` for Classes
This commit is contained in:
commit
dcf49ac753
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user