Skip to content

Commit

Permalink
Merge pull request #13 from vansergen/no-typescript
Browse files Browse the repository at this point in the history
Allow js
  • Loading branch information
vansergen authored Oct 30, 2019
2 parents f8f3eeb + c2b2a72 commit a492075
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 17 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["./build/index.js"],
"rules": {
"no-prototype-builtins": "off"
}
},
{
"files": ["./build/**/*.js"],
"rules": {
"@typescript-eslint/camelcase": "off"
}
}
],
"env": {
"node": true
},
Expand Down
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
language: node_js
install:
- npm install
node_js:
- stable
- lts/*
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rpc-bitcoin",
"version": "1.10.0",
"version": "1.11.0",
"description": "A TypeScript library to make RPC and HTTP REST requests to Bitcoin Core",
"main": "build/index.js",
"type": "module",
Expand All @@ -10,12 +10,13 @@
"types": "build/index.d.ts",
"scripts": {
"build": "tsc",
"install": "npm run build",
"prettier": "prettier -c *.{js,md,ts,json} **/*.{js,md,ts,json}",
"prettier": "prettier -c **/*.{js,md,ts,json}",
"prettier-write": "npm run prettier -- --write",
"lint": "eslint --ext .ts ./",
"lint": "eslint --ext .ts,.js ./",
"lint-fix": "npm run lint -- --fix",
"test": "mocha -r ts-node/register --full-trace --ui tdd --bail --extension ts"
"test": "mocha -r ts-node/register --full-trace --ui tdd --bail --extension ts",
"prepublishOnly": "npm run prettier && npm run lint && npm run build && npm run prettier-write && npm run lint-fix",
"postpublish": "rm -fr build"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -43,7 +44,7 @@
"typescript": "^3.6.4"
},
"dependencies": {
"rpc-request": "^3.0.1"
"rpc-request": "^3.1.0"
},
"directories": {
"test": "test"
Expand Down

0 comments on commit a492075

Please sign in to comment.