diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-27 13:02:22 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-27 14:50:27 +0200 |
commit | 072621cee0f858236163ce11d42eca5adb84d205 (patch) | |
tree | 701686d051cb3a8a75be9075d404508be093a2a2 /subprojects/frontend/.eslintrc.cjs | |
parent | refactor(frontend): custom mutex implementation (diff) | |
download | refinery-072621cee0f858236163ce11d42eca5adb84d205.tar.gz refinery-072621cee0f858236163ce11d42eca5adb84d205.tar.zst refinery-072621cee0f858236163ce11d42eca5adb84d205.zip |
refactor(frontend): add eslint-plugin-mobx
Diffstat (limited to 'subprojects/frontend/.eslintrc.cjs')
-rw-r--r-- | subprojects/frontend/.eslintrc.cjs | 5 |
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} */ |
10 | module.exports = { | 10 | module.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': [ |