1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2024-11-21 18:16:33 +02:00

nx upgrade

This commit is contained in:
Bart 2021-03-11 11:40:14 +01:00
parent 0790d26eeb
commit 765c5e60ca
13 changed files with 564 additions and 392 deletions

View File

@ -12,8 +12,7 @@
"eslint:recommended", "eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
"prettier", "prettier"
"prettier/@typescript-eslint"
], ],
"rules": { "rules": {
"@typescript-eslint/explicit-member-accessibility": "off", "@typescript-eslint/explicit-member-accessibility": "off",
@ -26,7 +25,10 @@
"enforceBuildableLibDependency": true, "enforceBuildableLibDependency": true,
"allow": [], "allow": [],
"depConstraints": [ "depConstraints": [
{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] } {
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
] ]
} }
] ]

View File

@ -1 +1,22 @@
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*"], "rules": {} } {
"extends": "../../.eslintrc.json",
"ignorePatterns": ["!**/*"],
"rules": {},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["apps/blueprint-image-function/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

View File

@ -2,6 +2,13 @@
"extends": ["plugin:cypress/recommended", "../../.eslintrc.json"], "extends": ["plugin:cypress/recommended", "../../.eslintrc.json"],
"ignorePatterns": ["!**/*"], "ignorePatterns": ["!**/*"],
"overrides": [ "overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["apps/blueprints-e2e/tsconfig.*?.json"]
},
"rules": {}
},
{ {
"files": ["src/plugins/index.js"], "files": ["src/plugins/index.js"],
"rules": { "rules": {

View File

@ -8,7 +8,11 @@
"jest": true, "jest": true,
"node": true "node": true
}, },
"settings": { "react": { "version": "detect" } }, "settings": {
"react": {
"version": "detect"
}
},
"plugins": ["import", "jsx-a11y", "react", "react-hooks"], "plugins": ["import", "jsx-a11y", "react", "react-hooks"],
"rules": { "rules": {
"array-callback-return": "warn", "array-callback-return": "warn",
@ -36,7 +40,13 @@
"no-invalid-regexp": "warn", "no-invalid-regexp": "warn",
"no-iterator": "warn", "no-iterator": "warn",
"no-label-var": "warn", "no-label-var": "warn",
"no-labels": ["warn", { "allowLoop": true, "allowSwitch": false }], "no-labels": [
"warn",
{
"allowLoop": true,
"allowSwitch": false
}
],
"no-lone-blocks": "warn", "no-lone-blocks": "warn",
"no-loop-func": "warn", "no-loop-func": "warn",
"no-mixed-operators": [ "no-mixed-operators": [
@ -175,12 +185,23 @@
"import/first": "error", "import/first": "error",
"import/no-amd": "error", "import/no-amd": "error",
"import/no-webpack-loader-syntax": "error", "import/no-webpack-loader-syntax": "error",
"react/forbid-foreign-prop-types": ["warn", { "allowInPropTypes": true }], "react/forbid-foreign-prop-types": [
"warn",
{
"allowInPropTypes": true
}
],
"react/jsx-no-comment-textnodes": "warn", "react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-duplicate-props": "warn", "react/jsx-no-duplicate-props": "warn",
"react/jsx-no-target-blank": "warn", "react/jsx-no-target-blank": "warn",
"react/jsx-no-undef": "error", "react/jsx-no-undef": "error",
"react/jsx-pascal-case": ["warn", { "allowAllCaps": true, "ignore": [] }], "react/jsx-pascal-case": [
"warn",
{
"allowAllCaps": true,
"ignore": []
}
],
"react/jsx-uses-react": "warn", "react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn", "react/jsx-uses-vars": "warn",
"react/no-danger-with-children": "warn", "react/no-danger-with-children": "warn",
@ -235,7 +256,13 @@
} }
], ],
"no-unused-vars": "off", "no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none", "ignoreRestSiblings": true }], "@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "none",
"ignoreRestSiblings": true
}
],
"no-useless-constructor": "off", "no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "warn", "@typescript-eslint/no-useless-constructor": "warn",
"@typescript-eslint/no-unused-expressions": [ "@typescript-eslint/no-unused-expressions": [
@ -246,5 +273,22 @@
"allowTaggedTemplates": true "allowTaggedTemplates": true
} }
] ]
} },
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["apps/blueprints/tsconfig(.*)?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
} }

View File

@ -1 +1,22 @@
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*"], "rules": {} } {
"extends": "../../.eslintrc.json",
"ignorePatterns": ["!**/*"],
"rules": {},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["apps/factorioprints-scraper/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

View File

@ -1 +1,22 @@
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*"], "rules": {} } {
"extends": "../../.eslintrc.json",
"ignorePatterns": ["!**/*"],
"rules": {},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["libs/common-utils/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

View File

@ -1 +1,22 @@
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*"], "rules": {} } {
"extends": "../../.eslintrc.json",
"ignorePatterns": ["!**/*"],
"rules": {},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["libs/database/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

View File

@ -1 +1,22 @@
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*"], "rules": {} } {
"extends": "../../.eslintrc.json",
"ignorePatterns": ["!**/*"],
"rules": {},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["libs/node-utils/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

View File

@ -1,5 +1,22 @@
{ {
"extends": ["../../.eslintrc.json"], "extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"], "ignorePatterns": ["!**/*"],
"rules": {} "rules": {},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["libs/types/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
} }

View File

@ -1 +1,22 @@
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*"], "rules": {} } {
"extends": "../../.eslintrc.json",
"ignorePatterns": ["!**/*"],
"rules": {},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["libs/web-utils/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

28
migrations.json Normal file
View File

@ -0,0 +1,28 @@
{
"migrations": [
{
"cli": "nx",
"version": "11.5.0-beta.0",
"description": "Update project .eslintrc.json files to always use project level tsconfigs",
"factory": "./src/migrations/update-11-5-0/always-use-project-level-tsconfigs-with-eslint",
"package": "@nrwl/linter",
"name": "always-use-project-level-tsconfigs-with-eslint"
},
{
"cli": "nx",
"version": "11.5.0-beta.1",
"description": "Update .babelrc to use '@nrwl/next/babel' instead of 'next/babel'",
"factory": "./src/migrations/update-11-5-0/update-babel-config",
"package": "@nrwl/next",
"name": "update-babel-config-11.5.0"
},
{
"cli": "nx",
"version": "11.5.0-beta.1",
"description": "Remove tsconfig.app.json",
"factory": "./src/migrations/update-11-5-0/remove-tsconfig-app-11-5-0",
"package": "@nrwl/next",
"name": "remove-tsconfig-app-11.5.0"
}
]
}

View File

@ -66,15 +66,15 @@
"@babel/preset-env": "7.12.16", "@babel/preset-env": "7.12.16",
"@babel/preset-react": "7.12.13", "@babel/preset-react": "7.12.13",
"@babel/preset-typescript": "7.12.16", "@babel/preset-typescript": "7.12.16",
"@nrwl/cli": "11.2.12", "@nrwl/cli": "11.5.1",
"@nrwl/cypress": "11.2.12", "@nrwl/cypress": "11.5.1",
"@nrwl/eslint-plugin-nx": "11.2.12", "@nrwl/eslint-plugin-nx": "11.5.1",
"@nrwl/jest": "11.5.1", "@nrwl/jest": "11.5.1",
"@nrwl/next": "11.2.12", "@nrwl/next": "11.5.1",
"@nrwl/node": "11.2.12", "@nrwl/node": "11.5.1",
"@nrwl/react": "11.2.12", "@nrwl/react": "11.5.1",
"@nrwl/web": "11.2.12", "@nrwl/web": "11.5.1",
"@nrwl/workspace": "11.2.12", "@nrwl/workspace": "11.5.1",
"@testing-library/react": "11.2.5", "@testing-library/react": "11.2.5",
"@types/bbcode-to-react": "0.2.0", "@types/bbcode-to-react": "0.2.0",
"@types/bcrypt": "3.0.0", "@types/bcrypt": "3.0.0",
@ -95,7 +95,7 @@
"cypress": "6.4.0", "cypress": "6.4.0",
"dotenv": "8.2.0", "dotenv": "8.2.0",
"eslint": "7.20.0", "eslint": "7.20.0",
"eslint-config-prettier": "7.2.0", "eslint-config-prettier": "8.1.0",
"eslint-plugin-cypress": "2.11.2", "eslint-plugin-cypress": "2.11.2",
"eslint-plugin-import": "2.22.1", "eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.4.1", "eslint-plugin-jsx-a11y": "6.4.1",

682
yarn.lock

File diff suppressed because it is too large Load Diff