Refactor to parent dev dependencies.

This commit is contained in:
Paulo Gustavo Veiga 2023-01-08 19:06:44 -08:00
parent 14d9fbe100
commit d8ded20330
11 changed files with 189 additions and 709 deletions

View File

@ -12,11 +12,27 @@
}, },
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"cypress": "^12.3.0", "@babel/core": "^7.20.12",
"eslint-import-resolver-webpack": "^0.13.2", "@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.16.5",
"@babel/register": "^7.16.0",
"@typescript-eslint/eslint-plugin": "^5.48.0 ",
"@typescript-eslint/parser": "^5.48.0",
"babel-loader": "^9.1.2",
"eslint": "^8.4.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-nibble": "^8.0.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "4", "husky": "4",
"lerna": "^3.16.4", "lerna": "^3.16.4",
"lint-staged": "^10.5.4" "lint-staged": "^10.5.4",
"typescript": "^4.8.4",
"webpack": "^5.75.0"
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/*"

View File

@ -20,11 +20,7 @@
"dev": "webpack --mode development --config webpack.dev.js" "dev": "webpack --mode development --config webpack.dev.js"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.14.7",
"babel-loader": "^8.2.2",
"core-js": "^3.15.2", "core-js": "^3.15.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0" "webpack-cli": "^4.10.0"
} }
} }

View File

@ -31,8 +31,8 @@
"@typescript-eslint/no-explicit-any": "error", "@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-module-boundary-types": "error", "@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-unused-vars": "error",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks "react-hooks/rules-of-hooks": "off", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies "react-hooks/exhaustive-deps": "off", // Checks effect dependencies
"no-restricted-imports": [ "no-restricted-imports": [
"error", "error",
{ {

View File

@ -18,29 +18,19 @@
"author": "Paulo Veiga <pveiga@gmail.com>, Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>", "author": "Paulo Veiga <pveiga@gmail.com>, Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@babel/preset-env": "^7.19.4",
"@formatjs/cli": "^5.1.3", "@formatjs/cli": "^5.1.3",
"@testing-library/react": "^13.4.0", "@testing-library/react": "^13.4.0",
"@types/jest": "^29.0.0", "@types/jest": "^29.0.0",
"babel-plugin-transform-require-context": "^0.1.1",
"babel-polyfill": "^6.26.0",
"copy-webpack-plugin": "^10.2.1", "copy-webpack-plugin": "^10.2.1",
"css-loader": "^6.7.1", "css-loader": "^6.7.1",
"cypress": "^12.3.0", "cypress": "^12.3.0",
"cypress-image-snapshot": "^4.0.1", "cypress-image-snapshot": "^4.0.1",
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"jest-transform-stub": "^2.0.0", "jest-transform-stub": "^2.0.0",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"react": "^18.2.0", "react": "^18.2.0",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"ts-jest": "^29.0.3", "ts-jest": "^29.0.3"
"typescript": "^4.8.4",
"webpack": "^5.75.0"
}, },
"dependencies": { "dependencies": {
"@wisemapping/mindplot": "^5.0.15", "@wisemapping/mindplot": "^5.0.15",

View File

@ -66,17 +66,17 @@
], ],
"implicit-arrow-linebreak": "off" "implicit-arrow-linebreak": "off"
}, },
"settings": { "settings": {
"import/resolver": { "import/resolver": {
"webpack": { "node": {
"config": "./webpack.common.js" "extensions": [
}, ".js",
"node": { ".ts"
"extensions": [ ]
".js", },
".ts" "webpack": {
] "config": "./webpack.common.js"
} }
} }
} }
} }

View File

@ -41,27 +41,14 @@
"xml-formatter": "^2.6.1" "xml-formatter": "^2.6.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.16.5",
"@babel/register": "^7.16.0",
"@types/jest": "^29.2.5", "@types/jest": "^29.2.5",
"@types/node": "^18.11.9", "@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"babel-loader": "^8.2.2",
"blob-polyfill": "^6.0.20211015", "blob-polyfill": "^6.0.20211015",
"compression-webpack-plugin": "^9.2.0", "compression-webpack-plugin": "^9.2.0",
"copy-webpack-plugin": "^10.0.0", "copy-webpack-plugin": "^10.0.0",
"core-js": "^3.15.2", "core-js": "^3.15.2",
"cypress": "^12.3.0", "cypress": "^12.3.0",
"cypress-image-snapshot": "^4.0.1", "cypress-image-snapshot": "^4.0.1",
"eslint": "^8.4.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-standard": "^17.0.0",
"eslint-nibble": "^8.0.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.25.4",
"html-webpack-plugin": "^5.3.2", "html-webpack-plugin": "^5.3.2",
"jest-diff": "^29.3.1", "jest-diff": "^29.3.1",
"jest-environment-jsdom": "^29.3.1", "jest-environment-jsdom": "^29.3.1",
@ -72,7 +59,6 @@
"ts-jest": "^29.0.3", "ts-jest": "^29.0.3",
"ts-loader": "^9.2.6", "ts-loader": "^9.2.6",
"ts-node": "^10.4.0", "ts-node": "^10.4.0",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.5.0", "webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.10.0", "webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1" "webpack-dev-server": "^4.11.1"

View File

@ -1,24 +1,25 @@
{ {
"env": { "env": {
"browser": true, "browser": true,
"es6": true "es6": true
}, },
"extends": [ "extends": [
"airbnb-base", "airbnb-base",
"plugin:cypress/recommended" "plugin:cypress/recommended"
], ],
"rules": { "rules": {
"no-restricted-syntax": "off", "no-restricted-syntax": "off",
"no-underscore-dangle": "off", "no-underscore-dangle": "off",
"no-plusplus": "off", "no-plusplus": "off",
"max-len": [1,250], "max-len": [
"import/no-extraneous-dependencies": ["warn", { 1,
"packageDir": ["./"], 250
"devDependencies": ["!cypress/**/*.js"] ],
}],
// ignore errors when a line finishes with (setting this value to 0 ignores all errors) // ignore errors when a line finishes with (setting this value to 0 ignores all errors)
"operator-linebreak": [ "operator-linebreak": [
"error", "after", { "error",
"after",
{
"overrides": { "overrides": {
"+": "ignore", "+": "ignore",
"-": "ignore", "-": "ignore",
@ -34,12 +35,18 @@
], ],
"object-curly-newline": "off", "object-curly-newline": "off",
"indent": "off" "indent": "off"
}, },
"settings": { "settings": {
"import/resolver": { "import/resolver": {
"webpack": { "node": {
"config": "./webpack.common.js" "extensions": [
} ".js",
} ".ts"
} ]
},
"webpack": {
"config": "./webpack.common.js"
}
}
}
} }

View File

@ -26,22 +26,11 @@
"test": "yarn test:integration" "test": "yarn test:integration"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.12",
"@babel/plugin-transform-modules-commonjs": "^7.14.5",
"@babel/preset-env": "^7.19.4",
"babel-loader": "^8.2.2",
"cypress": "12.3.0", "cypress": "12.3.0",
"cypress-image-snapshot": "^4.0.1", "cypress-image-snapshot": "^4.0.1",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-standard": "^17.0.0",
"eslint-import-resolver-webpack": "^0.13.2",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.25.3",
"html-webpack-plugin": "^5.3.2", "html-webpack-plugin": "^5.3.2",
"nodemon": "^2.0.12", "nodemon": "^2.0.12",
"start-server-and-test": "^1.14.0", "start-server-and-test": "^1.14.0",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0", "webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1" "webpack-dev-server": "^4.11.1"
}, },

View File

@ -30,8 +30,8 @@
"@typescript-eslint/no-explicit-any": "error", "@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-module-boundary-types": "error", "@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-unused-vars": "error",
"react-hooks/rules-of-hooks": "warn", // Checks rules of Hooks "react-hooks/rules-of-hooks": "off", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies "react-hooks/exhaustive-deps": "off", // Checks effect dependencies
"no-restricted-imports": [ "no-restricted-imports": [
"error", "error",
{ {

View File

@ -25,21 +25,13 @@
"@formatjs/cli": "^2.13.15", "@formatjs/cli": "^2.13.15",
"@testing-library/cypress": "^8.0.3", "@testing-library/cypress": "^8.0.3",
"@types/testing-library__cypress": "^5.0.8", "@types/testing-library__cypress": "^5.0.8",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"@welldone-software/why-did-you-render": "^7.0.1", "@welldone-software/why-did-you-render": "^7.0.1",
"copy-webpack-plugin": "^7.0.0", "copy-webpack-plugin": "^7.0.0",
"cypress": "^12.3.0", "cypress": "^12.3.0",
"cypress-image-snapshot": "^4.0.1", "cypress-image-snapshot": "^4.0.1",
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.6.0",
"html-webpack-plugin": "^5.1.0", "html-webpack-plugin": "^5.1.0",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"start-server-and-test": "^1.12.0", "start-server-and-test": "^1.12.0",
"typescript": "^4.8.4",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.4.0" "webpack-bundle-analyzer": "^4.4.0"
}, },
"dependencies": { "dependencies": {

728
yarn.lock

File diff suppressed because it is too large Load Diff