Skip to content

Commit

Permalink
build: update deps, remove jest and testing library, update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Sep 11, 2022
1 parent 8a6efeb commit 99bc53e
Show file tree
Hide file tree
Showing 18 changed files with 2,253 additions and 780 deletions.
16 changes: 4 additions & 12 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,26 @@
"jsx": true
}
},
"plugins": [
"testing-library",
"@typescript-eslint",
"react",
"jest",
"jest-dom"
],
"plugins": ["@typescript-eslint", "react"],
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:testing-library/recommended",
"plugin:jest-dom/recommended"
"plugin:testing-library/recommended"
],
"env": {
"browser": true,
"es6": true,
"jest/globals": true
"es6": true
},
"settings": {
"react": { "version": "detect" }
},
"rules": {
"linebreak-style": ["error", "unix"],
"lines-around-comment": 0,
"no-constant-binary-expression": "error",
"no-confusing-arrow": 0,
"no-console": ["warn", { "allow": ["warn"] }],
"no-debugger": 0,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
44 changes: 14 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@
"build": "NODE_ENV=production tsdx build",
"dedupe-types": "rm -rf node_modules && yarn remove @types/react && yarn && yarn add --dev @types/react && npx yarn-deduplicate --packages @types/react yarn.lock",
"release": "yarn build && np --no-2fa",
"test": "CI=true tsdx test --color",
"test:watch": "tsdx test",
"test:coverage": "CI=true tsdx test --color --coverage",
"test": "test-storybook",
"test:coverage": "yarn test --coverage",
"lint": "tsdx lint",
"lint-staged": "lint-staged",
"storybook": "start-storybook -p 6006 --ci",
Expand All @@ -67,12 +66,6 @@
"pre-commit": "lint-staged"
}
},
"jest": {
"verbose": true,
"setupFilesAfterEnv": [
"./test/setupTests.ts"
]
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
"pretty-quick --staged",
Expand All @@ -94,34 +87,26 @@
"react-dom": ">=16.8"
},
"devDependencies": {
"@storybook/addon-actions": "^6.5.10",
"@storybook/addon-console": "^1.2.3",
"@storybook/addon-controls": "^6.5.10",
"@storybook/addon-docs": "^6.5.10",
"@storybook/addon-coverage": "^0.0.4",
"@storybook/addon-essentials": "^6.5.10",
"@storybook/addon-interactions": "^6.5.10",
"@storybook/addon-links": "^6.5.10",
"@storybook/addon-storysource": "^6.5.10",
"@storybook/addon-viewport": "^6.5.10",
"@storybook/addons": "^6.5.10",
"@storybook/jest": "^0.0.10",
"@storybook/preset-typescript": "3.0.0",
"@storybook/react": "^6.5.10",
"@storybook/test-runner": "^0.7.1",
"@storybook/testing-library": "^0.0.13",
"@storybook/theming": "^6.5.10",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^11.2.2",
"@testing-library/react-hooks": "^3.7.0",
"@types/jest": "^26.0.19",
"@types/node": "^14.14.17",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/resize-observer-browser": "^0.1.7",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"babel-jest": "^29.0.3",
"babel-loader": "^8.2.5",
"eslint": "^7.16.0",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-jest-dom": "^3.6.5",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-testing-library": "^3.10.1",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"eslint": "^8.23.0",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react-hooks": "^4.6.0",
"google-maps-react": "^2.0.6",
"husky": "^4.3.6",
"lint-staged": "^10.5.3",
Expand All @@ -130,7 +115,6 @@
"pretty-quick": "^3.1.3",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-test-renderer": "^17.0.1",
"remark-codesandbox": "^0.10.1",
"rollup-plugin-analyzer": "^4.0.0",
"tsdx": "^0.14.1",
Expand Down
190 changes: 0 additions & 190 deletions test/ReactCompareSlider.test.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions test/ReactCompareSliderImage.test.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions test/setupTests.ts

This file was deleted.

37 changes: 0 additions & 37 deletions test/utils.test.ts

This file was deleted.

0 comments on commit 99bc53e

Please sign in to comment.