Merge pull request #11228 from Snuffleupagus/eslint-accessor-pairs

Enable the ESLint rule `accessor-pairs` for Classes
This commit is contained in:
Tim van der Meij 2019-10-11 22:25:52 +02:00 committed by GitHub
commit dcf49ac753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"],