1+ import eslint from '@eslint/js' ;
2+ import tseslint from 'typescript-eslint' ;
3+
4+ export default tseslint . config (
5+ eslint . configs . recommended ,
6+ ...tseslint . configs . recommended ,
7+ {
8+ ignores : [ 'node_modules/**' , 'docs/**' ] ,
9+ } ,
10+ {
11+ files : [ 'src/**/*.ts' , 'config/*.ts' ] ,
12+ languageOptions : {
13+ parserOptions : {
14+ project : './tsconfig.json' ,
15+ } ,
16+ } ,
17+ rules : {
18+ 'arrow-parens' : [ 'error' , 'as-needed' ] ,
19+ 'arrow-spacing' : 'error' ,
20+ 'block-spacing' : 'error' ,
21+ 'comma-dangle' : [ 'error' , 'always-multiline' ] ,
22+ 'comma-spacing' : [ 'error' , { before : false , after : true } ] ,
23+ 'curly' : [ 'error' , 'all' ] ,
24+ 'eol-last' : [ 'error' , 'always' ] ,
25+ 'keyword-spacing' : [ 'error' , { before : true , after : true } ] ,
26+ 'max-len' : [ 'error' , { code : 120 } ] ,
27+ 'no-console' : [ 'error' , { allow : [ 'warn' , 'error' ] } ] ,
28+ 'no-dupe-class-members' : 'error' ,
29+ 'no-mixed-operators' : 'error' ,
30+ 'no-trailing-spaces' : 'error' ,
31+ 'no-undef' : 'off' ,
32+ 'object-curly-spacing' : [ 'error' , 'always' ] ,
33+ 'quotes' : [ 'error' , 'single' ] ,
34+ 'semi' : [ 'error' , 'always' ] ,
35+ 'space-before-blocks' : [ 'error' , 'always' ] ,
36+ 'space-in-parens' : [ 'error' , 'never' ] ,
37+ '@typescript-eslint/explicit-function-return-type' : 'off' ,
38+ '@typescript-eslint/explicit-member-accessibility' : 'off' ,
39+ '@typescript-eslint/no-explicit-any' : 'off' ,
40+ '@typescript-eslint/no-non-null-assertion' : 'off' ,
41+ '@typescript-eslint/no-use-before-define' : 'off' ,
42+ '@typescript-eslint/no-var-requires' : 'off' ,
43+ } ,
44+ } ,
45+ ) ;
0 commit comments