Skip to content
Permalink
Browse files

docs(example): separate example for es3

  • Loading branch information...
blond committed May 14, 2016
1 parent f1e985a commit 883ea5bb5bdd0b62189770be70980a82cf87b945
Showing with 6 additions and 7 deletions.
  1. +6 −0 examples/bad/es3.js
  2. +0 −7 examples/bad/extra-characters.js
@@ -0,0 +1,6 @@
/*eslint comma-dangle: ["error", "never"]*/
var obj = {
bar: 'baz',
qux: 'quux', // IE8 (when not in IE8 document mode) and below will throw an error when
// it encounters trailing commas in JavaScript.
};
@@ -1,9 +1,2 @@
/*eslint comma-dangle: ["error", "never"]*/
var obj = {
bar: 'baz',
qux: 'quux', // IE8 (when not in IE8 document mode) and below will throw an error when
// it encounters trailing commas in JavaScript.
};

/*eslint no-extra-semi: "warn"*/
var x = 5;; // The second semicolon is unnecessary.

0 comments on commit 883ea5b

Please sign in to comment.
You can’t perform that action at this time.