Skip to content

Commit

Permalink
fix: update deps
Browse files Browse the repository at this point in the history
* fix: update deps

* style: linter fix

* style: linter fix

* style: linter fix

* fix: update deps

* fix: update deps
  • Loading branch information
RabahZeineddine authored Jul 10, 2024
1 parent 08e5d45 commit 783681e
Show file tree
Hide file tree
Showing 37 changed files with 8,340 additions and 14,574 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

37 changes: 0 additions & 37 deletions .eslintrc

This file was deleted.

31 changes: 13 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,24 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm ci
- run: npm run build -if-present
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- run: pnpm install --frozen-lockfile
- run: pnpm build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm ci
- run: npm run lint
audit:
name: Audit packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: '18.x'
# - run: npm ci
# - name: Audit packages
# run: npm audit --audit-level moderate
# env:
# CI: true
version: 9
- run: pnpm install --frozen-lockfile
- run: pnpm lint

8 changes: 5 additions & 3 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
git config usre.email "[email protected]"
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm ci
- run: npm run build --if-present
node-version: 20
- uses: pnpm/action-setup@v4
with:
version: 9
- run: pnpm install --frozen-lockfile
- run: npx semantic-release
10 changes: 0 additions & 10 deletions .ncurc.json

This file was deleted.

43 changes: 43 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import pluginJs from '@eslint/js'
import eslintPluginImport from 'eslint-plugin-import'
import simpleImportSort from 'eslint-plugin-simple-import-sort'
import unusedImports from 'eslint-plugin-unused-imports'
import globals from 'globals'
import tseslint from 'typescript-eslint'
import eslintPluginReact from 'eslint-plugin-react';
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
import { fixupPluginRules } from '@eslint/compat'

export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
ignores: ['dist', 'node_modules', 'coverage'],
plugins: {
'eslint-plugin-import': eslintPluginImport,
'simple-import-sort': simpleImportSort,
'unused-imports': unusedImports,
'react': eslintPluginReact,
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
},
languageOptions: {
parserOptions: { ecmaFeatures: { jsx: true } },
globals: { ...globals.browser },
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'interface-name-prefix': 'off',
'explicit-function-return-type': 'off',
'explicit-module-boundary-types': 'off',
'simple-import-sort/imports': 'error',
'unused-imports/no-unused-imports': 'error',
camelcase: [
'error',
{
properties: 'never',
},
],
...eslintPluginReactHooks.configs.recommended.rules,
},
},
]
Loading

0 comments on commit 783681e

Please sign in to comment.