@blockquote/create-wc 1.50.0 → 1.70.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockquote/create-wc",
3
- "version": "1.50.0",
3
+ "version": "1.70.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "LitElement",
@@ -39,13 +39,6 @@
39
39
  "parserOptions": {
40
40
  "ecmaVersion": "latest"
41
41
  },
42
- "plugins": [
43
- "log-filenames"
44
- ],
45
- "extends": [
46
- "@open-wc",
47
- "prettier"
48
- ],
49
42
  "rules": {
50
43
  "class-methods-use-this": "off",
51
44
  "no-unused-expressions": [
@@ -91,7 +84,6 @@
91
84
  "@open-wc/eslint-config": "^12.0.0",
92
85
  "eslint": "^8.49.0",
93
86
  "eslint-config-prettier": "^9.0.0",
94
- "eslint-plugin-log-filenames": "^1.0.6",
95
87
  "husky": "^8.0.3",
96
88
  "lint-staged": "^14.0.1",
97
89
  "prettier": "^3.0.3",
@@ -29,6 +29,7 @@ build
29
29
  .tmp
30
30
  *.tgz
31
31
  *.tsbuildinfo
32
+ *.d.ts
32
33
  storybook-static
33
34
  ## end gitignore
34
35
 
@@ -12,9 +12,7 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
12
12
  files: [`${outDir}/test/**/*.test.js`],
13
13
 
14
14
  /** Resolve bare module imports */
15
- nodeResolve: {
16
- exportConditions: ['browser', 'development'],
17
- },
15
+ nodeResolve: true,
18
16
 
19
17
  /** Browsers to run tests on */
20
18
  browsers: [
@@ -28,7 +26,7 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
28
26
  /** Amount of test files per browser to test concurrently */
29
27
  concurrency: 1,
30
28
 
31
- reporters: [summaryReporter(), defaultReporter(), coverageTableReporter()],
29
+ reporters: [summaryReporter({}), defaultReporter(), coverageTableReporter()],
32
30
 
33
31
  preserveSymlinks: true,
34
32
 
@@ -1 +1,8 @@
1
- {}
1
+ {
2
+ "eslintConfig": {
3
+ "extends": [
4
+ "@open-wc",
5
+ "prettier"
6
+ ]
7
+ }
8
+ }
@@ -4,6 +4,11 @@
4
4
  "plugins": [
5
5
  "@typescript-eslint"
6
6
  ],
7
+ "extends": [
8
+ "@open-wc",
9
+ "plugin:@typescript-eslint/recommended",
10
+ "prettier"
11
+ ],
7
12
  "rules": {
8
13
  "indent": [
9
14
  "error",
@@ -15,10 +20,15 @@
15
20
  ]
16
21
  }
17
22
  ],
18
- "no-unused-vars": "off",
19
- "@typescript-eslint/no-unused-vars": [
20
- "error"
21
- ]
23
+ "@typescript-eslint/ban-types": "off",
24
+ "@typescript-eslint/explicit-function-return-type": "off",
25
+ "@typescript-eslint/explicit-module-boundary-types": "off",
26
+ "@typescript-eslint/no-array-constructor": "error",
27
+ "@typescript-eslint/no-empty-function": "off",
28
+ "@typescript-eslint/no-explicit-any": "error",
29
+ "@typescript-eslint/no-loss-of-precision": "error",
30
+ "@typescript-eslint/no-namespace": "error",
31
+ "@typescript-eslint/no-non-null-assertion": "off"
22
32
  }
23
33
  },
24
34
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import { html, fixture, assert, fixtureCleanup } from '@open-wc/testing';
1
+ import { html, fixture, assert, expect, fixtureCleanup } from '@open-wc/testing';
2
2
  import { <%= className %> } from '../src/<%= className %>.js';
3
3
  import '../define/<%= tagName %>.js';
4
4
 
@@ -20,11 +20,11 @@ suite('<%= className %>', () => {
20
20
 
21
21
  suite('Semantic Dom and a11y', () => {
22
22
  test('SHADOW DOM - Structure test', async () => {
23
- await assert.shadowDom.equalSnapshot(el);
23
+ await expect(el).shadowDom.to.equalSnapshot();
24
24
  });
25
25
 
26
26
  test('LIGHT DOM - Structure test', async () => {
27
- await assert.lightDom.equalSnapshot(el);
27
+ await expect(el).lightDom.to.equalSnapshot();
28
28
  });
29
29
  test('a11y', async () => {
30
30
  await assert.isAccessible(el);
@@ -7,14 +7,20 @@ import { styles } from './styles/<%= tagName %>-styles.css.js';
7
7
  * ## `<<%= tagName %>>`
8
8
  * An example element.
9
9
  *
10
- * @attr heading
11
- * @attr counter
10
+ * @attribute heading
11
+ * @attribute counter
12
12
  * @fires counterchange - Indicates when the count changes
13
13
  * @slot - This element has a slot
14
14
  */
15
15
  export class <%= className %> extends LitElement {
16
+ /**
17
+ * @override
18
+ */
16
19
  static styles = [styles];
17
20
 
21
+ /**
22
+ * @override
23
+ */
18
24
  static properties = {
19
25
  /**
20
26
  * The heading to say "Hello" to.
@@ -33,6 +39,9 @@ export class <%= className %> extends LitElement {
33
39
  this.counter = 5;
34
40
  }
35
41
 
42
+ /**
43
+ * @override
44
+ */
36
45
  render() {
37
46
  return html`
38
47
  <h1>${this.sayHello(this.heading)}!</h1>
@@ -6,14 +6,15 @@
6
6
  "moduleResolution": "node",
7
7
  "allowJs": true,
8
8
  "declaration": true,
9
- "emitDeclarationOnly": true,
10
- "noEmit": false,
9
+ "emitDeclarationOnly": false,
10
+ "noEmit": true,
11
11
  "checkJs": true,
12
12
  "strict": false,
13
13
  "noImplicitThis": true,
14
+ "noImplicitOverride": true,
14
15
  "alwaysStrict": true,
15
- "outDir": "./types",
16
16
  "allowSyntheticDefaultImports": true,
17
+
17
18
  "plugins": [
18
19
  {
19
20
  "name": "ts-lit-plugin",
@@ -26,5 +27,5 @@
26
27
  }
27
28
  ]
28
29
  },
29
- "include": ["src/**/*.js"]
30
+ "include": ["src/**/*.js", "define/**/*.js", "test/*.js", "./index.js"]
30
31
  }
@@ -8,6 +8,8 @@ import { styles } from './styles/<%= tagName %>-styles.css.js';
8
8
  * ## `<<%= tagName %>>`
9
9
  * An example element.
10
10
  *
11
+ * @attribute heading
12
+ * @attribute counter
11
13
  * @fires counterchange - Indicates when the count changes
12
14
  * @slot - This element has a slot
13
15
  */