Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Upgrade prettier version to 1.15.0 (#650)
Browse files Browse the repository at this point in the history
* Upgrade prettier version to 1.15

* Prettier changes
  • Loading branch information
mesaugat authored and Josh Goldberg committed Nov 8, 2018
1 parent 244dcac commit 42bb696
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"lint-staged": "^8.0.4",
"mocha": "5.2.0",
"npm-run-all": "^4.1.3",
"prettier": "1.14.3",
"prettier": "1.15.0",
"rimraf": "^2.6.2",
"strip-json-comments": "^2.0.1",
"tslint": "^5.11.0",
Expand Down
24 changes: 13 additions & 11 deletions src/tests/FunctionNameRuleTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,17 +321,19 @@ describe('functionNameRule', (): void => {
describe('reading options', (): void => {
let options: [boolean, object];

beforeEach((): void => {
options = [
true,
{
'method-regex': '^myMethod$',
'private-method-regex': '^myPrivateMethod$',
'static-method-regex': '^myStaticMethod$',
'function-regex': '^myFunction$'
}
];
});
beforeEach(
(): void => {
options = [
true,
{
'method-regex': '^myMethod$',
'private-method-regex': '^myPrivateMethod$',
'static-method-regex': '^myStaticMethod$',
'function-regex': '^myFunction$'
}
];
}
);

it('should allow passing names', (): void => {
const script: string = `
Expand Down
18 changes: 10 additions & 8 deletions src/tests/NoInnerHtmlRuleTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,16 @@ describe('noInnerHtmlRule', (): void => {
describe('with options', (): void => {
let options: [boolean, object];

beforeEach((): void => {
options = [
true,
{
'html-lib-matcher': 'cheerio|[j|J][q|Q]uery'
}
];
});
beforeEach(
(): void => {
options = [
true,
{
'html-lib-matcher': 'cheerio|[j|J][q|Q]uery'
}
];
}
);

it('should fail on invoking html(x) with different jQuery matcher', (): void => {
const script: string = `
Expand Down

0 comments on commit 42bb696

Please sign in to comment.