Skip to content

Commit 85fcc2d

Browse files
committed
prettiered code
1 parent 4ceab34 commit 85fcc2d

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"ci": "yarn run lint:js && yarn run test",
99
"precommit": "lint-staged && yarn run lint",
1010
"eslint-check": "eslint --print-config .eslintrc | eslint-config-prettier-check",
11-
"format:js": "prettier --single-quote --trailing-comma all --no-semi --print-width 180 --write \"{src,test}/**/*.js\"",
11+
"format:js": "prettier --single-quote --trailing-comma all --no-semi --print-width 180 --write \"{src,test}/**/*.mjs\"",
1212
"postinstall": "yarn run check:node",
1313
"lint": "yarn run lint:js",
1414
"lint:js": "eslint ./src ./test --ext=js",

src/config/defaults.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default {banana: 'rama'}
1+
export default { banana: 'rama' }

src/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ console.log(defaults)
66
while (true) {
77
if (_.random(0, 10, true) > 9.99999) {
88
console.log('Running1!')
9-
console.log({...{hello: 'wolrd'}})
9+
console.log({ ...{ hello: 'wolrd' } })
1010
}
1111
}

test/test.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ console.log(defaults)
44
describe('Array', function() {
55
describe('#indexOf()', function() {
66
it('should return -1 when the value is not present', function() {
7-
assert.equal([1,2,3].indexOf(4), -1);
8-
});
9-
});
10-
});
7+
assert.equal([1, 2, 3].indexOf(4), -1)
8+
})
9+
})
10+
})

0 commit comments

Comments
 (0)