From 635821758070c1f9b5269b8917cde9a33a97eb58 Mon Sep 17 00:00:00 2001 From: Tobias Miesel Date: Wed, 17 Oct 2018 15:21:11 +0200 Subject: [PATCH] added linter settings --- .eslintrc.json | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..80766b9 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,46 @@ +{ + "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 + }, + "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" + } +}