Skip to content

Commit ccef594

Browse files
committed
add eslint
1 parent 0359a22 commit ccef594

File tree

5 files changed

+558
-19
lines changed

5 files changed

+558
-19
lines changed

.github/workflows/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: unit tests
2929
run: cd ./solarkraft && npm run test
3030

31-
license:
31+
lint-and-license:
3232
runs-on: ubuntu-latest
3333
strategy:
3434
fail-fast: true
@@ -39,5 +39,7 @@ jobs:
3939
node-version: "20"
4040
- name: install npm dependencies
4141
run: cd ./solarkraft && npm ci
42+
- name: eslint
43+
run: cd ./solarkraft && npm run lint
4244
- name: check license
4345
run: cd ./solarkraft && (npm run license | grep -v updated) || echo "fix with 'npm run license'"

solarkraft/eslint.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
...tseslint.configs.recommended,
9+
);

0 commit comments

Comments
 (0)