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

Commit e2d4d58

Browse files
authored
4.0.0 (#96)
* Bump deps * Prettier 2.x.x. changes * Change vue/component-name-in-template-casing to default PascalCase * Add vue/component-definition-name-casing * Add vue/component-tags-order * v7 prep * Add vue/prop-name-casing * Add vue/valid-v-bind-sync * Add vue/no-static-inline-styles * Remove deprecated vue/name-property-casing
1 parent b53829d commit e2d4d58

File tree

7 files changed

+57
-47
lines changed

7 files changed

+57
-47
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const vuex = require.resolve('./rules/vuex');
55
module.exports = {
66
extends: ['plugin:vue/recommended', a11y, vue, vuex],
77
parserOptions: {
8-
parser: 'babel-eslint'
8+
parser: 'babel-eslint',
99
},
1010
plugins: ['vue', 'vue-a11y'],
1111
env: {
12-
es6: true
13-
}
12+
es6: true,
13+
},
1414
};

package-lock.json

Lines changed: 20 additions & 20 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
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-vue-tc",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"description": "ESLint shareable config for Vue projects",
55
"keywords": [
66
"eslintconfig",
@@ -36,20 +36,20 @@
3636
},
3737
"devDependencies": {
3838
"babel-eslint": "^10.1.0",
39-
"eslint": "^6.7.2",
40-
"eslint-config-tc": "^11.0.0",
39+
"eslint": "^6.8.0",
40+
"eslint-config-tc": "^12.0.0",
4141
"eslint-formatter-pretty": "^3.0.1",
4242
"eslint-plugin-eslint-comments": "^3.1.2",
4343
"eslint-plugin-import": "^2.20.2",
4444
"eslint-plugin-jest": "^23.8.2",
45-
"eslint-plugin-prettier": "^3.1.1",
45+
"eslint-plugin-prettier": "^3.1.2",
4646
"eslint-plugin-vue": "^6.2.2",
4747
"eslint-plugin-vue-a11y": "^0.0.31",
4848
"is-plain-obj": "^2.1.0",
4949
"jest": "^25.3.0",
5050
"npm-package-json-lint": "^4.6.0",
5151
"npm-package-json-lint-config-tc": "^3.0.0",
52-
"prettier": "^1.19.1"
52+
"prettier": "^2.0.4"
5353
},
5454
"peerDependencies": {
5555
"eslint": "^6.0.0",

rules/a11y.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module.exports = {
66
'vue-a11y/aria-role': [
77
2,
88
{
9-
ignoreNonDOM: true
10-
}
9+
ignoreNonDOM: true,
10+
},
1111
],
1212
'vue-a11y/aria-props': 'error',
1313
'vue-a11y/aria-unsupported-elements': 'error',
@@ -25,6 +25,6 @@ module.exports = {
2525
'vue-a11y/no-onchange': 'error',
2626
'vue-a11y/no-redundant-roles': 'error',
2727
'vue-a11y/role-has-required-aria-props': 'error',
28-
'vue-a11y/tabindex-no-positive': 'error'
29-
}
28+
'vue-a11y/tabindex-no-positive': 'error',
29+
},
3030
};

rules/vue.js

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,49 @@
11
module.exports = {
22
rules: {
3-
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
3+
'vue/component-definition-name-casing': 'error',
4+
'vue/component-name-in-template-casing': 'error',
5+
'vue/component-tags-order': 'error',
46
'vue/dot-location': 'error',
57
'vue/html-self-closing': [
68
'warn',
79
{
810
html: {
911
void: 'always',
1012
normal: 'always',
11-
component: 'always'
13+
component: 'always',
1214
},
1315
svg: 'always',
14-
math: 'always'
15-
}
16+
math: 'always',
17+
},
1618
],
1719
'vue/keyword-spacing': 'error',
1820
'vue/match-component-file-name': [
1921
'error',
2022
{
2123
extensions: ['jsx'],
22-
shouldMatchCase: false
23-
}
24+
shouldMatchCase: false,
25+
},
2426
],
2527
'vue/max-attributes-per-line': 'off',
26-
'vue/name-property-casing': ['error', 'kebab-case'],
2728
'vue/no-boolean-default': 'error',
29+
// Add with v7 of eslint-plugin-vue when it is released.
30+
// 'vue/no-custom-modifiers-on-v-model': 'error',
2831
'vue/no-deprecated-slot-attribute': 'error',
2932
'vue/no-deprecated-slot-scope-attribute': 'error',
3033
'vue/no-empty-pattern': 'error',
3134
'vue/no-irregular-whitespace': 'error',
35+
// Add with v7 of eslint-plugin-vue when it is released.
36+
// 'vue/no-multiple-template-root': 'error',
3237
'vue/no-reserved-component-names': 'error',
38+
'vue/no-static-inline-styles': 'error',
39+
// Add with v7 of eslint-plugin-vue when it is released.
40+
// 'vue/no-v-model-argument': 'error',
3341
'vue/padding-line-between-blocks': 'error',
42+
'vue/prop-name-casing': 'error',
3443
'vue/require-direct-export': 'error',
3544
'vue/require-name-property': 'error',
45+
'vue/valid-v-bind-sync': 'error',
3646
'vue/valid-v-slot': 'error',
37-
'vue/v-slot-style': 'error'
38-
}
47+
'vue/v-slot-style': 'error',
48+
},
3949
};

rules/vuex.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ module.exports = {
66
props: true,
77
ignorePropertyModificationsFor: [
88
// vuex
9-
'state'
10-
]
11-
}
12-
]
13-
}
9+
'state',
10+
],
11+
},
12+
],
13+
},
1414
};

test/tests.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('eslint config tests', () => {
3838
const expectedErrorColumnNum = 16;
3939
const linter = new eslint.CLIEngine({
4040
useEslintrc: false,
41-
configFile: '.eslintrc.json'
41+
configFile: '.eslintrc.json',
4242
});
4343
const errors = linter.executeOnText(code).results[0].messages;
4444
const error = errors[0];

0 commit comments

Comments
 (0)