Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Apr 16, 2024
1 parent 0ba7bf9 commit efb7752
Show file tree
Hide file tree
Showing 5 changed files with 558 additions and 19 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: unit tests
run: cd ./solarkraft && npm run test

license:
lint-and-license:
runs-on: ubuntu-latest
strategy:
fail-fast: true
Expand All @@ -39,5 +39,7 @@ jobs:
node-version: "20"
- name: install npm dependencies
run: cd ./solarkraft && npm ci
- name: eslint
run: cd ./solarkraft && npm run lint
- name: check license
run: cd ./solarkraft && (npm run license | grep -v updated) || echo "fix with 'npm run license'"
9 changes: 9 additions & 0 deletions solarkraft/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);
Loading

0 comments on commit efb7752

Please sign in to comment.