@alexlit/config-eslint 21.0.1 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -0
- package/CHANGELOG.md +13 -0
- package/package.json +10 -8
- package/plugins/lit-a11y.js +8 -0
- package/plugins/spellcheck.js +4 -2
- package/plugins/vue.js +31 -0
- package/plugins/wc.js +8 -0
package/.eslintrc.js
CHANGED
|
@@ -27,6 +27,7 @@ module.exports = defineConfig({
|
|
|
27
27
|
'./plugins/jsdoc',
|
|
28
28
|
'./plugins/jsx-a11y',
|
|
29
29
|
'./plugins/lit',
|
|
30
|
+
'./plugins/lit-a11y',
|
|
30
31
|
'./plugins/more',
|
|
31
32
|
'./plugins/no-constructor-bind',
|
|
32
33
|
'./plugins/no-loops',
|
|
@@ -48,6 +49,7 @@ module.exports = defineConfig({
|
|
|
48
49
|
'./plugins/unused-imports',
|
|
49
50
|
'./plugins/vue',
|
|
50
51
|
'./plugins/vuejs-accessibility',
|
|
52
|
+
'./plugins/wc',
|
|
51
53
|
'./plugins/write-good-comments',
|
|
52
54
|
// './plugins/no-inferred-method-name', // buggy
|
|
53
55
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# [22.0.0](https://github.com/alex-lit/config-eslint/compare/v21.3.0...v22.0.0) (2021-10-06)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- support web components
|
|
6
|
+
([38283db](https://github.com/alex-lit/config-eslint/commit/38283dbcde18cf01c9b4ee721906f7703db2068f))
|
|
7
|
+
|
|
8
|
+
# [21.3.0](https://github.com/alex-lit/config-eslint/compare/v21.2.0...v21.3.0) (2021-10-05)
|
|
9
|
+
|
|
10
|
+
# [21.2.0](https://github.com/alex-lit/config-eslint/compare/v21.1.0...v21.2.0) (2021-10-05)
|
|
11
|
+
|
|
12
|
+
# [21.1.0](https://github.com/alex-lit/config-eslint/compare/v21.0.1...v21.1.0) (2021-10-04)
|
|
13
|
+
|
|
1
14
|
## [21.0.1](https://github.com/alex-lit/config-eslint/compare/v21.0.0...v21.0.1) (2021-09-30)
|
|
2
15
|
|
|
3
16
|
# [21.0.0](https://github.com/alex-lit/config-eslint/compare/v20.6.0...v21.0.0) (2021-09-29)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "eslint config",
|
|
6
6
|
"keywords": [
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"version": "./node_modules/@alexlit/lint-kit/scripts/version.sh"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
43
|
-
"@typescript-eslint/parser": "^4.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
43
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
44
44
|
"eslint": "^7.32.0",
|
|
45
45
|
"eslint-config-airbnb-base": "^14.2.1",
|
|
46
46
|
"eslint-config-prettier": "^8.3.0",
|
|
47
|
-
"eslint-define-config": "^1.
|
|
47
|
+
"eslint-define-config": "^1.1.1",
|
|
48
48
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
49
49
|
"eslint-plugin-array-func": "^3.1.7",
|
|
50
50
|
"eslint-plugin-compat": "^3.13.0",
|
|
@@ -53,11 +53,12 @@
|
|
|
53
53
|
"eslint-plugin-ext": "^0.1.0",
|
|
54
54
|
"eslint-plugin-filenames": "^1.3.2",
|
|
55
55
|
"eslint-plugin-import": "^2.24.2",
|
|
56
|
-
"eslint-plugin-jest": "^24.5.
|
|
56
|
+
"eslint-plugin-jest": "^24.5.2",
|
|
57
57
|
"eslint-plugin-jest-formatting": "^3.0.0",
|
|
58
58
|
"eslint-plugin-jsdoc": "^36.1.0",
|
|
59
59
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
60
|
-
"eslint-plugin-lit": "^1.
|
|
60
|
+
"eslint-plugin-lit": "^1.6.0",
|
|
61
|
+
"eslint-plugin-lit-a11y": "^1.0.1",
|
|
61
62
|
"eslint-plugin-more": "^1.0.3",
|
|
62
63
|
"eslint-plugin-no-constructor-bind": "^2.0.4",
|
|
63
64
|
"eslint-plugin-no-inferred-method-name": "^2.0.0",
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
"eslint-plugin-nuxt": "^2.0.0",
|
|
69
70
|
"eslint-plugin-prettier": "^4.0.0",
|
|
70
71
|
"eslint-plugin-promise": "^5.1.0",
|
|
71
|
-
"eslint-plugin-react": "^7.26.
|
|
72
|
+
"eslint-plugin-react": "^7.26.1",
|
|
72
73
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
73
74
|
"eslint-plugin-regexp": "^1.3.1",
|
|
74
75
|
"eslint-plugin-security": "^1.4.0",
|
|
@@ -83,9 +84,10 @@
|
|
|
83
84
|
"eslint-plugin-typescript-sort-keys": "^1.8.0",
|
|
84
85
|
"eslint-plugin-unicorn": "^36.0.0",
|
|
85
86
|
"eslint-plugin-unused-imports": "^1.1.5",
|
|
86
|
-
"eslint-plugin-vue": "^7.
|
|
87
|
+
"eslint-plugin-vue": "^7.19.0",
|
|
87
88
|
"eslint-plugin-vuejs-accessibility": "^0.7.1",
|
|
88
89
|
"eslint-plugin-vuetify": "^1.0.1",
|
|
90
|
+
"eslint-plugin-wc": "^1.3.2",
|
|
89
91
|
"eslint-plugin-write-good-comments": "^0.1.3",
|
|
90
92
|
"typescript": "^4.4.3"
|
|
91
93
|
},
|
package/plugins/spellcheck.js
CHANGED
|
@@ -12,11 +12,13 @@ module.exports = {
|
|
|
12
12
|
{
|
|
13
13
|
ignoreRequire: true,
|
|
14
14
|
minLength: 4,
|
|
15
|
+
|
|
15
16
|
skipIfMatch: ['^@.*', '^plugin:.*'],
|
|
16
17
|
|
|
17
18
|
skipWordIfMatch: [
|
|
18
|
-
// HEX colors
|
|
19
|
-
|
|
19
|
+
'^[0-9a-f]{3,6}$', // HEX colors
|
|
20
|
+
/* prettier-ignore */
|
|
21
|
+
'^\'',
|
|
20
22
|
],
|
|
21
23
|
|
|
22
24
|
skipWords,
|
package/plugins/vue.js
CHANGED
|
@@ -23,6 +23,11 @@ module.exports = {
|
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
25
|
|
|
26
|
+
// 'vue/component-api-style': [
|
|
27
|
+
// 'error',
|
|
28
|
+
// ['script-setup', 'composition', 'options'],
|
|
29
|
+
// ],
|
|
30
|
+
|
|
26
31
|
'vue/component-definition-name-casing': ['error', 'kebab-case'],
|
|
27
32
|
|
|
28
33
|
'vue/component-name-in-template-casing': [
|
|
@@ -77,29 +82,55 @@ module.exports = {
|
|
|
77
82
|
],
|
|
78
83
|
|
|
79
84
|
'vue/new-line-between-multi-line-property': ['error'],
|
|
85
|
+
|
|
80
86
|
'vue/next-tick-style': ['error', 'promise'],
|
|
87
|
+
|
|
81
88
|
'vue/no-deprecated-scope-attribute': ['error'],
|
|
89
|
+
|
|
82
90
|
'vue/no-deprecated-slot-attribute': ['error'],
|
|
91
|
+
|
|
83
92
|
'vue/no-deprecated-slot-scope-attribute': ['error'],
|
|
93
|
+
|
|
84
94
|
'vue/no-empty-component-block': ['error'],
|
|
95
|
+
|
|
85
96
|
'vue/no-invalid-model-keys': ['error'],
|
|
97
|
+
|
|
86
98
|
'vue/no-irregular-whitespace': ['error'],
|
|
99
|
+
|
|
87
100
|
'vue/no-multiple-objects-in-class': ['error'],
|
|
101
|
+
|
|
88
102
|
'vue/no-parsing-error': ['error'],
|
|
103
|
+
|
|
89
104
|
'vue/no-potential-component-option-typo': ['error'],
|
|
105
|
+
|
|
90
106
|
'vue/no-reserved-component-names': ['error'],
|
|
107
|
+
|
|
91
108
|
'vue/no-restricted-component-options': ['error'],
|
|
109
|
+
|
|
92
110
|
'vue/no-restricted-props': ['error'],
|
|
111
|
+
|
|
93
112
|
'vue/no-this-in-before-route-enter': ['error'],
|
|
113
|
+
|
|
94
114
|
'vue/no-unsupported-features': ['error'],
|
|
115
|
+
|
|
95
116
|
'vue/no-unused-components': ['error'],
|
|
117
|
+
|
|
96
118
|
'vue/no-unused-refs': ['warn'],
|
|
119
|
+
|
|
97
120
|
'vue/no-use-computed-property-like-method': ['error'],
|
|
121
|
+
|
|
98
122
|
'vue/no-useless-mustaches': ['error'],
|
|
123
|
+
|
|
124
|
+
'vue/no-useless-template-attributes': ['error'],
|
|
125
|
+
|
|
99
126
|
'vue/no-useless-v-bind': ['error'],
|
|
127
|
+
|
|
100
128
|
'vue/no-v-html': ['error'],
|
|
129
|
+
|
|
101
130
|
'vue/no-v-text': ['error'],
|
|
131
|
+
|
|
102
132
|
'vue/padding-line-between-blocks': ['error'],
|
|
133
|
+
|
|
103
134
|
'vue/require-direct-export': 'off',
|
|
104
135
|
|
|
105
136
|
'vue/sort-keys': [
|