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,46 +1,71 @@
{ {
"extends": [ "extends": ["eslint:recommended", "plugin:react/recommended"],
"eslint:recommended", "env": {
"plugin:react/recommended" "browser": true,
], "commonjs": true,
"env": { "es6": true,
"browser": true, "node": true,
"commonjs": true, "jest/globals": true
"es6": true, },
"node": true, "globals": {
"jest/globals": true "chrome": false
},
"plugins": ["jest"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"experimentalDecorators": true,
"jsx": true
}, },
"globals": { "sourceType": "module"
"chrome": false },
}, "rules": {
"plugins": [ "strict": 0,
"jest" "array-callback-return": "warn",
], "getter-return": "warn",
"parser": "babel-eslint", "no-const-assign": "warn",
"parserOptions": { "no-this-before-super": "warn",
"ecmaVersion": 7, "no-undef": "warn",
"ecmaFeatures": { "no-unreachable": "warn",
"experimentalObjectRestSpread": true, "no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"experimentalDecorators": true, "constructor-super": "warn",
"jsx": true "valid-typeof": "warn",
}, "jest/no-disabled-tests": "warn",
"sourceType": "module" "jest/no-focused-tests": "error",
}, "jest/no-identical-title": "error",
"rules": { "jest/prefer-to-have-length": "warn",
"strict": 0, "jest/valid-expect": "error",
"array-callback-return": "warn", "react/prop-types": [
"getter-return": "warn", "error",
"no-const-assign": "warn", {
"no-this-before-super": "warn", "ignore": [
"no-undef": "warn", "activityStore",
"no-unreachable": "warn", "commentStore",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }], "contactStore",
"constructor-super": "warn", "dealStore",
"valid-typeof": "warn", "holidayStore",
"jest/no-disabled-tests": "warn", "scheduleStore",
"jest/no-focused-tests": "error", "presenceStore",
"jest/no-identical-title": "error", "employmentStore",
"jest/prefer-to-have-length": "warn", "match",
"jest/valid-expect": "error" "permission",
} "presenceStore",
"projectStore",
"purchaseBudgetStore",
"purchaseCategoryStore",
"purchasePaymentStore",
"userStore",
"vacationDailyHoursOverrideStore",
"purchaseStore",
"routing",
"scheduleStore",
"tagStore",
"taskTemplateStore",
"userStore"
]
}
]
}
} }