1+ import js from '@eslint/js' ;
12import tseslint from 'typescript-eslint' ;
23import globals from 'globals' ;
3- import oclif from 'eslint-config-oclif' ;
44
55export default [
6- ...tseslint . configs . recommended ,
7-
8- oclif ,
9-
106 {
11- ignores : [
12- 'lib/**/*' ,
13- ] ,
7+ ignores : [ 'lib/**/*' , 'test/**/*' , 'bin/*' ] ,
148 } ,
15-
169 {
10+ files : [ 'src/**/*.ts' ] ,
1711 languageOptions : {
1812 parser : tseslint . parser ,
1913 parserOptions : {
@@ -24,25 +18,19 @@ export default [
2418 ...globals . node ,
2519 } ,
2620 } ,
27-
2821 plugins : {
2922 '@typescript-eslint' : tseslint . plugin ,
3023 } ,
31-
3224 rules : {
33- 'unicorn/prefer-module' : 'off' ,
25+ ...js . configs . recommended . rules ,
26+ ...tseslint . configs . recommended [ 1 ] . rules ,
3427 '@typescript-eslint/no-require-imports' : 'off' ,
35- 'unicorn/no-array-for-each' : 'off' ,
36- camelcase : 'off' ,
28+ 'camelcase' : 'off' ,
3729 '@typescript-eslint/no-unused-vars' : 'error' ,
38- quotes : [ 'error' , 'single' , { avoidEscape : true } ] ,
39- semi : [ 'error' , 'never' ] ,
40- 'unicorn/import-style' : 'off' ,
41- 'unicorn/prefer-node-protocol' : 'off' ,
42- 'unicorn/consistent-function-scoping' : 'off' ,
30+ 'quotes' : [ 'error' , 'single' , { avoidEscape : true } ] ,
31+ 'semi' : [ 'error' , 'never' ] ,
4332 '@typescript-eslint/ban-ts-comment' : 'off' ,
4433 'object-curly-spacing' : [ 'error' , 'never' ] ,
45- 'node/no-missing-import' : 'off' ,
4634 } ,
4735 } ,
48- ] ;
36+ ] ;
0 commit comments