Skip to content

Commit

Permalink
Prettify library and examples and enable format check in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
matux committed Feb 26, 2024
1 parent 9859866 commit db38085
Show file tree
Hide file tree
Showing 46 changed files with 771 additions and 750 deletions.
28 changes: 14 additions & 14 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,38 @@ extends:
- plugin:react-hooks/recommended
- plugin:jest/recommended
- plugin:jest-dom/recommended
parser: "@babel/eslint-parser"
parser: '@babel/eslint-parser'
plugins:
- "@babel"
- '@babel'
- jest
- react
- react-hooks
- testing-library
overrides:
- files:
- "**/__tests__/**/*.[jt]s?(x)"
- "**/?(*.)+(spec|test).[jt]s?(x)"
- '**/__tests__/**/*.[jt]s?(x)'
- '**/?(*.)+(spec|test).[jt]s?(x)'
extends:
- "plugin:testing-library/react"
- 'plugin:testing-library/react'
- files:
- "**/*.ts?(x)"
parser: "@typescript-eslint/parser"
- '**/*.ts?(x)'
parser: '@typescript-eslint/parser'
parserOptions:
tsconfigRootDir: .
project: ['./tsconfig.json']
tsconfigRootDir: .
project: ['./tsconfig.json']
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
rules:
"@typescript-eslint/no-unused-vars":
'@typescript-eslint/no-unused-vars':
- error
- varsIgnorePattern: "^_"
argsIgnorePattern: "^_"
- varsIgnorePattern: '^_'
argsIgnorePattern: '^_'
# For compat with jest: https://typescript-eslint.io/rules/unbound-method/
"@typescript-eslint/unbound-method": "off"
"jest/unbound-method": "error"
'@typescript-eslint/unbound-method': 'off'
'jest/unbound-method': 'error'
rules:
quotes:
- error
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
prettier: false
prettier: true
eslint: false
eslint_args: '--max-warnings 0'
eslint_extensions: js,jsx,ts,tsx
Expand Down
Loading

0 comments on commit db38085

Please sign in to comment.