Skip to content

Commit

Permalink
test: disable all test lints
Browse files Browse the repository at this point in the history
- Due to swc/jest not supporting lint at this time

- See: swc-project/swc#246
  • Loading branch information
marckassay committed Aug 17, 2022
1 parent 4c2d1a4 commit 1a85524
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .swcrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"target": "es2022",
"target": "es2021",
"parser": {
"syntax": "typescript",
"tsx": true,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following are ESLint rules/plugins that are being used:
- "eslint-plugin-jest"

## TODO

https://github.com/swc-project/swc/issues/246
Enable and add additional Jest linting:
- https://github.com/jest-community/eslint-plugin-jest
- https://github.com/jest-community/jest-runner-eslint
Expand Down
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"format:check": "npx prettier --check .",
"format:clear": "rm ./node_modules/.cache/prettier/.prettier-cache",
"tidy": "npm run tidy:check -- --write",
"tidy:check": "npx prettier-eslint \"./**/*.@(js|jsx|ts|tsx)\" --config .prettierrc --list-different",
"tidy:check": "npx prettier-eslint \"./**/*.@(js|jsx|ts|tsx)\" --config .prettierrc --list-different",
"prepare": "husky install",
"pre-commit": "npm test && npx pretty-quick --staged && npm run tidy"
},
Expand Down Expand Up @@ -56,6 +56,7 @@
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.6.0",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
Expand Down
1 change: 1 addition & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"esModuleInterop": true,
"useDefineForClassFields": true,
"isolatedModules": true,
"noEmit": true,
"allowSyntheticDefaultImports": true,
"strict": true
},
Expand Down

0 comments on commit 1a85524

Please sign in to comment.