1+ import js from '@eslint/js' ;
12import tseslint from 'typescript-eslint' ;
23import globals from 'globals' ;
3- import oclif from 'eslint-config-oclif' ;
4- import oclifTypescript from 'eslint-config-oclif-typescript' ;
54
65export default [
7- ...tseslint . configs . recommended ,
8- oclif ,
9- oclifTypescript ,
10-
116 {
12- ignores : [
13- 'lib/**/*' ,
14- ] ,
7+ ignores : [ 'lib/**/*' , 'test/**/*' , 'bin/*' ] ,
158 } ,
16-
179 {
10+ files : [ 'src/**/*.ts' ] ,
1811 languageOptions : {
1912 parser : tseslint . parser ,
2013 parserOptions : {
@@ -25,25 +18,19 @@ export default [
2518 ...globals . node ,
2619 } ,
2720 } ,
28-
2921 plugins : {
3022 '@typescript-eslint' : tseslint . plugin ,
3123 } ,
32-
3324 rules : {
34- 'unicorn/prefer-module' : 'off' ,
25+ ...js . configs . recommended . rules ,
26+ ...tseslint . configs . recommended [ 1 ] . rules ,
3527 '@typescript-eslint/no-require-imports' : 'off' ,
36- 'unicorn/no-array-for-each' : 'off' ,
37- camelcase : 'off' ,
28+ 'camelcase' : 'off' ,
3829 '@typescript-eslint/no-unused-vars' : 'error' ,
39- quotes : [ 'error' , 'single' , { avoidEscape : true } ] ,
40- semi : [ 'error' , 'never' ] ,
41- 'unicorn/import-style' : 'off' ,
42- 'unicorn/prefer-node-protocol' : 'off' ,
43- 'unicorn/consistent-function-scoping' : 'off' ,
30+ 'quotes' : [ 'error' , 'single' , { avoidEscape : true } ] ,
31+ 'semi' : [ 'error' , 'never' ] ,
4432 '@typescript-eslint/ban-ts-comment' : 'off' ,
4533 'object-curly-spacing' : [ 'error' , 'never' ] ,
46- 'node/no-missing-import' : 'off' ,
4734 } ,
4835 } ,
4936] ;
0 commit comments