Skip to content

Commit f28161a

Browse files
committed
Run eslint on CI
1 parent 18484b6 commit f28161a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/node_modules/**
22
lib/**
33
scripts/**
4+
coverage/**

circle.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ general:
1010
ignore:
1111
- gh-pages
1212
test:
13+
override:
14+
- npm test
15+
- npm run eslint -- --max-warnings 0
1316
post:
1417
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
1518
- cp -R lib $CIRCLE_ARTIFACTS/

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "A DraftJS plugin for supporting Markdown syntax shortcuts",
55
"main": "lib/index.js",
66
"scripts": {
7+
"eslint": "node_modules/.bin/eslint .",
78
"build": "npm run clean && npm run build:js",
89
"build:demo": "NODE_ENV=production webpack --config demo/webpack.config.prod.js && rm -rf demo/public/css && cp -R demo/publicTemplate/* demo/public/",
910
"build:js": "BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='**/__test__/*' src",

0 commit comments

Comments
 (0)