From 5c19dcf672d6816aa7aef196f48547681e91db46 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Sun, 28 Oct 2018 10:13:09 +0100 Subject: [PATCH] Add linter to embark-ui --- embark-ui/.eslintrc | 6 ++++++ embark-ui/package.json | 3 --- package.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 embark-ui/.eslintrc diff --git a/embark-ui/.eslintrc b/embark-ui/.eslintrc new file mode 100644 index 00000000..19845d60 --- /dev/null +++ b/embark-ui/.eslintrc @@ -0,0 +1,6 @@ +{ + "extends": "react-app", + "rules": { + "react/prop-types": "warn" + } +} \ No newline at end of file diff --git a/embark-ui/package.json b/embark-ui/package.json index fe3d479e..eec21bdd 100644 --- a/embark-ui/package.json +++ b/embark-ui/package.json @@ -123,8 +123,5 @@ "presets": [ "react-app" ] - }, - "eslintConfig": { - "extends": "react-app" } } diff --git a/package.json b/package.json index 70725392..0913f3f8 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "main": "./lib/index.js", "scripts": { - "lint": "eslint bin/embark lib/", + "lint": "eslint bin/embark lib/ embark-ui/src", "prepack": "cd embark-ui && npm install && npm run build", "test": "npm-run-all lint test:*", "test:embark": "mocha test/ --no-timeouts --exit",