Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run prettier #907

Merged
merged 6 commits into from
Jun 26, 2019
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
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
built/
node_modules/
coverage/
159 changes: 0 additions & 159 deletions .eslintrc

This file was deleted.

27 changes: 27 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- prettier/@typescript-eslint
- prettier

parser: "@typescript-eslint/parser"

plugins:
- "@typescript-eslint"

env:
node: true
es6: true

overrides:
- files: ["test/**/*"]
env:
mocha: true

- files: ["{benchmarks,examples}/**/*"]
rules:
no-console: 0

- files: ["examples/**/*"]
rules:
"@typescript-eslint/no-var-requires": 0
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package*.json
built/
node_modules/
coverage/
.vscode/
36 changes: 19 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
language: node_js

node_js:
- '6'
- '8'
- '9'
- '10'
- '11'
- '12'
- "6"
- "8"
- "9"
- "10"
- "11"
- "12"

services:
- redis-server
- redis-server

script:
- npm run build
- npm run test:cov || npm run test:cov || npm run test:cov
- npm run format-check
- npm run lint
- npm run build
- npm run test:cov || npm run test:cov || npm run test:cov

env:
- CC_TEST_REPORTER_ID="4cee2f60edbf31acac6ddff823f0b93e2e9882c3e5c55130049e0fd878549f84"
- CC_TEST_REPORTER_ID="4cee2f60edbf31acac6ddff823f0b93e2e9882c3e5c55130049e0fd878549f84"

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

addons:
apt:
sources:
- ubuntu-toolchain-r-test
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- g++-4.8

after_success:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

# Trigger a push build on master/release and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
Expand All @@ -49,4 +51,4 @@ deploy:
on:
tags: false
all_branches: true
node: '10'
node: "10"
Loading