@@ -25,51 +25,65 @@ module.exports = {
2525 } ,
2626 'ecmaVersion' : 2018 ,
2727 'sourceType' : 'module' ,
28- // 'project': './tsconfig.json'
28+ 'project' : './tsconfig.json'
2929 } ,
3030 'plugins' : [
3131 'react' ,
32- '@typescript-eslint' ,
33- // 'prettier'
32+ '@typescript-eslint'
3433 ] ,
3534 'rules' : {
3635 'no-undef' : 0 ,
37- // 'indent': [ 'error', 2 ] ,
38- 'linebreak-style' : [ 'error' , 'unix' ] ,
39- 'quotes' : [ 'error' , 'single' ] ,
40- 'semi' : [ 2 , 'never' ] ,
41- 'no-unused-vars' : 'off' ,
36+ 'indent' : 0 ,
37+ 'linebreak-style' : [ 2 , 'unix' ] ,
38+ 'quotes' : 0 ,
39+ 'semi' : 0 ,
40+ 'no-unused-vars' : 0 ,
4241 'prefer-spread' : 0 ,
4342 'prefer-const' : 0 ,
4443 'switch-colon-spacing' : [ 2 , { 'after' : true , 'before' : true } ] ,
4544 'default-case' : 2 ,
4645 'no-spaced-func' : 2 ,
4746 'no-case-declarations' : 0 ,
47+ 'space-before-function-paren' : 0 ,
48+ 'keyword-spacing' : 0 ,
49+ 'key-spacing' : 2 ,
50+ 'comma-spacing' : 0 ,
51+ 'space-before-blocks' : 2 ,
52+ 'arrow-spacing' : 2 ,
53+ 'semi-spacing' : 2 ,
54+ 'no-irregular-whitespace' : 2 ,
55+
4856 // react jsx
4957 'react/display-name' : 0 ,
50- 'react/jsx-filename-extension' : 'off' ,
51- 'react/jsx-first-prop-new-line' : 'off' ,
52- 'react/jsx-indent' : [ 'error' , 2 ] ,
58+ 'react/jsx-filename-extension' : 0 ,
59+ 'react/jsx-first-prop-new-line' : 0 ,
60+ 'react/jsx-indent' : [ 2 , 2 ] ,
5361 'react/jsx-indent-props' : [ 2 , 2 ] ,
5462 'react/prop-types' : 0 ,
63+ 'react/jsx-key' : 2 ,
5564
56- // @typescript -eslint
65+ // @typescript -eslint
66+ '@typescript-eslint/quotes' : [ 2 , 'single' ] ,
5767 '@typescript-eslint/indent' : [ 2 , 2 ] ,
5868 '@typescript-eslint/camelcase' : 0 ,
5969 '@typescript-eslint/explicit-function-return-type' : 0 ,
6070 '@typescript-eslint/no-non-null-assertion' : 0 ,
6171 '@typescript-eslint/no-use-before-define' : 0 ,
6272 '@typescript-eslint/member-delimiter-style' : 0 ,
6373 '@typescript-eslint/no-unused-vars' : 0 ,
64- '@typescript-eslint/no-use-before-define' : 0 ,
6574 '@typescript-eslint/no-explicit-any' : 0 ,
6675 '@typescript-eslint/explicit-member-accessibility' : 0 ,
6776 '@typescript-eslint/no-angle-bracket-type-assertion' : 0 ,
6877 '@typescript-eslint/interface-name-prefix' : 0 ,
6978 '@typescript-eslint/no-empty-function' : 1 ,
70- '@typescript-eslint/semi' : 0 ,
79+ '@typescript-eslint/semi' : [ 2 , 'never' ] ,
7180 '@typescript-eslint/no-inferrable-types' : 0 ,
7281 '@typescript-eslint/no-empty-interface' : 1 ,
7382 '@typescript-eslint/class-name-casing' : 0 ,
83+ '@typescript-eslint/explicit-module-boundary-types' : 0 ,
84+ '@typescript-eslint/space-before-function-paren' : [ 2 ] ,
85+ '@typescript-eslint/keyword-spacing' : [ 2 , ] ,
86+ '@typescript-eslint/comma-spacing' : 2 ,
87+ '@typescript-eslint/type-annotation-spacing' : 2
7488 }
75- } ;
89+ }
0 commit comments