diff options
Diffstat (limited to 'subprojects/frontend/.eslintrc.cjs')
-rw-r--r-- | subprojects/frontend/.eslintrc.cjs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/subprojects/frontend/.eslintrc.cjs b/subprojects/frontend/.eslintrc.cjs index 625aab7a..442ed4cd 100644 --- a/subprojects/frontend/.eslintrc.cjs +++ b/subprojects/frontend/.eslintrc.cjs | |||
@@ -53,6 +53,15 @@ module.exports = { | |||
53 | 'newlines-between': 'always', | 53 | 'newlines-between': 'always', |
54 | }, | 54 | }, |
55 | ], | 55 | ], |
56 | // A dangling underscore, while not neccessary for all private fields, | ||
57 | // is useful for backing fields of properties that should be read-only from outside the class. | ||
58 | 'no-underscore-dangle': [ | ||
59 | 'error', | ||
60 | { | ||
61 | allowAfterThis: true, | ||
62 | allowFunctionParams: true, | ||
63 | }, | ||
64 | ], | ||
56 | // Use prop spreading to conditionally add props with `exactOptionalPropertyTypes`. | 65 | // Use prop spreading to conditionally add props with `exactOptionalPropertyTypes`. |
57 | 'react/jsx-props-no-spreading': 'off', | 66 | 'react/jsx-props-no-spreading': 'off', |
58 | }, | 67 | }, |