Skip to content

Commit

Permalink
add typescript eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning committed Aug 28, 2024
1 parent b070168 commit 35b71a1
Show file tree
Hide file tree
Showing 5 changed files with 388 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- run: npm i
- run: npm run generate
- run: "[[ -z $(git status --porcelain) ]]"
- run: npm run lint:check
- run: npm run format:check
- run: npm run lint
- run: npm run format
release:
runs-on: ubuntu-latest
needs: check
Expand Down
19 changes: 12 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// @ts-check

import globals from "globals";
import pluginJs from "@eslint/js";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
pluginJs.configs.recommended,
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: ["dist/*"],
},
{
files: ["**/*.js"],
languageOptions: {
sourceType: "commonjs",
globals: globals.node,
globals: globals.node, // TODO: not working, check github/raise issue
},
},
];
);
Loading

0 comments on commit 35b71a1

Please sign in to comment.