Skip to content

Commit

Permalink
Remove trailing commas from source code
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
SimenB committed Nov 9, 2017
1 parent 0a7f8d8 commit 527704f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -30,7 +30,7 @@
},
"prettier": {
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "es5"
},
"lint-staged": {
"*.js": ["eslint --fix", "git add"],
Expand Down
8 changes: 4 additions & 4 deletions rules/__tests__/no_identical_title.test.js
Expand Up @@ -21,10 +21,10 @@ ruleTester.run('no-identical-title', rules['no-identical-title'], {
['it("it1", function() {});', 'it("it2", function() {});'].join('\n'),
['it.only("it1", function() {});', 'it("it2", function() {});'].join('\n'),
['it.only("it1", function() {});', 'it.only("it2", function() {});'].join(
'\n',
'\n'
),
['describe("title", function() {});', 'it("title", function() {});'].join(
'\n',
'\n'
),
[
'describe("describe1", function() {',
Expand Down Expand Up @@ -101,7 +101,7 @@ ruleTester.run('no-identical-title', rules['no-identical-title'], {
},
{
code: ['it("it1", function() {});', 'it("it1", function() {});'].join(
'\n',
'\n'
),
errors: [
{
Expand All @@ -126,7 +126,7 @@ ruleTester.run('no-identical-title', rules['no-identical-title'], {
},
{
code: ['fit("it1", function() {});', 'it("it1", function() {});'].join(
'\n',
'\n'
),
errors: [
{
Expand Down
2 changes: 1 addition & 1 deletion rules/prefer_to_have_length.js
Expand Up @@ -23,7 +23,7 @@ module.exports = context => {
.getFirstTokenBetween(
argumentObject,
argumentProperty,
token => token.value === '.',
token => token.value === '.'
);
context.report({
fix(fixer) {
Expand Down

0 comments on commit 527704f

Please sign in to comment.