@alexlit/config-eslint 21.3.0 → 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 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,10 @@
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
+
1
8
  # [21.3.0](https://github.com/alex-lit/config-eslint/compare/v21.2.0...v21.3.0) (2021-10-05)
2
9
 
3
10
  # [21.2.0](https://github.com/alex-lit/config-eslint/compare/v21.1.0...v21.2.0) (2021-10-05)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "21.3.0",
3
+ "version": "22.0.0",
4
4
  "private": false,
5
5
  "description": "eslint config",
6
6
  "keywords": [
@@ -58,6 +58,7 @@
58
58
  "eslint-plugin-jsdoc": "^36.1.0",
59
59
  "eslint-plugin-jsx-a11y": "^6.4.1",
60
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",
@@ -86,6 +87,7 @@
86
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
  },
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @see [eslint-plugin-lit-a11y](https://www.npmjs.com/package/eslint-plugin-lit-a11y)
3
+ */
4
+ module.exports = {
5
+ extends: ['plugin:lit-a11y/recommended'],
6
+
7
+ plugins: ['lit-a11y'],
8
+ };
@@ -16,10 +16,9 @@ module.exports = {
16
16
  skipIfMatch: ['^@.*', '^plugin:.*'],
17
17
 
18
18
  skipWordIfMatch: [
19
- // HEX colors
20
- '^[0-9a-f]{3,6}$',
21
- // eslint-disable-next-line prettier/prettier
22
- "^'",
19
+ '^[0-9a-f]{3,6}$', // HEX colors
20
+ /* prettier-ignore */
21
+ '^\'',
23
22
  ],
24
23
 
25
24
  skipWords,
package/plugins/wc.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @see [eslint-plugin-wc](https://github.com/43081j/eslint-plugin-wc)
3
+ */
4
+ module.exports = {
5
+ extends: ['plugin:wc/recommended'],
6
+
7
+ plugins: ['wc'],
8
+ };