Update es-lint rules to mach mocoapp

This commit is contained in:
Manuel Bouza
2019-02-05 15:12:47 +01:00
parent 388310eebb
commit f429c77f57

View File

@@ -1,8 +1,5 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true,
"commonjs": true,
@@ -13,9 +10,7 @@
"globals": {
"chrome": false
},
"plugins": [
"jest"
],
"plugins": ["jest"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
@@ -41,6 +36,36 @@
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
"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"
]
}
]
}
}