Skip to content

Commit bad0301

Browse files
committed
fix: don't use the TypeScript parser for .js files
1 parent 9fc10cf commit bad0301

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "./lib/index.js",
33
"parserOptions": {
4-
"project": "./tsconfig.eslint.json"
4+
"project": "./tsconfig.json"
55
}
66
}

src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import exported from '.'
33

44
test('export', (t): void => {
55
const expected = {
6-
parser: '@typescript-eslint/parser',
76
extends: 'eslint-config-standard',
87
plugins: ['@typescript-eslint'],
98
overrides: [
109
{
1110
files: ['*.ts', '*.tsx'],
11+
parser: '@typescript-eslint/parser',
1212
rules: {
1313
camelcase: 'off',
1414
indent: 'off',

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
export = {
2-
parser: '@typescript-eslint/parser',
32
extends: 'eslint-config-standard',
43
plugins: ['@typescript-eslint'],
54
overrides: [
65
{
76
files: ['*.ts', '*.tsx'],
7+
parser: '@typescript-eslint/parser',
88
rules: {
99
// TypeScript has this functionality by default:
1010
'no-undef': 'off',

tsconfig.eslint.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)