eslint, dockerfile

This commit is contained in:
poma 2019-07-18 16:22:56 +03:00
parent c349ed8bb6
commit 1c642a40f1
5 changed files with 881 additions and 0 deletions

1
.dockerignore Normal file

@ -0,0 +1 @@
node_modules

39
.eslintrc.json Normal file

@ -0,0 +1,39 @@
{
"env": {
"node": true,
"browser": true,
"es6": true,
"mocha": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"object-curly-spacing": [
"error",
"always"
],
"require-await": "error"
}
}

10
Dockerfile Normal file

@ -0,0 +1,10 @@
FROM node:11
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
EXPOSE 8000
CMD ["npm", "run", "start"]

826
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -4,6 +4,8 @@
"description": "Relayer for Tornado mixer. https://tornado.cash",
"main": "index.js",
"scripts": {
"start": "node index.js",
"eslint": "npx eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Alexey Pertsev <alexey@peppersec.com> (https://peppersec.com)",
@ -13,5 +15,8 @@
"node-fetch": "^2.6.0",
"web3": "^1.0.0-beta.55",
"web3-utils": "^1.0.0"
},
"devDependencies": {
"eslint": "^6.0.1"
}
}