From c4decbd844b8d31da86f702599fa96915de071b0 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 31 Mar 2017 14:31:44 -0300 Subject: [PATCH] Adding eslinrc --- .eslintrc.json | 15 ++---------- .../client/.eslintrc.json | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 plugins/coral-plugin-respect/client/.eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json index 285f5f7dc..293657679 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,18 +4,9 @@ "node": true }, "extends": "eslint:recommended", - "parser": "babel-eslint", "parserOptions": { - "ecmaVersion": 2017, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } + "ecmaVersion": 2017 }, - "plugins": [ - "react" - ], "rules": { "indent": ["error", 2 @@ -62,8 +53,6 @@ }], "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 - }], - "react/jsx-uses-react": "error", - "react/jsx-uses-vars": "error" + }] } } diff --git a/plugins/coral-plugin-respect/client/.eslintrc.json b/plugins/coral-plugin-respect/client/.eslintrc.json new file mode 100644 index 000000000..9fe56bd14 --- /dev/null +++ b/plugins/coral-plugin-respect/client/.eslintrc.json @@ -0,0 +1,23 @@ +{ + "env": { + "browser": true, + "es6": true, + "mocha": true + }, + "parserOptions": { + "sourceType": "module", + "ecmaFeatures": { + "experimentalObjectRestSpread": true, + "jsx": true + } + }, + "parser": "babel-eslint", + "plugins": [ + "react" + ], + "rules": { + "react/jsx-uses-react": "error", + "react/jsx-uses-vars": "error", + "no-console": ["warn", { "allow": ["warn", "error"] }] + } +}