Add linter to embark-ui

This commit is contained in:
Anthony Laibe 2018-10-28 10:13:09 +01:00
parent e77e08c84e
commit 5c19dcf672
3 changed files with 7 additions and 4 deletions

6
embark-ui/.eslintrc Normal file
View File

@ -0,0 +1,6 @@
{
"extends": "react-app",
"rules": {
"react/prop-types": "warn"
}
}

View File

@ -123,8 +123,5 @@
"presets": [ "presets": [
"react-app" "react-app"
] ]
},
"eslintConfig": {
"extends": "react-app"
} }
} }

View File

@ -27,7 +27,7 @@
}, },
"main": "./lib/index.js", "main": "./lib/index.js",
"scripts": { "scripts": {
"lint": "eslint bin/embark lib/", "lint": "eslint bin/embark lib/ embark-ui/src",
"prepack": "cd embark-ui && npm install && npm run build", "prepack": "cd embark-ui && npm install && npm run build",
"test": "npm-run-all lint test:*", "test": "npm-run-all lint test:*",
"test:embark": "mocha test/ --no-timeouts --exit", "test:embark": "mocha test/ --no-timeouts --exit",