From 072621cee0f858236163ce11d42eca5adb84d205 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 27 Aug 2022 13:02:22 +0200 Subject: refactor(frontend): add eslint-plugin-mobx --- subprojects/frontend/.eslintrc.cjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'subprojects/frontend/.eslintrc.cjs') 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 = [ /** @type {import('eslint').Linter.Config} */ module.exports = { - plugins: ['@typescript-eslint'], + plugins: ['@typescript-eslint', 'mobx'], extends: [ 'airbnb', 'airbnb-typescript', 'airbnb/hooks', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:mobx/recommended', 'plugin:prettier/recommended', ], parserOptions: { @@ -53,6 +54,8 @@ module.exports = { 'newlines-between': 'always', }, ], + // Not all components depend on observable state. + 'mobx/missing-observer': 'off', // A dangling underscore, while not neccessary for all private fields, // is useful for backing fields of properties that should be read-only from outside the class. 'no-underscore-dangle': [ -- cgit v1.2.3-54-g00ecf