Setup eslint config and script

This commit is contained in:
Loris Bettazza 2022-10-12 00:14:30 +02:00
parent e5763314ff
commit 3901af1c18
3 changed files with 13 additions and 0 deletions

2
.eslintignore Normal file
View file

@ -0,0 +1,2 @@
node_modules/
dist/

10
.eslintrc Normal file
View file

@ -0,0 +1,10 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
]
}

View file

@ -10,6 +10,7 @@
"clean": "tsc --build --clean",
"format": "prettier -w .",
"format:report": "prettier -c .",
"lint": "eslint . --ext .ts",
"test:all": "tsc && nyc mocha --recursive test",
"test:single": "mocha",
"start": "ts-node npx/bitburner-filesync.ts"