aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/.eslintrc.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/.eslintrc.cjs')
-rw-r--r--subprojects/frontend/.eslintrc.cjs5
1 files changed, 4 insertions, 1 deletions
diff --git a/subprojects/frontend/.eslintrc.cjs b/subprojects/frontend/.eslintrc.cjs
index 442ed4cd..1db67c11 100644
--- a/subprojects/frontend/.eslintrc.cjs
+++ b/subprojects/frontend/.eslintrc.cjs
@@ -8,13 +8,14 @@ const project = [
8 8
9/** @type {import('eslint').Linter.Config} */ 9/** @type {import('eslint').Linter.Config} */
10module.exports = { 10module.exports = {
11 plugins: ['@typescript-eslint'], 11 plugins: ['@typescript-eslint', 'mobx'],
12 extends: [ 12 extends: [
13 'airbnb', 13 'airbnb',
14 'airbnb-typescript', 14 'airbnb-typescript',
15 'airbnb/hooks', 15 'airbnb/hooks',
16 'plugin:@typescript-eslint/recommended', 16 'plugin:@typescript-eslint/recommended',
17 'plugin:@typescript-eslint/recommended-requiring-type-checking', 17 'plugin:@typescript-eslint/recommended-requiring-type-checking',
18 'plugin:mobx/recommended',
18 'plugin:prettier/recommended', 19 'plugin:prettier/recommended',
19 ], 20 ],
20 parserOptions: { 21 parserOptions: {
@@ -53,6 +54,8 @@ module.exports = {
53 'newlines-between': 'always', 54 'newlines-between': 'always',
54 }, 55 },
55 ], 56 ],
57 // Not all components depend on observable state.
58 'mobx/missing-observer': 'off',
56 // A dangling underscore, while not neccessary for all private fields, 59 // 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. 60 // is useful for backing fields of properties that should be read-only from outside the class.
58 'no-underscore-dangle': [ 61 'no-underscore-dangle': [