File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -108,3 +108,12 @@ try {
108108 function f ( a ) { }
109109 f ( )
110110}
111+
112+ // semi-style
113+ {
114+ function f ( a ) { }
115+ let a = 0
116+ const b = { a : 1 }
117+ ; ( { a } = b )
118+ f ( a )
119+ }
Original file line number Diff line number Diff line change @@ -101,5 +101,8 @@ module.exports = {
101101
102102 // Prefer simpler syntax
103103 semi : [ 'error' , 'never' ] ,
104+
105+ // We disallowed semicolons
106+ 'semi-style' : [ 'error' , 'first' ] ,
104107 } ,
105108}
Original file line number Diff line number Diff line change 11{
22 "name" : " @takram/eslint-config-planck" ,
3- "version" : " 0.3.0 " ,
3+ "version" : " 0.3.1 " ,
44 "description" : " ESLint config based on Airbnb’s for Planck framework and the related codes" ,
55 "repository" : " takram-design-engineering/eslint-config-planck" ,
66 "main" : " index.js" ,
You can’t perform that action at this time.
0 commit comments