mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Merge pull request #11228 from Snuffleupagus/eslint-accessor-pairs
Enable the ESLint rule `accessor-pairs` for Classes
This commit is contained in:
commit
dcf49ac753
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue