Skip to content

Commit

Permalink
chore: update eslint, prettier configs, apply them
Browse files Browse the repository at this point in the history
  • Loading branch information
vanya2h committed Aug 18, 2023
1 parent 10be2b9 commit 24e32d0
Show file tree
Hide file tree
Showing 81 changed files with 6,367 additions and 6,340 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"root": true,
"extends": ["@roborox/default", "prettier", "prettier/@typescript-eslint"]
"extends": ["@rarible/eslint-config-ts", "prettier"]
}
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.husky
.vscode
.yarn
.idea
build
*.md
*.d.ts
10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@rarible/prettier");
123 changes: 64 additions & 59 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,66 @@
{
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"bootstrap": "lerna bootstrap && lerna link",
"build": "sh build-all.sh",
"build:atom": "yarn workspace @rixio/atom run build",
"build:cache": "yarn workspace @rixio/cache run build",
"build:form-store": "yarn workspace @rixio/form-store run build",
"build:lens": "yarn workspace @rixio/lens run build",
"build:list": "yarn workspace @rixio/list run build",
"build:list-react": "yarn workspace @rixio/list-react run build",
"build:react": "yarn workspace @rixio/react run build",
"build:wrapped": "yarn workspace @rixio/wrapped run build",
"clean": "yarn workspaces run clean",
"link": "lerna link",
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./",
"prettify": "run-s prettify:*",
"prettify:code": "prettier --write **/src/**/*",
"prettify:packages": "lerna exec -- sort-package-json && sort-package-json",
"release": "lerna publish from-package",
"test": "yarn workspaces run test",
"verify": "yarn workspaces run verify",
"version": "lerna version"
},
"lint-staged": {
"**/src/package.json": [
"yarn run prettify:packages"
],
"package.json": [
"yarn run prettify:packages"
]
},
"devDependencies": {
"@roborox/eslint-config-default": "^2.2.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@types/jest": "^29.5.0",
"@types/react": "^16.9.37",
"@types/react-dom": "^16.9.8",
"@types/react-virtualized": "9.21.10",
"eslint": "^7.10.0",
"eslint-config-prettier": "^7.2.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"joi": "^17.9.1",
"lerna": "^6.6.1",
"lint-staged": "^10.4.0",
"prettier": "^2.1.2",
"react": "^16.13.1",
"react-dom": "16.13.1",
"rxjs": "^6.6.7",
"sort-package-json": "^1.50.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.3"
}
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"bootstrap": "lerna bootstrap && lerna link",
"build": "sh build-all.sh",
"build:atom": "yarn workspace @rixio/atom run build",
"build:cache": "yarn workspace @rixio/cache run build",
"build:form-store": "yarn workspace @rixio/form-store run build",
"build:lens": "yarn workspace @rixio/lens run build",
"build:list": "yarn workspace @rixio/list run build",
"build:list-react": "yarn workspace @rixio/list-react run build",
"build:react": "yarn workspace @rixio/react run build",
"build:wrapped": "yarn workspace @rixio/wrapped run build",
"clean": "yarn workspaces run clean",
"link": "lerna link",
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./",
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx ./ --fix",
"prepare": "husky install",
"prettify": "run-s prettify:*",
"prettify:code": "prettier --write **/src/**/*",
"prettify:packages": "lerna exec -- sort-package-json && sort-package-json",
"release": "lerna publish from-package",
"test": "yarn workspaces run test",
"verify": "yarn workspaces run verify",
"version": "lerna version"
},
"lint-staged": {
"**/src/package.json": [
"yarn run prettify:packages"
],
"package.json": [
"yarn run prettify:packages"
]
},
"devDependencies": {
"@rarible/eslint-config-ts": "~0.10.0-alpha.10",
"@rarible/prettier": "^0.10.0-alpha.10",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@types/jest": "^29.5.0",
"@types/react": "^16.9.37",
"@types/react-dom": "^16.9.8",
"@types/react-virtualized": "9.21.10",
"eslint": "^8.47.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"joi": "^17.9.1",
"lerna": "^6.6.1",
"lint-staged": "^10.4.0",
"prettier": "^2.4.1",
"react": "^16.13.1",
"react-dom": "16.13.1",
"rxjs": "^6.6.7",
"sort-package-json": "^1.50.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.3",
"webpack": "~5.72.0"
}
}
Loading

0 comments on commit 24e32d0

Please sign in to comment.