File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ import typescriptEslint from "@typescript-eslint/eslint-plugin" ;
2
+ import tsParser from "@typescript-eslint/parser" ;
3
+ import eslint from '@eslint/js' ;
4
+ import tseslint from 'typescript-eslint' ;
5
+
6
+ export default tseslint . config (
7
+ {
8
+ ignores : [ "tests/parser/*.ts" ]
9
+ } ,
10
+ eslint . configs . recommended ,
11
+ tseslint . configs . recommended ,
12
+ {
13
+ plugins : {
14
+ "@typescript-eslint" : typescriptEslint ,
15
+ } ,
16
+ languageOptions : {
17
+ parser : tsParser ,
18
+ } ,
19
+ rules : {
20
+ "@typescript-eslint/explicit-module-boundary-types" : "off" ,
21
+ "@typescript-eslint/no-explicit-any" : "off" ,
22
+ "@typescript-eslint/no-non-null-assertion" : "off" ,
23
+ } ,
24
+ files : [ "src/**/*.ts" ]
25
+ } , {
26
+ plugins : {
27
+ "@typescript-eslint" : typescriptEslint ,
28
+ } ,
29
+
30
+ languageOptions : {
31
+ parser : tsParser ,
32
+ } ,
33
+ rules : {
34
+ "@typescript-eslint/no-explicit-any" : "off" ,
35
+ "@typescript-eslint/no-unused-vars" : 0 ,
36
+ "@typescript-eslint/no-var-requires" : 0 ,
37
+ "@typescript-eslint/no-unused-expressions" : 0 , // Fails with expect(...).to.be.undefined;
38
+ } ,
39
+ files : [ "tests/**/*.ts" ]
40
+ } ) ;
You can’t perform that action at this time.
0 commit comments