@@ -3,23 +3,33 @@ module.exports = {
33 parserOptions : {
44 sourceType : 'module' ,
55 } ,
6- plugins : [ '@typescript-eslint/eslint-plugin ' ] ,
6+ plugins : [ '@typescript-eslint' ] ,
77 extends : [ 'eslint:recommended' , 'plugin:@typescript-eslint/recommended' ] ,
88 root : true ,
99 env : {
1010 node : true ,
1111 } ,
1212 ignorePatterns : [ 'dist' , 'tslint.json' , 'node_modules' ] ,
1313 rules : {
14- '@typescript-eslint/interface-name-prefix' : 'off' ,
1514 '@typescript-eslint/no-explicit-any' : 'off' ,
16- '@typescript-eslint/no-unused-vars' : [ 'error' , { argsIgnorePattern : '^_' } ] ,
15+ '@typescript-eslint/no-unused-vars' : [
16+ 'error' ,
17+ {
18+ argsIgnorePattern : '^_' ,
19+ caughtErrors : 'none' ,
20+ } ,
21+ ] ,
22+ '@typescript-eslint/no-require-imports' : 'off' ,
23+
1724 semi : [ 'error' , 'never' ] ,
1825 quotes : [ 'error' , 'single' , { avoidEscape : true } ] ,
19- 'sort-imports' : [ 'error' , {
20- ignoreCase : true ,
21- allowSeparatedGroups : true ,
22- } ] ,
26+ 'sort-imports' : [
27+ 'error' ,
28+ {
29+ ignoreCase : true ,
30+ allowSeparatedGroups : true ,
31+ } ,
32+ ] ,
2333 curly : [ 2 , 'multi-line' ] ,
2434 'max-len' : [
2535 'error' ,
@@ -32,4 +42,12 @@ module.exports = {
3242 ] ,
3343 'comma-dangle' : [ 'error' , 'always-multiline' ] ,
3444 } ,
35- }
45+ overrides : [
46+ {
47+ files : [ 'test/**/*.ts' , '**/*.spec.ts' ] ,
48+ rules : {
49+ '@typescript-eslint/no-unused-expressions' : 'off' ,
50+ } ,
51+ } ,
52+ ] ,
53+ }
0 commit comments