Skip to content

Commit

Permalink
Update ESLint, update commands to more standard ones
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jun 26, 2019
1 parent ba3808c commit 8cf4d7c
Show file tree
Hide file tree
Showing 5 changed files with 906 additions and 731 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -8,7 +8,7 @@ before_script:
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- yarn run test-eslint
- yarn run test-jest-coverage
- yarn lint
- yarn jest-coverage
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
26 changes: 13 additions & 13 deletions package.json
Expand Up @@ -6,17 +6,17 @@
"source": "src/entry.js",
"types": "./index.d.ts",
"scripts": {
"build": "yarn run build-js && yarn run copy-styles && yarn run build-styles && yarn run copy-types",
"build": "yarn build-js && yarn copy-styles && yarn build-styles && yarn copy-types",
"build-js": "babel src -d dist --ignore **/__tests__",
"build-styles": "lessc ./dist/DatePicker.less ./dist/DatePicker.css",
"clean": "rimraf dist",
"copy-styles": "node ./copy-styles.js",
"copy-types": "node ./copy-types.js",
"prepublishOnly": "yarn run clean && yarn run build",
"test": "yarn run test-eslint && yarn run test-jest",
"test-eslint": "eslint sample/ src/ test/ --ext .jsx,.js",
"test-jest": "jest",
"test-jest-coverage": "jest --coverage"
"jest": "jest",
"jest-coverage": "jest --coverage",
"lint": "eslint sample/ src/ test/ --ext .jsx,.js",
"prepublishOnly": "yarn clean && yarn build",
"test": "yarn lint && yarn jest"
},
"jest": {
"setupFiles": [
Expand Down Expand Up @@ -86,14 +86,14 @@
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.0",
"babel-jest": "^24.0.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"eslint": "^5.11.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"jest": "^24.0.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.14.2",
"jest": "^24.8.0",
"less": "^3.8.1",
"react": "^16.7.0",
"react-dom": "^16.7.0",
Expand Down
8 changes: 4 additions & 4 deletions sample/parcel/package.json
Expand Up @@ -24,11 +24,11 @@
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.0",
"eslint": "^5.11.0",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.14.2",
"parcel-bundler": "^1.12.0"
}
}
8 changes: 4 additions & 4 deletions test/package.json
Expand Up @@ -24,11 +24,11 @@
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.0",
"eslint": "^5.11.0",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.14.2",
"parcel-bundler": "^1.12.0"
}
}

0 comments on commit 8cf4d7c

Please sign in to comment.