Skip to content

Commit

Permalink
change tsx to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvshivkov committed Nov 6, 2024
1 parent feaa5a5 commit 1cd81ea
Show file tree
Hide file tree
Showing 5 changed files with 3,447 additions and 336 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm' # Use npm for caching
cache: 'yarn'

- name: Install dependencies
run: npm ci # Use npm ci for installing dependencies
run: yarn install

- name: Run typecheck
run: npm run typecheck
run: yarn lint
12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";


/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
{languageOptions: { globals: globals.browser }},
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];
Loading

0 comments on commit 1cd81ea

Please sign in to comment.