From 7f76c79319bf0817222fc88011fd870d97648963 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Tue, 7 Feb 2017 19:46:45 -0200 Subject: [#922] Adds eslint for react and es6 files --- web-ui/.eslintrc.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 web-ui/.eslintrc.json (limited to 'web-ui/.eslintrc.json') diff --git a/web-ui/.eslintrc.json b/web-ui/.eslintrc.json new file mode 100644 index 00000000..4828136e --- /dev/null +++ b/web-ui/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": "airbnb", + "plugins": [ + "react", + "jsx-a11y", + "import" + ], + "rules": { + "import/no-extraneous-dependencies": ["off"], + "import/extensions": ["off"], + "import/no-unresolved": ["off"], + "react/jsx-filename-extension": ["off"], + "jsx-quotes": ["error", "prefer-single"], + "no-undef": ["off"], + "comma-dangle": ["off"], + "semi": ["error", "never"] + } +} -- cgit v1.2.3 From 94fc7554995e4b6fcd95e74d082ed411239ea8e9 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Wed, 8 Feb 2017 11:11:38 -0200 Subject: [#922] Add semincolon to lint and fix js code with @tayanefernandes --- web-ui/.eslintrc.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web-ui/.eslintrc.json') diff --git a/web-ui/.eslintrc.json b/web-ui/.eslintrc.json index 4828136e..554498f9 100644 --- a/web-ui/.eslintrc.json +++ b/web-ui/.eslintrc.json @@ -1,3 +1,4 @@ +/* see https://github.com/airbnb/javascript for lint rules */ { "extends": "airbnb", "plugins": [ @@ -12,7 +13,6 @@ "react/jsx-filename-extension": ["off"], "jsx-quotes": ["error", "prefer-single"], "no-undef": ["off"], - "comma-dangle": ["off"], - "semi": ["error", "never"] + "comma-dangle": ["off"] } } -- cgit v1.2.3