1
+ //@ts -check
2
+
3
+ const eslint = require ( '@eslint/js' ) ;
4
+ const tseslint = require ( 'typescript-eslint' ) ;
5
+ const eslintPrettierRecommended = require ( 'eslint-plugin-prettier/recommended' ) ;
6
+
7
+ module . exports = tseslint . config (
8
+ eslint . configs . recommended ,
9
+ tseslint . configs . recommended ,
10
+ eslintPrettierRecommended ,
11
+ {
12
+ languageOptions : {
13
+ parserOptions : {
14
+ ecmaVersion : 2018 , // Allows for the parsing of modern ECMAScript features
15
+ sourceType : 'module' // Allows for the use of imports
16
+ } ,
17
+ } ,
18
+ rules : {
19
+ eqeqeq : 2 ,
20
+ 'no-console' : [ 2 , { 'allow' : [ 'warn' , 'error' ] } ] ,
21
+ 'no-throw-literal' : 2 ,
22
+ '@typescript-eslint/no-unused-vars' : 2 ,
23
+ '@typescript-eslint/no-explicit-any' : 1 ,
24
+ '@typescript-eslint/explicit-function-return-type' : 2 ,
25
+ '@typescript-eslint/no-namespace' : 0 ,
26
+ '@typescript-eslint/no-non-null-assertion' : 'off' ,
27
+ 'no-unused-expressions' : 2 ,
28
+ curly : 2 ,
29
+ semi : 2 ,
30
+ 'brace-style' : 2 ,
31
+ quotes : [ 2 , 'single' , 'avoid-escape' ]
32
+ } ,
33
+ ignores : [ '**/node_modules/*' , 'website/*' , 'README.md' , '**/npm/*' ]
34
+ }
35
+ ) ;
0 commit comments