Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cahnory committed Feb 17, 2024
1 parent bdcd8db commit fcd7907
Show file tree
Hide file tree
Showing 6 changed files with 279 additions and 241 deletions.
77 changes: 38 additions & 39 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"env": {
"es2021": true
"es2021": true,
},
"extends": [
"eslint:recommended",
"plugin:perfectionist/recommended-natural",
"prettier"
"prettier",
],
"overrides": [
// TypeScript override
{
"extends": [
"plugin:import/typescript",
"plugin:@typescript-eslint/strict-type-checked"
"plugin:@typescript-eslint/strict-type-checked",
],
"files": ["**/*.ts?(x)"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true,
"EXPERIMENTAL_useProjectService": true
"EXPERIMENTAL_useProjectService": true,
},
"plugins": ["@typescript-eslint"],
"rules": {
Expand All @@ -42,15 +41,15 @@
// Disabled in favor of "@typescript-eslint/sort-type-constituents"
"perfectionist/sort-union-types": ["off"],
// Added option.markers allowing TypeScripe's triple-slash directives
"spaced-comment": ["error", "always", { "markers": ["/"] }]
}
"spaced-comment": ["error", "always", { "markers": ["/"] }],
},
},
// React override
{
"extends": [
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended"
"plugin:react-hooks/recommended",
],
"files": ["**/*.[tj]sx"],
"plugins": ["react", "react-hooks"],
Expand All @@ -64,7 +63,7 @@
"react/jsx-no-constructed-context-values": ["error"],
"react/jsx-no-leaked-render": [
"error",
{ "validStrategies": ["coerce", "ternary"] }
{ "validStrategies": ["coerce", "ternary"] },
],
"react/jsx-pascal-case": ["warn"],
"react/no-array-index-key": ["error"],
Expand All @@ -73,25 +72,25 @@
"react/no-unstable-nested-components": ["error"],
"react/self-closing-comp": ["warn"],
"react/void-dom-elements-no-children": ["error"],
"react-hooks/exhaustive-deps": "error"
"react-hooks/exhaustive-deps": "error",
},
"settings": {
"react": {
"version": "detect"
}
}
}
"version": "detect",
},
},
},
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
"sourceType": "module",
},
"plugins": ["perfectionist", "import", "unused-imports"],
"reportUnusedDisableDirectives": true,
"rules": {
"array-callback-return": [
"error",
{ "allowImplicit": true, "checkForEach": true }
{ "allowImplicit": true, "checkForEach": true },
],
"block-scoped-var": "error",
"camelcase": ["error"],
Expand All @@ -105,8 +104,8 @@
"func-name-matching": [
"error",
{
"considerPropertyDescriptor": true
}
"considerPropertyDescriptor": true,
},
],
"func-style": ["error", "expression"],
"grouped-accessor-pairs": ["error", "getBeforeSet"],
Expand All @@ -126,8 +125,8 @@
"error",
{
"devDependencies": false,
"optionalDependencies": false
}
"optionalDependencies": false,
},
],
"import/no-mutable-exports": "error",
"import/no-named-default": "error",
Expand All @@ -143,14 +142,14 @@
"logical-assignment-operators": [
"error",
"always",
{ "enforceForIfStatements": true }
{ "enforceForIfStatements": true },
],
"max-classes-per-file": [
"error",
{
"ignoreExpressions": true,
"max": 1
}
"max": 1,
},
],
"no-alert": "error",
"no-array-constructor": "error",
Expand Down Expand Up @@ -224,29 +223,29 @@
"perfectionist/sort-objects": [
"warn",
{
"partition-by-comment": "Part:**"
}
"partition-by-comment": "Part:**",
},
],
"perfectionist/sort-object-types": ["warn"],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": true
}
"allowNamedFunctions": true,
},
],
"prefer-const": [
"error",
{ "destructuring": "all", "ignoreReadBeforeAssign": true }
{ "destructuring": "all", "ignoreReadBeforeAssign": true },
],
"prefer-destructuring": [
"error",
{
"array": true,
"object": true
"object": true,
},
{
"enforceForRenamedProperties": false
}
"enforceForRenamedProperties": false,
},
],
"prefer-named-capture-group": "off",
"prefer-numeric-literals": "off",
Expand All @@ -271,21 +270,21 @@
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"vars": "all"
}
"vars": "all",
},
],
"vars-on-top": "error",
"yoda": ["error", "never"]
"yoda": ["error", "never"],
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": ["apps/*/tsconfig.json", "libs/*/tsconfig.json"]
}
}
}
"project": ["apps/*/tsconfig.json", "libs/*/tsconfig.json"],
},
},
},
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@
"**/apps/*/build/**": true,
"**/libs/*/build/**": true
},
"json.schemas": [
{
"fileMatch": [".eslintrc"],
"schema": {
// Since prettier apply trailingComma setting to jsonc, we have to tell vscode
// that this is not a problem with eslintrc files.
// see: https://github.com/prettier/prettier/issues/15956#issuecomment-1949882227
"allowTrailingCommas": true,
"$schema": "https://json.schemastore.org/eslintrc"
}
}
],
"material-icon-theme.files.associations": {
"*.css.ts": "Css",
"tsconfig.react.json": "Tsconfig"
Expand Down
2 changes: 1 addition & 1 deletion apps/sample-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"devDependencies": {
"concurrently": "^8.2.2",
"eslint": "^8.56.0",
"prettier": "^3.2.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.3.3"
}
Expand Down
2 changes: 1 addition & 1 deletion libs/sample-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"devDependencies": {
"concurrently": "^8.2.2",
"eslint": "^8.56.0",
"prettier": "^3.2.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.3.3"
}
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"test:unit": "turbo run test:unit --continue"
},
"devDependencies": {
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.4",
"@commitlint/cz-commitlint": "^18.4.4",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@commitlint/cz-commitlint": "^18.6.1",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"commitizen": "^4.3.0",
"concurrently": "^8.2.2",
"eslint": "^8.56.0",
Expand All @@ -49,9 +49,9 @@
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^3.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"only-allow": "^1.2.1",
"prettier": "^3.2.0",
"turbo": "^1.11.3"
"prettier": "^3.2.5",
"turbo": "^1.12.4"
}
}
Loading

0 comments on commit fcd7907

Please sign in to comment.