Skip to content

Commit c2521aa

Browse files
committed
chore(deps): update all
1 parent c0aa9de commit c2521aa

11 files changed

+46
-46
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ or jest.config.js:
5656

5757
```js
5858
module.exports = {
59-
preset: "jest-runner-stylelint"
59+
preset: "jest-runner-stylelint",
6060
};
6161
```
6262

@@ -126,7 +126,7 @@ module.exports = {
126126
"jsx",
127127
"ts",
128128
"tsx",
129-
"vue"
129+
"vue",
130130
],
131131
testMatch: [
132132
"**/*.css",
@@ -143,8 +143,8 @@ module.exports = {
143143
"**/*.jsx",
144144
"**/*.ts",
145145
"**/*.tsx",
146-
"**/*.vue"
147-
]
146+
"**/*.vue",
147+
],
148148
};
149149
```
150150

@@ -202,7 +202,7 @@ or in `jest-runner-stylelint.config.js`
202202
module.exports = {
203203
cliOptions: {
204204
// Options here
205-
}
205+
},
206206
};
207207
```
208208

jest-preset.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
"jsx",
1616
"ts",
1717
"tsx",
18-
"vue"
18+
"vue",
1919
],
2020
testMatch: [
2121
"**/*.css",
@@ -32,6 +32,6 @@ module.exports = {
3232
"**/*.jsx",
3333
"**/*.ts",
3434
"**/*.tsx",
35-
"**/*.vue"
36-
]
35+
"**/*.vue",
36+
],
3737
};

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@
5757
"create-jest-runner": "^0.6.0"
5858
},
5959
"devDependencies": {
60-
"@commitlint/cli": "^8.1.0",
61-
"@commitlint/config-conventional": "^8.1.0",
60+
"@commitlint/cli": "^8.3.5",
61+
"@commitlint/config-conventional": "^8.3.4",
6262
"eslint": "^6.8.0",
63-
"eslint-config-starstuff": "^1.4.5",
64-
"husky": "^4.0.0",
65-
"jest": "^25.1.0",
66-
"jest-runner-eslint": "^0.7.6",
63+
"eslint-config-starstuff": "^1.4.42",
64+
"husky": "^4.2.5",
65+
"jest": "^25.4.0",
66+
"jest-runner-eslint": "^0.7.7",
6767
"jest-runner-prettier": "^0.3.6",
68-
"lint-staged": "^10.0.0",
69-
"prettier": "^2.0.3",
70-
"semantic-release": "^17.0.1",
68+
"lint-staged": "^10.1.7",
69+
"prettier": "^2.0.5",
70+
"semantic-release": "^17.0.7",
7171
"stylelint": "^13.0.0",
7272
"stylelint-config-standard": "^20.0.0"
7373
},
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
cliOptions: {
3-
allowEmptyInput: true
4-
}
3+
allowEmptyInput: true,
4+
},
55
};

src/__fixtures__/stylelint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: "stylelint-config-standard"
2+
extends: "stylelint-config-standard",
33
};

src/run.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@ module.exports = ({ testPath, config }) => {
99
const defaultConfig = {
1010
files: testPath,
1111
formatter: "string",
12-
fix: configOverrides.getFix()
12+
fix: configOverrides.getFix(),
1313
};
1414
const { cliOptions = {} } = getCliOptions(config);
1515

1616
return stylelint
1717
.lint(Object.assign({}, cliOptions, defaultConfig))
18-
.then(data => {
18+
.then((data) => {
1919
if (data.errored) {
2020
return fail({
2121
start,
2222
end: new Date(),
2323
test: {
2424
path: testPath,
25-
errorMessage: data.output
26-
}
25+
errorMessage: data.output,
26+
},
2727
});
2828
}
2929

3030
return pass({
3131
start,
3232
end: new Date(),
33-
test: { path: testPath }
33+
test: { path: testPath },
3434
});
3535
})
36-
.catch(error => {
36+
.catch((error) => {
3737
throw error;
3838
});
3939
};

src/run.test.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ expect.addSnapshotSerializer({
66
print: (value, serialize) => {
77
delete value.perfStats;
88
delete value.testFilePath;
9-
value.testResults.forEach(result => {
9+
value.testResults.forEach((result) => {
1010
delete result.duration;
1111
});
1212
return serialize(value);
1313
},
14-
test: value =>
15-
value && value.perfStats && value.testFilePath && value.testResults
14+
test: (value) =>
15+
value && value.perfStats && value.testFilePath && value.testResults,
1616
});
1717

1818
describe("jest-runner-stylelint", () => {
@@ -21,16 +21,16 @@ describe("jest-runner-stylelint", () => {
2121
run({
2222
testPath: path.join(__dirname, "__fixtures__", "bad.css"),
2323
config: {},
24-
globalConfig: {}
25-
}).then(result => expect(result).toMatchSnapshot()));
24+
globalConfig: {},
25+
}).then((result) => expect(result).toMatchSnapshot()));
2626
});
2727

2828
describe("passing fixture", () => {
2929
it("matches snapshot", () =>
3030
run({
3131
testPath: path.join(__dirname, "__fixtures__", "good.css"),
3232
config: {},
33-
globalConfig: {}
34-
}).then(result => expect(result).toMatchSnapshot()));
33+
globalConfig: {},
34+
}).then((result) => expect(result).toMatchSnapshot()));
3535
});
3636
});

src/utils/normalizeConfig.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const normalizeConfig = config => {
1+
const normalizeConfig = (config) => {
22
return Object.assign({}, config, {
3-
cliOptions: config.cliOptions || {}
3+
cliOptions: config.cliOptions || {},
44
});
55
};
66

src/watchFixPlugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class StylelintWatchFixPlugin {
3939
getUsageInfo() {
4040
return {
4141
key: this._key,
42-
prompt: getPrompt()
42+
prompt: getPrompt(),
4343
};
4444
}
4545
}

src/watchFixPlugin.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ describe("watchFixPlugin", () => {
1616
const plugin = new WatchFixPlugin({ stdout, config });
1717
expect(plugin.getUsageInfo()).toEqual({
1818
key: "F",
19-
prompt: "override Stylelint --fix"
19+
prompt: "override Stylelint --fix",
2020
});
2121

2222
await plugin.run(plugin);
2323

2424
expect(plugin.getUsageInfo()).toEqual({
2525
key: "F",
26-
prompt: "toggle Stylelint --fix (enabled)"
26+
prompt: "toggle Stylelint --fix (enabled)",
2727
});
2828

2929
await plugin.run(plugin);
3030

3131
expect(plugin.getUsageInfo()).toEqual({
3232
key: "F",
33-
prompt: "toggle Stylelint --fix (disabled)"
33+
prompt: "toggle Stylelint --fix (disabled)",
3434
});
3535
});
3636

@@ -55,7 +55,7 @@ describe("watchFixPlugin", () => {
5555
const plugin = new WatchFixPlugin({ stdout, config });
5656
expect(plugin.getUsageInfo()).toEqual({
5757
key: "z",
58-
prompt: "override Stylelint --fix"
58+
prompt: "override Stylelint --fix",
5959
});
6060
});
6161
});

0 commit comments

Comments
 (0)