@@ -20,7 +20,7 @@ module.exports = {
2020 node : true ,
2121 jest : true ,
2222 } ,
23- ignorePatterns : [ '.eslintrc.js' ] ,
23+ ignorePatterns : [ '.eslintrc.js' , 'webpack.config.js' , 'examples/apidoc' ] ,
2424 rules : {
2525 '@typescript-eslint/interface-name-prefix' : 'off' ,
2626 '@typescript-eslint/explicit-function-return-type' : 'off' ,
@@ -30,5 +30,28 @@ module.exports = {
3030 '@typescript-eslint/ban-types' : 'off' ,
3131 'simple-import-sort/imports' : 'error' ,
3232 'simple-import-sort/exports' : 'error' ,
33+ 'array-bracket-spacing' : [ 'error' , 'never' ] ,
34+ 'linebreak-style' : [ 'error' , 'unix' ] ,
35+ 'lines-between-class-members' : [ 'warn' , 'always' ] ,
36+ '@typescript-eslint/no-empty-object-type' : [
37+ 'error' ,
38+ { allowObjectTypes : 'always' } ,
39+ ] ,
40+ semi : [ 'error' , 'always' ] ,
41+ 'new-cap' : 'off' ,
42+ 'no-console' : 'off' ,
43+ 'no-debugger' : 'off' ,
44+ 'no-mixed-spaces-and-tabs' : 2 ,
45+ 'no-use-before-define' : [ 2 , 'nofunc' ] ,
46+ 'no-unreachable' : [ 'warn' ] ,
47+ // 'no-unused-vars': ['warn'],
48+ 'no-extra-parens' : [ 'off' ] ,
49+ 'no-mixed-operators' : [ 'off' ] ,
50+ quotes : [ 2 , 'single' , 'avoid-escape' ] ,
51+ 'block-scoped-var' : 2 ,
52+ 'brace-style' : [ 2 , '1tbs' , { allowSingleLine : true } ] ,
53+ 'computed-property-spacing' : [ 2 , 'never' ] ,
54+ 'keyword-spacing' : 2 ,
55+ 'space-unary-ops' : 2 ,
3356 } ,
3457} ;
0 commit comments