Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

style(js): Add standardjs linter #223

Merged
merged 2 commits into from
Mar 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
sudo: false
language: javascript
install: npm install
script: npm run test:unit:js && npm run test:smoke:typescript
script: npm run test:lint:js && npm run test:unit:js && npm run test:smoke:typescript
- stage: build android
language: android
sudo: false
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
- cd android
- ./gradlew assembleRelease
licenses:
-
-
- stage: build cocoa
language: objective-c
osx-image: xcode7.3
Expand All @@ -46,4 +46,4 @@ jobs:
- npm install
- ./node_modules/.bin/react-native link
- cd ios
- xcodebuild -project BugsnagReactNativeExample.xcodeproj -scheme BugsnagReactNativeExample build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -quiet
- xcodebuild -project BugsnagReactNativeExample.xcodeproj -scheme BugsnagReactNativeExample build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -quiet
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
'use strict'
module.exports = require('./lib/Bugsnag');
module.exports = require('./lib/Bugsnag')
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"prepublish": "mkdir -p lib && babel src/Bugsnag.js -s -o lib/Bugsnag.js",
"test:unit:js": "jest --coverage src/__tests__",
"test:lint:js": "standard",
"test:smoke:typescript": "tslint index.d.ts && tsc --strict test/app.ts"
},
"peerDependencies": {
Expand All @@ -32,11 +33,22 @@
"packageImportPath": "import com.bugsnag.BugsnagReactNative;"
}
},
"standard": {
"parser": "babel-eslint",
"ignore": [
"lib",
"test",
"test-harness",
"examples"
]
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.2.2",
"babel-jest": "^21.0.2",
"babel-preset-react-native": "^1.9.1",
"jest": "^21.1.0",
"standard": "^11.0.0",
"tslint": "^5.8.0",
"typescript": "^2.6.1"
}
Expand Down
Loading