Setup eslint config and script
This commit is contained in:
parent
e5763314ff
commit
3901af1c18
3 changed files with 13 additions and 0 deletions
2
.eslintignore
Normal file
2
.eslintignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
node_modules/
|
||||||
|
dist/
|
10
.eslintrc
Normal file
10
.eslintrc
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
|
@ -10,6 +10,7 @@
|
||||||
"clean": "tsc --build --clean",
|
"clean": "tsc --build --clean",
|
||||||
"format": "prettier -w .",
|
"format": "prettier -w .",
|
||||||
"format:report": "prettier -c .",
|
"format:report": "prettier -c .",
|
||||||
|
"lint": "eslint . --ext .ts",
|
||||||
"test:all": "tsc && nyc mocha --recursive test",
|
"test:all": "tsc && nyc mocha --recursive test",
|
||||||
"test:single": "mocha",
|
"test:single": "mocha",
|
||||||
"start": "ts-node npx/bitburner-filesync.ts"
|
"start": "ts-node npx/bitburner-filesync.ts"
|
||||||
|
|
Loading…
Add table
Reference in a new issue