@@ -73,7 +73,6 @@ module.exports = {
7373 "arrow-body-style" : "error" ,
7474 curly : [ "error" , "multi-line" ] ,
7575 eqeqeq : [ "error" , "always" , { null : "ignore" } ] ,
76- "id-match" : "error" ,
7776 "no-caller" : "error" ,
7877 "no-cond-assign" : "error" ,
7978 "no-debugger" : "error" ,
@@ -87,6 +86,32 @@ module.exports = {
8786 "prefer-const" : [ "error" , { destructuring : "all" } ] ,
8887 radix : "error" ,
8988 "use-isnan" : "error" ,
89+ "object-shorthand" : [
90+ "error" ,
91+ "always" ,
92+ { avoidQuotes : true , ignoreConstructors : false , avoidExplicitReturnArrows : true } ,
93+ ] ,
94+ "no-restricted-syntax" : [ "error" , "ForInStatement" , "LabeledStatement" , "SequenceExpression" ] ,
95+ "spaced-comment" : [
96+ "error" ,
97+ "always" ,
98+ {
99+ line : { exceptions : [ "-" , "+" ] , markers : [ "=" , "!" , "/" ] } ,
100+ block : { exceptions : [ "-" , "+" ] , markers : [ "=" , "!" , ":" , "::" ] , balanced : true } ,
101+ } ,
102+ ] ,
103+ "no-delete-var" : [ "error" ] ,
104+ "no-label-var" : [ "error" ] ,
105+ yoda : [ "error" ] ,
106+ "prefer-destructuring" : [
107+ "error" ,
108+ {
109+ VariableDeclarator : { array : false , object : true } ,
110+ AssignmentExpression : { array : false , object : false } ,
111+ } ,
112+ { enforceForRenamedProperties : false } ,
113+ ] ,
114+ "prefer-numeric-literals" : [ "error" ] ,
90115
91116 "import/no-default-export" : "error" ,
92117 } ,
@@ -132,6 +157,7 @@ module.exports = {
132157 {
133158 files : "src/lualib/**/*.ts" ,
134159 rules : {
160+ "no-restricted-syntax" : [ "error" , "LabeledStatement" , "SequenceExpression" ] ,
135161 "@typescript-eslint/no-throw-literal" : "off" ,
136162 "@typescript-eslint/prefer-optional-chain" : "off" ,
137163 } ,
0 commit comments