Skip to content

Commit

Permalink
build(eslint): use an ignore file
Browse files Browse the repository at this point in the history
Rather than running ESLint on a single subfolder, this uses an ignore file to exclude files that aren't lint correctly.

Refs #422
  • Loading branch information
thewilkybarkid committed Nov 3, 2021
1 parent b85411e commit 48db63a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/dist/
/integration/
/src/frontend/
/test/
/jest.config.ts
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ FROM builder AS dev
ENV NODE_ENV=development

COPY \
.eslintignore \
.eslintrc.json \
.gitignore \
.prettierignore \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"scripts": {
"format": "prettier --ignore-unknown --check '**'",
"lint": "eslint --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src/backend",
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"test": "jest",
"build": "rimraf dist && npm run build:scripts && npm run build:backend && npm run build:hooks && npm run build:frontend",
"build:dev": "rimraf dist && npm run build:scripts && npm run build:backend:dev && npm run build:hooks && npm run build:frontend:dev",
Expand Down

0 comments on commit 48db63a

Please sign in to comment.