From 0e8934dd939004f97a0fac6f698d5f9e933f4270 Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Tue, 11 Apr 2017 23:59:11 -0500 Subject: [PATCH] create eslint --- .eslintrc.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..54110f3d --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,34 @@ +{ + "extends": ["eslint:recommended", "plugin:react/recommended"], + "parser": "babel-eslint", + "plugins": [ + "react" + ], + "parserOptions": { + "ecmaFeatures": { + "jsx": true, + "modules": true + } + }, + "env": { + "browser": true, + "amd": true, + "es6": true, + "node": true, + "jest": true + }, + "rules": { + "comma-dangle": 1, + "quotes": [ 1, "single" ], + "no-undef": 1, + "global-strict": 0, + "no-extra-semi": 1, + "no-underscore-dangle": 0, + "no-console": 0, + "no-unused-vars": 1, + "no-trailing-spaces": [1, { "skipBlankLines": true }], + "no-unreachable": 1, + "no-alert": 0, + "react/jsx-uses-react": 1 + } +}