@justeattakeaway/pie-webc-core 0.6.0 → 0.7.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/.eslintignore ADDED
@@ -0,0 +1,3 @@
1
+ .turbo
2
+ dist
3
+ node_modules
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [Changed] - Add js/ts linting and fix errors ([#653](https://github.com/justeattakeaway/pie/pull/653)) by [@jamieomaguire](https://github.com/jamieomaguire)
8
+
3
9
  ## 0.6.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-webc-core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "PIE design system base classes, mixins and utilities for web components",
5
5
  "type": "module",
6
6
  "main": "index.ts",
7
7
  "author": "JustEatTakeaway - Design System Web Team",
8
8
  "license": "Apache-2.0",
9
9
  "scripts": {
10
+ "lint:scripts": "run -T eslint .",
11
+ "lint:scripts:fix": "run -T eslint . --fix",
10
12
  "test": "run -T vitest run"
11
13
  },
12
14
  "volta": {
@@ -3,6 +3,7 @@ import { LitElement } from 'lit';
3
3
  import { property } from 'lit/decorators/property.js';
4
4
 
5
5
  // According to TS, "A mixin class must have a constructor with a single rest parameter of type 'any[]'."
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
7
  type Constructor<T> = new (...args: any[]) => T;
7
8
 
8
9
  type htmlDirAttribute = 'ltr' | 'rtl' | 'auto';
package/tsconfig.json CHANGED
@@ -25,6 +25,6 @@
25
25
  "experimentalDecorators": true,
26
26
  "forceConsistentCasingInFileNames": true
27
27
  },
28
- "include": ["src/**/*.ts","./declaration.d.ts", "test/**/*.ts"],
28
+ "include": ["src/**/*.ts","./declaration.d.ts", "test/**/*.ts", "index.ts"],
29
29
  "exclude": []
30
30
  }