Skip to content

Commit 549efab

Browse files
authored
chore: fix lint scripts, add verify workflow (#130)
1 parent bb9acb6 commit 549efab

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fixtures/**/lib
2+
packages/**/lib

.github/workflows/verify.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Verify
2+
3+
on: pull_request
4+
5+
jobs:
6+
verify:
7+
name: Verify
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Repo
11+
uses: actions/checkout@v2
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: '16'
17+
cache: 'yarn'
18+
19+
- name: Install Dependencies
20+
run: yarn --frozen-lockfile
21+
22+
- name: Build packages
23+
run: yarn build
24+
25+
- name: Lint
26+
run: yarn lint
27+
28+
- name: Check size
29+
run: yarn size

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"format:package": "prettier \"**/package.json\" --write",
2020
"format:ts": "prettier \"**/*.ts\" --write",
2121
"lint": "npm-run-all --parallel lint:*",
22-
"lint:css": "stylelint src/**/*.ts",
23-
"lint:eslint": "eslint src scripts",
24-
"lint:lit": "lit-analyzer src --strict",
22+
"lint:css": "stylelint packages/**/src/*.ts fixtures/**/src/*.ts",
23+
"lint:eslint": "eslint packages fixtures scripts",
24+
"lint:lit": "lit-analyzer packages/**/src/*.ts fixtures/**/src/*.ts --strict",
2525
"postinstall": "patch-package",
2626
"release": "changeset publish && yarn format",
2727
"serve": "web-dev-server --node-resolve",

packages/api-demo/src/controllers/abstract-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export class AbstractController<T> {
1919
this.updateData(data);
2020
}
2121

22+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2223
updateData(_data: T[]) {
2324
if (this.host.isConnected) {
2425
this.host.requestUpdate();

0 commit comments

Comments
 (0)