Skip to content

3.0.0 #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 7, 2020
3 changes: 2 additions & 1 deletion .npmpackagejsonlintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "npm-package-json-lint-config-tc",
"rules": {
"prefer-no-version-zero-devDependencies": ["error", {"exceptions": ["eslint-plugin-vue-a11y"]}]
"prefer-no-version-zero-devDependencies": ["error", {"exceptions": ["eslint-plugin-vue-a11y"]}],
"valid-values-engines": "off"
}
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Node

* [Node.js](https://nodejs.org/) - v8.0.0+
* [Node.js](https://nodejs.org/) - v10.0.0+
* [npm](https://www.npmjs.com/) - v6.0.0+

## Install project dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ First thing first, let's make sure you have the necessary pre-requisites.

#### Node

* [Node.js](https://nodejs.org/) - v8.0.0+
* [Node.js](https://nodejs.org/) - v10.0.0+
* [npm](http://npmjs.com) - v6.0.0+

### Command
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-vue-tc",
"version": "2.1.1",
"version": "3.0.0",
"description": "ESLint shareable config for Vue projects",
"keywords": [
"eslintconfig",
Expand Down Expand Up @@ -57,7 +57,7 @@
"eslint-plugin-vue-a11y": "^0.0.31"
},
"engines": {
"node": ">=8.0.0",
"node": ">=10.0.0",
"npm": ">=6.0.0"
},
"license": "MIT"
Expand Down
37 changes: 23 additions & 14 deletions rules/vue.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
module.exports = {
rules: {
'vue/max-attributes-per-line': 'off',
'vue/require-direct-export': 'error',
'vue/no-empty-pattern': 'off',
// 'vue/no-deprecated-scope-attribute': 'error',
'vue/no-boolean-default': 'error',
'vue/match-component-file-name': [
'error',
{
extensions: ['jsx'],
shouldMatchCase: false
}
],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/name-property-casing': ['error', 'kebab-case'],
'vue/dot-location': 'error',
'vue/html-self-closing': [
'warn',
{
Expand All @@ -25,6 +13,27 @@ module.exports = {
svg: 'always',
math: 'always'
}
]
],
'vue/keyword-spacing': 'error',
'vue/match-component-file-name': [
'error',
{
extensions: ['jsx'],
shouldMatchCase: false
}
],
'vue/max-attributes-per-line': 'off',
'vue/name-property-casing': ['error', 'kebab-case'],
'vue/no-boolean-default': 'error',
'vue/no-deprecated-slot-attribute': 'error',
'vue/no-deprecated-slot-scope-attribute': 'error',
'vue/no-empty-pattern': 'error',
'vue/no-irregular-whitespace': 'error',
'vue/no-reserved-component-names': 'error',
'vue/padding-line-between-blocks': 'error',
'vue/require-direct-export': 'error',
'vue/require-name-property': 'error',
'vue/valid-v-slot': 'error',
'vue/v-slot-style': 'error'
}
};