Skip to content

Commit

Permalink
Enhance linting command to check all ts files (#20)
Browse files Browse the repository at this point in the history
Extend linting check from src/ to src/, tests/, typings/ and
extensions/.
  • Loading branch information
lingyuncai authored Oct 11, 2023
1 parent 900e1a1 commit a11e5f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tests/assets/*
node_modules/*
documentation/*
docs/*
files/*
**/dist/*
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"serve": "cross-env NODE_ENV=development concurrently \"tsc -b --watch ./tsconfig.all.json\" \"nodemon -q dist/server.js\"",
"prestart": "npm run build",
"start": "cross-env NODE_ENV=production node dist/server.js",
"lint": "eslint src",
"lint-fix": "eslint --fix src",
"lint": "eslint '**/*.ts'",
"lint-fix": "eslint --fix '**/*.ts'",
"prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"pretest": "npm run build",
"test": "cross-env TS_NODE_PROJECT='./tests/tsconfig.json' mocha -r ts-node/register tests/index.ts --timeout 5000",
Expand Down

0 comments on commit a11e5f3

Please sign in to comment.