@@ -8,97 +8,63 @@ module.exports = {
88 '@typescript-eslint' ,
99 ] ,
1010 extends : [
11- 'airbnb' ,
11+ 'airbnb-base ' ,
1212 'plugin:@typescript-eslint/recommended' ,
13+ '@bessonovs/eslint-config' ,
14+ '@bessonovs/eslint-config/typescript' ,
1315 ] ,
1416 parser : '@typescript-eslint/parser' ,
1517 rules : {
1618 'arrow-body-style' : 'off' ,
1719 'lines-between-class-members' : 'off' ,
1820 'implicit-arrow-linebreak' : 'off' ,
19- 'no-console' : 'error' ,
20- 'no-trailing-spaces' : 'error' ,
2121 'no-restricted-syntax' : 'off' ,
22- 'indent' : [
23- 'error' ,
24- 'tab' ,
25- ] ,
2622 'object-curly-newline' : [
2723 'error' ,
2824 {
2925 ImportDeclaration : {
3026 minProperties : 2 ,
3127 multiline : true ,
32- }
33- }
34- ] ,
35- semi : [
36- 'error' ,
37- 'never' ,
38- ] ,
39- quotes : [
40- 'error' ,
41- 'single' ,
42- {
43- avoidEscape : true ,
44- allowTemplateLiterals : true
45- }
46- ] ,
47- 'comma-dangle' : [
48- 'error' ,
49- 'always-multiline'
50- ] ,
51- 'no-tabs' : [
52- 'error' ,
53- {
54- 'allowIndentationTabs' : true
55- }
56- ] ,
57- 'sort-imports' : [
58- 'error' ,
59- {
60- ignoreDeclarationSort : true ,
61- }
62- ] ,
63- '@typescript-eslint/explicit-function-return-type' : 'error' ,
64- '@typescript-eslint/explicit-member-accessibility' : 'off' ,
65- '@typescript-eslint/no-angle-bracket-type-assertion' : 'off' ,
66- '@typescript-eslint/no-object-literal-type-assertion' : 'off' ,
67- '@typescript-eslint/no-explicit-any' : 'error' ,
68- '@typescript-eslint/no-extra-parens' : 'error' ,
69- '@typescript-eslint/member-delimiter-style' : [
70- 'error' ,
71- {
72- multiline : {
73- delimiter : 'none'
74- }
75- }
28+ } ,
29+ } ,
7630 ] ,
7731 '@typescript-eslint/indent' : [
7832 'error' ,
79- 'tab'
33+ 'tab' ,
8034 ] ,
81- 'import/prefer-default-export' : 'off' ,
82- 'import/no-default-export' : 'error' ,
83- 'import/no-unresolved' : 'off' ,
8435 'import/no-useless-path-segments' : 'error' ,
8536 'import/no-cycle' : 'error' ,
8637 // doesn't work for central devDependencies
8738 'import/no-extraneous-dependencies' : 'off' ,
39+ 'import/extensions' : [
40+ 'error' ,
41+ 'ignorePackages' ,
42+ {
43+ ts : 'never' ,
44+ tsx : 'never' ,
45+ } ,
46+ ] ,
47+ } ,
48+ settings : {
49+ 'import/resolver' : {
50+ node : {
51+ extensions : [ '.js' , '.jsx' , '.ts' , '.tsx' , '.json' ] ,
52+ } ,
53+ } ,
8854 } ,
8955 overrides : [
9056 {
9157 files : [ '**/*.js' ] ,
9258 rules : {
9359 '@typescript-eslint/no-var-requires' : 'off' ,
94- '@typescript-eslint/explicit-function-return-type' : 'off'
60+ '@typescript-eslint/explicit-function-return-type' : 'off' ,
9561 } ,
9662 } ,
9763 {
9864 files : [ '**/__tests__/**' ] ,
9965 rules : {
10066 '@typescript-eslint/explicit-function-return-type' : 'off' ,
101- }
67+ } ,
10268 } ,
10369 {
10470 files : [ '**/*.ts' , '**/*.d.ts' ] ,
@@ -107,5 +73,5 @@ module.exports = {
10773 'no-useless-constructor' : 'off' ,
10874 } ,
10975 } ,
110- ]
76+ ] ,
11177}
0 commit comments