Skip to content

Commit

Permalink
build: add int and lint-fix scripts, and ignore src/www from eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbcberio committed May 13, 2022
1 parent e55e5d1 commit c543f4c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.eslintrc
.eslintrc
src/www
tsconfig.json
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"max-classes-per-file": ["error", 1],
"no-alert": ["error"],
// TODO: log using pino and enable this rule later on
// "no-console": ["error"],
"no-console": ["error"],
"no-constructor-return": ["error"],
"no-else-return": ["error"],
"no-empty-function": ["error"],
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"start": "cross-env NODE_ENV=production node -r dotenv/config dist",
"start:dev": "cross-env NODE_ENV=development DEBUG=twitch-channel-redemptions* nodemon -r dotenv/config src/index.ts",
"build": "rimraf dist && tsc && yarn build:frontend",
"build:frontend": "cross-env NODE_ENV=production ts-node ./runWebpack.ts"
"build:frontend": "cross-env NODE_ENV=production ts-node ./runWebpack.ts",
"lint": "cross-env TWITCH_CHANNEL_NAME=alexbcberio eslint src/**/*",
"lint-fix": "yarn lint --fix"
},
"dependencies": {
"@fastify/static": "^5.0.2",
Expand Down

0 comments on commit c543f4c

Please sign in to comment.