1+ import eslint from '@eslint/js' ;
2+ import tseslint from 'typescript-eslint' ;
3+
4+ export default tseslint . config (
5+ {
6+ ignores : [ 'dist/**' ] ,
7+ } ,
8+ {
9+ rules : {
10+ 'quotes' : [ 'error' , 'single' ] ,
11+ 'indent' : [ 'error' , 2 , { 'SwitchCase' : 0 } ] ,
12+ 'linebreak-style' : [ 'error' , 'unix' ] ,
13+ 'semi' : [ 'error' , 'always' ] ,
14+ 'comma-dangle' : [ 'error' , 'always-multiline' ] ,
15+ 'dot-notation' : 'error' ,
16+ 'eqeqeq' : [ 'error' , 'smart' ] ,
17+ 'curly' : [ 'error' , 'all' ] ,
18+ 'brace-style' : [ 'error' ] ,
19+ 'prefer-arrow-callback' : 'warn' ,
20+ 'max-len' : [ 'warn' , 160 ] ,
21+ 'object-curly-spacing' : [ 'error' , 'always' ] ,
22+ 'no-use-before-define' : 'off' ,
23+ '@typescript-eslint/no-use-before-define' : [ 'error' , { 'classes' : false , 'enums' : false } ] ,
24+ '@typescript-eslint/no-unused-vars' : [ 'error' , { 'caughtErrors' : 'none' } ] ,
25+ } ,
26+ } ,
27+ {
28+ languageOptions : {
29+ ecmaVersion : 2022 ,
30+ sourceType : 'module' ,
31+ } ,
32+ } ,
33+ eslint . configs . recommended ,
34+ ...tseslint . configs . recommended ,
35+ ) ;
0 commit comments