From d6882ff8c566be75b8b155bd0dce708d97e76067 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 26 Aug 2018 10:30:20 +0200 Subject: [PATCH] Moved eslint config from package.json to .eslintrc --- .eslintrc | 39 +++++++++++++++++++++++++++++++++++++++ package.json | 43 ++----------------------------------------- 2 files changed, 41 insertions(+), 41 deletions(-) create mode 100644 .eslintrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..5aa91eab --- /dev/null +++ b/.eslintrc @@ -0,0 +1,39 @@ +{ + "extends": [ + "adidas-env/browser", + "adidas-env/module", + "adidas-es6", + "adidas-babel", + "adidas-react" + ], + "plugins": ["jest"], + "env": { + "jest/globals": true + }, + "globals": { + "process": true, + "setImmediate": true + }, + "settings": { + "react": { + "version": "16.3" + } + }, + "rules": { + "comma-dangle": ["error", "always-multiline"], + "no-invalid-this": "off", + "template-curly-spacing": ["error", "never"], + "no-warning-comments": "off", + "no-undefined": "off", + "indent": ["error", 2, { + "SwitchCase": 1 + } + ], + "react/jsx-curly-spacing": ["error", "never"], + "react/jsx-indent-props": ["error", 2], + "react/jsx-first-prop-new-line": ["error", "multiline-multiprop"], + "react/jsx-closing-bracket-location": ["error", "tag-aligned"], + "react/no-array-index-key": "off", + "react/no-did-update-set-state": "off" + } +} diff --git a/package.json b/package.json index d1fafd62..7d495c1f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shlink-web-client-react", - "description": "A React-based web client for shlink", - "version": "0.1.0", + "description": "A React-based progressive web application for shlink", + "version": "1.0.0", "private": false, "scripts": { "lint": "yarn lint:js && yarn lint:css", @@ -140,44 +140,5 @@ "presets": [ "react-app" ] - }, - "eslintConfig": { - "extends": [ - "adidas-env/browser", - "adidas-env/module", - "adidas-es6", - "adidas-babel", - "adidas-react" - ], - "plugins": ["jest"], - "env": { - "jest/globals": true - }, - "globals": { - "process": true, - "setImmediate": true - }, - "rules": { - "comma-dangle": ["error", "always-multiline"], - "no-invalid-this": "off", - "template-curly-spacing": ["error", "never"], - "no-warning-comments": "off", - "no-undefined": "off", - "indent": ["error", 2, { - "SwitchCase": 1 - } - ], - "react/jsx-curly-spacing": ["error", "never"], - "react/jsx-indent-props": ["error", 2], - "react/jsx-first-prop-new-line": ["error", "multiline-multiprop"], - "react/jsx-closing-bracket-location": ["error", "tag-aligned"], - "react/no-array-index-key": "off", - "react/no-did-update-set-state": "off" - }, - "settings": { - "react": { - "version": "16.3" - } - } } }