From f429c77f575784b4e01856d7c158a352af57226e Mon Sep 17 00:00:00 2001 From: Manuel Bouza Date: Tue, 5 Feb 2019 15:12:47 +0100 Subject: [PATCH] Update es-lint rules to mach mocoapp --- .eslintrc.json | 111 ++++++++++++++++++++++++++++++------------------- 1 file changed, 68 insertions(+), 43 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 80766b9..34be81e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,46 +1,71 @@ { - "extends": [ - "eslint:recommended", - "plugin:react/recommended" - ], - "env": { - "browser": true, - "commonjs": true, - "es6": true, - "node": true, - "jest/globals": true + "extends": ["eslint:recommended", "plugin:react/recommended"], + "env": { + "browser": true, + "commonjs": true, + "es6": true, + "node": true, + "jest/globals": true + }, + "globals": { + "chrome": false + }, + "plugins": ["jest"], + "parser": "babel-eslint", + "parserOptions": { + "ecmaVersion": 7, + "ecmaFeatures": { + "experimentalObjectRestSpread": true, + "experimentalDecorators": true, + "jsx": true }, - "globals": { - "chrome": false - }, - "plugins": [ - "jest" - ], - "parser": "babel-eslint", - "parserOptions": { - "ecmaVersion": 7, - "ecmaFeatures": { - "experimentalObjectRestSpread": true, - "experimentalDecorators": true, - "jsx": true - }, - "sourceType": "module" - }, - "rules": { - "strict": 0, - "array-callback-return": "warn", - "getter-return": "warn", - "no-const-assign": "warn", - "no-this-before-super": "warn", - "no-undef": "warn", - "no-unreachable": "warn", - "no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }], - "constructor-super": "warn", - "valid-typeof": "warn", - "jest/no-disabled-tests": "warn", - "jest/no-focused-tests": "error", - "jest/no-identical-title": "error", - "jest/prefer-to-have-length": "warn", - "jest/valid-expect": "error" - } + "sourceType": "module" + }, + "rules": { + "strict": 0, + "array-callback-return": "warn", + "getter-return": "warn", + "no-const-assign": "warn", + "no-this-before-super": "warn", + "no-undef": "warn", + "no-unreachable": "warn", + "no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }], + "constructor-super": "warn", + "valid-typeof": "warn", + "jest/no-disabled-tests": "warn", + "jest/no-focused-tests": "error", + "jest/no-identical-title": "error", + "jest/prefer-to-have-length": "warn", + "jest/valid-expect": "error", + "react/prop-types": [ + "error", + { + "ignore": [ + "activityStore", + "commentStore", + "contactStore", + "dealStore", + "holidayStore", + "scheduleStore", + "presenceStore", + "employmentStore", + "match", + "permission", + "presenceStore", + "projectStore", + "purchaseBudgetStore", + "purchaseCategoryStore", + "purchasePaymentStore", + "userStore", + "vacationDailyHoursOverrideStore", + "purchaseStore", + "routing", + "scheduleStore", + "tagStore", + "taskTemplateStore", + "userStore" + ] + } + ] + } }