Skip to content

Commit 07a38a3

Browse files
nickservtimdorr
authored andcommitted
TypeScript: Fix linter configuration for test files (reduxjs#3518)
* Fix linter configuration for test files * Add separate ESLint config to test/typescript * Also lint TypeScript files in examples Former-commit-id: 27bf970 Former-commit-id: 21540b4
1 parent 5923afc commit 07a38a3

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.eslintrc.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,5 @@ module.exports = {
3030
argsIgnorePattern: '^_' // ignore unused variables whose name is '_'
3131
}
3232
]
33-
},
34-
35-
overrides: [
36-
{
37-
files: 'test/**/*.js',
38-
env: {
39-
jest: true
40-
}
41-
}
42-
]
33+
}
4334
}

package.json.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3f59918dd740a6ed21c273b014b65b206a7deac2
1+
a420204899b7d3f5cc906d995619a72d58d11b9c

test/typescript/.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
rules: {
3+
'no-unused-expressions': 'off',
4+
'@typescript-eslint/no-namespace': 'off',
5+
'@typescript-eslint/no-unused-vars': 'off'
6+
}
7+
}

0 commit comments

Comments
 (0)