Skip to content

Commit

Permalink
Let ESLint ignore auto-generated type declaration files
Browse files Browse the repository at this point in the history
  • Loading branch information
aweebit committed Aug 17, 2023
1 parent cd4338b commit 735128b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const typescriptSettings = {
};

module.exports = {
ignorePatterns: ['/typings/**/*.d.ts'],
plugins: ['jest'],
parserOptions: {
ecmaVersion: 8
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"watch": "npm run -s build:clean && tsc -b lib --watch",
"lint": "npm run lint:javascript && npm run lint:typescript",
"lint:javascript": "eslint \"lib/**/*.js\" \"tests/**/*.js\"",
"lint:typescript": "eslint \"typings/**/*.ts\" \"tests/**/*.ts\"",
"lint:typescript": "eslint \"tests/**/*.ts\"",
"test": "jest && npm run test-typings",
"test-esm": "node ./tests/esm-imports-test.mjs",
"test-typings": "(npm run typings:backup && npm run build && tsd && npm run typings:restore) || npm run typings:restore",
Expand Down

0 comments on commit 735128b

Please sign in to comment.