Update es-lint rules to mach mocoapp
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"extends": ["eslint:recommended", "plugin:react/recommended"],
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:react/recommended"
|
|
||||||
],
|
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"commonjs": true,
|
"commonjs": true,
|
||||||
@@ -13,9 +10,7 @@
|
|||||||
"globals": {
|
"globals": {
|
||||||
"chrome": false
|
"chrome": false
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": ["jest"],
|
||||||
"jest"
|
|
||||||
],
|
|
||||||
"parser": "babel-eslint",
|
"parser": "babel-eslint",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 7,
|
"ecmaVersion": 7,
|
||||||
@@ -41,6 +36,36 @@
|
|||||||
"jest/no-focused-tests": "error",
|
"jest/no-focused-tests": "error",
|
||||||
"jest/no-identical-title": "error",
|
"jest/no-identical-title": "error",
|
||||||
"jest/prefer-to-have-length": "warn",
|
"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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user