Skip to content

Commit

Permalink
fix: don't use the TypeScript parser for .js files
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Oct 1, 2019
1 parent 9fc10cf commit bad0301
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./lib/index.js",
"parserOptions": {
"project": "./tsconfig.eslint.json"
"project": "./tsconfig.json"
}
}
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import exported from '.'

test('export', (t): void => {
const expected = {
parser: '@typescript-eslint/parser',
extends: 'eslint-config-standard',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
rules: {
camelcase: 'off',
indent: 'off',
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export = {
parser: '@typescript-eslint/parser',
extends: 'eslint-config-standard',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
rules: {
// TypeScript has this functionality by default:
'no-undef': 'off',
Expand Down
10 changes: 0 additions & 10 deletions tsconfig.eslint.json

This file was deleted.

0 comments on commit bad0301

Please sign in to comment.