Skip to content

Commit ceeae50

Browse files
committed
Prettify library and examples and enable format check in ci
1 parent 53c061c commit ceeae50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+771
-750
lines changed

.eslintrc.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,38 @@ extends:
1010
- plugin:react-hooks/recommended
1111
- plugin:jest/recommended
1212
- plugin:jest-dom/recommended
13-
parser: "@babel/eslint-parser"
13+
parser: '@babel/eslint-parser'
1414
plugins:
15-
- "@babel"
15+
- '@babel'
1616
- jest
1717
- react
1818
- react-hooks
1919
- testing-library
2020
overrides:
2121
- files:
22-
- "**/__tests__/**/*.[jt]s?(x)"
23-
- "**/?(*.)+(spec|test).[jt]s?(x)"
22+
- '**/__tests__/**/*.[jt]s?(x)'
23+
- '**/?(*.)+(spec|test).[jt]s?(x)'
2424
extends:
25-
- "plugin:testing-library/react"
25+
- 'plugin:testing-library/react'
2626
- files:
27-
- "**/*.ts?(x)"
28-
parser: "@typescript-eslint/parser"
27+
- '**/*.ts?(x)'
28+
parser: '@typescript-eslint/parser'
2929
parserOptions:
30-
tsconfigRootDir: .
31-
project: ['./tsconfig.json']
30+
tsconfigRootDir: .
31+
project: ['./tsconfig.json']
3232
extends:
3333
- eslint:recommended
3434
- plugin:@typescript-eslint/eslint-recommended
3535
- plugin:@typescript-eslint/recommended
3636
- plugin:@typescript-eslint/recommended-requiring-type-checking
3737
rules:
38-
"@typescript-eslint/no-unused-vars":
38+
'@typescript-eslint/no-unused-vars':
3939
- error
40-
- varsIgnorePattern: "^_"
41-
argsIgnorePattern: "^_"
40+
- varsIgnorePattern: '^_'
41+
argsIgnorePattern: '^_'
4242
# For compat with jest: https://typescript-eslint.io/rules/unbound-method/
43-
"@typescript-eslint/unbound-method": "off"
44-
"jest/unbound-method": "error"
43+
'@typescript-eslint/unbound-method': 'off'
44+
'jest/unbound-method': 'error'
4545
rules:
4646
quotes:
4747
- error

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: wearerequired/lint-action@v2
4949
with:
5050
github_token: ${{ secrets.GITHUB_TOKEN }}
51-
prettier: false
51+
prettier: true
5252
eslint: false
5353
eslint_args: '--max-warnings 0'
5454
eslint_extensions: js,jsx,ts,tsx

0 commit comments

Comments
 (0)