Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit dff718b

Browse files
Conrad2134tclindner
authored andcommitted
Prettier conflicts (#19)
* Showing what the vue-a11y plugin defaults would look like * Fixing prettier rule * Update html-self-closing rule which conflicts with prettier. Always close void elements * Update dependencies
1 parent 677ac8b commit dff718b

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@
3535
"test": "jest"
3636
},
3737
"devDependencies": {
38-
"babel-eslint": "^10.0.2",
39-
"eslint": "^6.1.0",
40-
"eslint-config-tc": "^8.0.0",
38+
"babel-eslint": "^10.0.3",
39+
"eslint": "^6.4.0",
40+
"eslint-config-tc": "^8.0.1",
4141
"eslint-formatter-pretty": "^2.1.1",
4242
"eslint-plugin-import": "^2.18.2",
43-
"eslint-plugin-jest": "^22.15.0",
43+
"eslint-plugin-jest": "^22.17.0",
4444
"eslint-plugin-prettier": "^3.1.0",
4545
"eslint-plugin-vue": "^5.2.3",
4646
"eslint-plugin-vue-a11y": "^0.0.31",
4747
"is-plain-obj": "^2.0.0",
48-
"jest": "^24.8.0",
48+
"jest": "^24.9.0",
4949
"npm-package-json-lint": "^3.7.0",
5050
"npm-package-json-lint-config-tc": "^2.2.0",
5151
"prettier": "^1.18.2"

rules/vue.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ module.exports = {
1313
}
1414
],
1515
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
16-
'vue/name-property-casing': ['error', 'kebab-case']
16+
'vue/name-property-casing': ['error', 'kebab-case'],
17+
'vue/html-self-closing': [
18+
'warn',
19+
{
20+
html: {
21+
void: 'always',
22+
normal: 'always',
23+
component: 'always'
24+
},
25+
svg: 'always',
26+
math: 'always'
27+
}
28+
]
1729
}
1830
};

0 commit comments

Comments
 (0)