Skip to content

Commit 4e439b7

Browse files
committed
run prettier
1 parent 67a53cc commit 4e439b7

File tree

4 files changed

+48
-50
lines changed

4 files changed

+48
-50
lines changed

package.json

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
{
2-
"name": "eslint-plugin-vue-test-utils",
3-
"version": "1.0.0",
4-
"description": "Linting for Vue Test Utils",
5-
"license": "MIT",
6-
"author": {
7-
"name": "Productiv",
8-
"url": "https://github.com/BeProductiv"
9-
},
10-
"repository": {
11-
"url": "https://github.com/BeProductiv/eslint-plugin-vue-test-utils"
12-
},
13-
"keywords": [
14-
"eslint",
15-
"eslintplugin",
16-
"eslint-plugin",
17-
"@vue/test-utils",
18-
"vue",
19-
"test"
20-
],
21-
"main": "src/index.js",
22-
"scripts": {
23-
"lint": "eslint .",
24-
"test": "jest",
25-
"prettier": "prettier -cw ."
26-
},
27-
"dependencies": {
28-
"semver": "^6.0.0",
29-
"lodash": "^4.17.21"
30-
},
31-
"devDependencies": {
32-
"eslint": "^6.2.1",
33-
"eslint-plugin-eslint-plugin": "^4.0.1",
34-
"eslint-plugin-node": "^11.1.0",
35-
"jest": "26.6.3",
36-
"prettier": "^2.6.2"
37-
},
38-
"engines": {
39-
"node": "14.x || >= 16"
40-
},
41-
"peerDependencies": {
42-
"eslint": ">=6"
43-
}
44-
}
2+
"name": "eslint-plugin-vue-test-utils",
3+
"version": "1.0.0",
4+
"description": "Linting for Vue Test Utils",
5+
"license": "MIT",
6+
"author": {
7+
"name": "Productiv",
8+
"url": "https://github.com/BeProductiv"
9+
},
10+
"repository": {
11+
"url": "https://github.com/BeProductiv/eslint-plugin-vue-test-utils"
12+
},
13+
"keywords": [
14+
"eslint",
15+
"eslintplugin",
16+
"eslint-plugin",
17+
"@vue/test-utils",
18+
"vue",
19+
"test"
20+
],
21+
"main": "src/index.js",
22+
"scripts": {
23+
"lint": "eslint .",
24+
"test": "jest",
25+
"prettier": "prettier -cw ."
26+
},
27+
"dependencies": {
28+
"semver": "^6.0.0",
29+
"lodash": "^4.17.21"
30+
},
31+
"devDependencies": {
32+
"eslint": "^6.2.1",
33+
"eslint-plugin-eslint-plugin": "^4.0.1",
34+
"eslint-plugin-node": "^11.1.0",
35+
"jest": "26.6.3",
36+
"prettier": "^2.6.2"
37+
},
38+
"engines": {
39+
"node": "14.x || >= 16"
40+
},
41+
"peerDependencies": {
42+
"eslint": ">=6"
43+
}
44+
}

src/rules/missing-await.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ module.exports = {
6363
const isVmEmit = nodeIsComponentEmit(node);
6464

6565
return (
66-
((isWrapperUpdateFunction || isVmEmit) &&
67-
nodeIsCalledFromWrapper(isVmEmit ? node.callee.object.object : node.callee.object, wrapperNames))
66+
(isWrapperUpdateFunction || isVmEmit) &&
67+
nodeIsCalledFromWrapper(isVmEmit ? node.callee.object.object : node.callee.object, wrapperNames)
6868
);
6969
}
7070

src/rules/no-deprecated-selectors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = {
8686
functionName: node.callee.property.name,
8787
},
8888
fix:
89-
(isSuccessiveWrapperChain && !canChainComponentsFromCssWrappers)
89+
isSuccessiveWrapperChain && !canChainComponentsFromCssWrappers
9090
? undefined
9191
: fixer => {
9292
return fixer.replaceText(

tests/src/rules/no-deprecated-selectors.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ describe('version independent tests', () => {
5050
// chained functions
5151
code: "import MyComponent from './MyComponent.vue'; wrapper.get(MyComponent).contains('div')",
5252
errors: [{ messageId: 'deprecatedComponentSelector', data: { functionName: 'get' } }],
53-
output:
54-
"import MyComponent from './MyComponent.vue'; wrapper.getComponent(MyComponent).contains('div')",
53+
output: "import MyComponent from './MyComponent.vue'; wrapper.getComponent(MyComponent).contains('div')",
5554
},
5655
{
5756
// chained functions with at()
5857
code: "import MyComponent from './MyComponent.vue'; wrapper.findAll(MyComponent).at(2).contains('div')",
5958
errors: [{ messageId: 'deprecatedComponentSelector', data: { functionName: 'findAll' } }],
60-
output:
61-
"import MyComponent from './MyComponent.vue'; wrapper.findAllComponents(MyComponent).at(2).contains('div')",
59+
output: "import MyComponent from './MyComponent.vue'; wrapper.findAllComponents(MyComponent).at(2).contains('div')",
6260
},
6361
...flatMap(componentOnlyWrapperMembers, member => [
6462
{

0 commit comments

Comments
 (0)