Skip to content

Commit 94464ca

Browse files
committed
More cleanup
1 parent a5e1200 commit 94464ca

File tree

6 files changed

+11
-17
lines changed

6 files changed

+11
-17
lines changed

.eslintrc.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
project: './tsconfig.json',
1818
warnOnUnsupportedTypeScriptVersion: true,
1919
},
20+
ignorePatterns: ['./examples', '.eslintrc.js'],
2021
rules: {
2122
'@typescript-eslint/naming-convention': [
2223
'error',
@@ -55,15 +56,15 @@ module.exports = {
5556
],
5657
},
5758
overrides: [
58-
// Turn off floating promises rule for examples, which typically
59-
// wrap everything in an async IIFE
6059
{
6160
files: [
6261
'examples/*'
6362
],
63+
// Turn off floating promises rule for examples, which typically
64+
// wrap everything in an async IIFE
6465
rules: {
6566
'@typescript-eslint/no-floating-promises': 'off',
6667
}
67-
}
68+
},
6869
]
6970
}

.github/workflows/raspberry-pi-3-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
submodules: "recursive"
1919
- name: Lint
2020
run: npm run lint
21+
- name: Check Types
22+
run: npm run check
2123
- name: Install ARM64 binfmt
2224
run: docker run --privileged --rm tonistiigi/binfmt --install arm
2325
- name: Build for Raspberry Pi 3

examples/_config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/* eslint-disable @typescript-eslint/no-unused-vars */
21
import {
32
GpioMapping,
43
LedMatrix,
5-
LedMatrixUtils,
4+
// LedMatrixUtils,
65
MatrixOptions,
7-
PixelMapperType,
6+
// PixelMapperType,
87
RuntimeOptions,
98
} from '../src';
109

examples/tsconfig.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"scripts": {
3535
"build-changes": "echo 'Source will rebuild on changes' && nodemon --config nodemon.build.json",
3636
"build": "npm run clean && node-gyp rebuild && tsc -p src",
37-
"check": "npx tsc --noEmit && npx tsc --noEmit -p examples",
37+
"check": "npx tsc --noEmit",
3838
"clean": "rm -rf dist",
3939
"example": "ts-node -P examples/tsconfig.json",
4040
"format": "prettier --write src/ examples/",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"target": "esnext"
2929
},
3030
"include": [
31-
"src/"
31+
"src/",
32+
"examples/"
3233
],
3334
"exclude": [
3435
"node_modules"

0 commit comments

Comments
 (0)