Pexeus / LCSS

CSS editor
50 stars 11 forks source link

feat: add strict mode, add config file #12

Closed tomasvn closed 4 years ago

tomasvn commented 4 years ago

added strict mode to prevent errors, cleaner code

tomasvn commented 4 years ago

@Pexeus I have added "use strict" rule, at the beginning of each file in setup, so now if you try to define for example this

function test() {
  test = document.getElementById(...)
}

it will throw Reference error so you have to set it to variable, either const or let so you would have

function test() {
  const test = document.getElementById(...)
}