Skip to content

Commit

Permalink
apply opstooling-js & opstooling-js-style
Browse files Browse the repository at this point in the history
remove tests
  • Loading branch information
joao-paulo-parity committed May 16, 2022
1 parent 0a0e1db commit 6d95ee2
Show file tree
Hide file tree
Showing 18 changed files with 1,295 additions and 1,047 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const {
getConfiguration,
} = require("opstooling-js-style/src/eslint/configuration")

module.exports = getConfiguration({ typescript: { rootDir: __dirname } })
32 changes: 0 additions & 32 deletions .eslintrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions .mocharc.js

This file was deleted.

25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: local
hooks:
- id: eslint
name: eslint
entry: node_modules/.bin/eslint
language: node
files: \.[^\.]*(t|j)s$
args: ["--quiet"]
- id: prettier
name: prettier
entry: node_modules/.bin/prettier
language: node
files: \.json$
args: ["--check"]
- id: typecheck
name: typecheck
entry: node_modules/.bin/tsc-files
language: node
files: \.ts$
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("opstooling-js-style/src/prettier/configuration")
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine
FROM node:16-alpine

RUN apk -U upgrade --no-cache

Expand Down
26 changes: 8 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,28 @@
"probot-app"
],
"scripts": {
"typecheck": "tsc --noEmit",
"fix:eslint": "eslint --fix",
"fix:prettier": "prettier --write",
"fix": "yarn fix:eslint '{*,**/*}.{js,ts}' && yarn fix:prettier '{*,**/*}.json'",
"start": "nodemon",
"test": "mocha",
"lint": "eslint src/**/* --cache",
"lint:fix": "eslint src/**/* --cache --fix",
"build": "run-s build:*",
"build:clean": "rimraf dist/",
"build:js": "babel src/ --extensions '.ts,.js' --out-dir dist/"
"build": "rimraf dist; babel src/ --extensions '.ts,.js' --out-dir dist/"
},
"dependencies": {
"@polkadot/api": "^8.1.1",
"@polkadot/util-crypto": "^9.0.1",
"opstooling-js": "https://github.com/paritytech/opstooling-js#v0.0.3",
"probot": "^11.0.1"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@types/chai": "^4.2.22",
"@types/mocha": "^9.0.0",
"@resolritter/tsc-files": "^1.1.4",
"@types/node": "^16.10.3",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"chai": "^4.3.4",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^9.1.2",
"nock": "^13.0.5",
"nodemon": "^2.0.13",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.1",
"opstooling-js-style": "https://github.com/paritytech/opstooling-js-style#master",
"rimraf": "^3.0.2",
"smee-client": "^1.2.2",
"ts-node": "^10.3.0",
Expand Down
Loading

0 comments on commit 6d95ee2

Please sign in to comment.