2019-03-22 15:56:24 +01:00
|
|
|
{
|
2019-04-10 07:45:05 +02:00
|
|
|
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended"],
|
2019-03-22 15:56:24 +01:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"commonjs": true,
|
|
|
|
"es6": true,
|
|
|
|
"node": true,
|
|
|
|
"jest/globals": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"chrome": false,
|
|
|
|
"browser": false
|
|
|
|
},
|
|
|
|
"plugins": ["jest"],
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 7,
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"experimentalObjectRestSpread": true,
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
2019-06-26 09:27:31 +02:00
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"version": "detect"
|
|
|
|
}
|
|
|
|
},
|
2019-03-22 15:56:24 +01:00
|
|
|
"rules": {
|
|
|
|
"strict": 0,
|
|
|
|
"semi": ["error", "never"],
|
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
2019-04-10 07:45:05 +02:00
|
|
|
],
|
|
|
|
"prettier/prettier": "error"
|
2019-03-22 15:56:24 +01:00
|
|
|
}
|
|
|
|
}
|