Skip to content

Commit e1a7d05

Browse files
dashedlynnagara
authored andcommitted
lint(typescript): Add tsx and ts files to lint npm script command
1 parent 426bab8 commit e1a7d05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
files: ['*.ts', '*.tsx'],
1818
rules: {
1919
'@typescript-eslint/no-unused-vars': 'off',
20+
'no-unused-vars': 'off',
2021
},
2122
}],
2223
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"test-ci": "JEST_JUNIT_OUTPUT=.artifacts/jest.junit.xml yarn test --ci --coverage --testResultsProcessor=jest-junit",
147147
"test-debug": "node --inspect-brk scripts/test.js --runInBand",
148148
"test-staged": "yarn test --findRelatedTests $(git diff --name-only --cached)",
149-
"lint": "node_modules/.bin/eslint tests/js src/sentry/static/sentry/app --ext .js,.jsx",
149+
"lint": "node_modules/.bin/eslint tests/js src/sentry/static/sentry/app --ext .js,.jsx,.ts,.tsx",
150150
"lint:css": "stylelint 'src/sentry/static/sentry/app/**/*.jsx'",
151151
"dev": "(yarn check --verify-tree || yarn install --check-files) && sentry devserver --browser-reload",
152152
"dev-server": "webpack-dev-server",

0 commit comments

Comments
 (0)