Skip to content

Commit

Permalink
build(betterer 🔨): include .tsx files (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
phenomnomnominal authored Nov 21, 2020
1 parent ad5f687 commit 8d96d03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .betterer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import { eslint } from '@betterer/eslint';
import { regexp } from '@betterer/regexp';

export default {
'no hack comments': regexp(/(\/\/\s*HACK)/i).include('./packages/**/src/**/*.ts')
'no hack comments': regexp(/(\/\/\s*HACK)/i)
.include('./packages/**/src/**/*.ts')
.include('./packages/**/src/**/*.tsx')
};
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
},
overrides: [
{
files: ['**/*.ts'],
files: ['**/*.ts', '**/*.tsx'],
extends: BASE_EXTENDS,
rules: OVERRIDE_RULES
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["**/*.js", "**/*.ts", ".eslintrc.js"]
"include": ["**/*.js", "**/*.ts", "**/*.tsx", ".eslintrc.js"]
}

0 comments on commit 8d96d03

Please sign in to comment.