Skip to content

Commit f810c74

Browse files
committedJun 9, 2023
fix: found issues
1 parent 59db8c4 commit f810c74

File tree

7 files changed

+49
-58
lines changed

7 files changed

+49
-58
lines changed
 

‎.ncurc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"upgrade": true,
3-
"reject": ["read-pkg", "find-up", "@types/node"]
3+
"reject": ["read-pkg", "read-pkg-up", "find-up", "@types/node"]
44
}

‎package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"@semrel-extra/npm": "^1.2.2",
8888
"@tsconfig/node18": "^2.0.1",
8989
"@tsconfig/strictest": "^2.0.1",
90-
"@vitest/coverage-v8": "^0.32.0",
90+
"@vitest/coverage-c8": "^0.32.0",
9191
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
9292
"c8": "^7.14.0",
9393
"commitizen": "^4.3.0",
@@ -105,9 +105,7 @@
105105
"stylelint": "^15.7.0",
106106
"textlint": "^13.3.2",
107107
"typescript": "5.1.3",
108-
"vitest": "^0.32.0"
109-
},
110-
"devDependencies": {
108+
"vitest": "^0.32.0",
111109
"@types/node": "16.18.34",
112110
"cross-env": "^7.0.3",
113111
"eslint": "^8.42.0",

‎packages/babel-preset/index.cjs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { declare } = require("@babel/helper-plugin-utils");
22
const isModuleAvailable = require("./lib/is-module-available.cjs");
33
const missing = require("./lib/missing.cjs");
44

5-
// eslint-disable-next-line radar/cognitive-complexity
5+
// eslint-disable-next-line sonarjs/cognitive-complexity
66
module.exports = declare((api, options) => {
77
// see docs about api at https://babeljs.io/docs/en/config-files#apicache
88
api.assertVersion("^7.13");
@@ -37,29 +37,29 @@ module.exports = declare((api, options) => {
3737
const install = [];
3838

3939
if (typescript) {
40-
// eslint-disable-next-line radar/no-duplicate-string
40+
// eslint-disable-next-line sonarjs/no-duplicate-string
4141
if (!isModuleAvailable("@babel/preset-typescript")) {
4242
install.push("@babel/preset-typescript");
4343
}
4444

45-
// eslint-disable-next-line radar/no-duplicate-string
45+
// eslint-disable-next-line sonarjs/no-duplicate-string
4646
if (!isModuleAvailable("@babel/plugin-transform-typescript")) {
4747
install.push("@babel/plugin-transform-typescript");
4848
}
4949

50-
// eslint-disable-next-line radar/no-duplicate-string
50+
// eslint-disable-next-line sonarjs/no-duplicate-string
5151
if (!isModuleAvailable("@babel/plugin-syntax-jsx")) {
5252
install.push("@babel/plugin-syntax-jsx");
5353
}
5454
}
5555

5656
if (react) {
57-
// eslint-disable-next-line radar/no-duplicate-string
57+
// eslint-disable-next-line sonarjs/no-duplicate-string
5858
if (!isModuleAvailable("@babel/preset-react")) {
5959
install.push("@babel/preset-react");
6060
}
6161

62-
// eslint-disable-next-line radar/no-duplicate-string
62+
// eslint-disable-next-line sonarjs/no-duplicate-string
6363
if (removePropertyTypes && !isModuleAvailable("babel-plugin-transform-react-remove-prop-types")) {
6464
install.push("babel-plugin-transform-react-remove-prop-types");
6565
}

‎packages/babel-preset/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@
8484
"@anolilab/semantic-release-preset": "2.2.1",
8585
"@babel/cli": "^7.22.5",
8686
"@babel/core": "^7.22.5",
87-
"@babel/plugin-syntax-jsx": "7.21.4",
88-
"@babel/plugin-transform-typescript": "7.21.3",
89-
"@babel/preset-react": "7.18.6",
90-
"@babel/preset-typescript": "7.21.5",
87+
"@babel/plugin-syntax-jsx": "7.22.5",
88+
"@babel/plugin-transform-typescript": "7.22.5",
89+
"@babel/preset-react": "7.22.5",
90+
"@babel/preset-typescript": "7.22.5",
9191
"babel-plugin-polyfill-corejs3": "^0.8.1",
9292
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
9393
"core-js": "^3.30.2"

‎packages/eslint-config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"jsonc-eslint-parser": "^2.3.0",
8585
"lodash.has": "^4.5.2",
8686
"object.assign": "^4.1.4",
87-
"read-pkg-up": "9.1.0",
87+
"read-pkg-up": "7.0.1",
8888
"semver": "^7.5.1",
8989
"toml-eslint-parser": "^0.6.0",
9090
"yaml-eslint-parser": "^1.2.2"

‎packages/eslint-config/rules/plugins/typescript.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ module.exports = {
256256
{
257257
...baseImportsRules["import/no-extraneous-dependencies"][1],
258258
devDependencies: baseImportsRules["import/no-extraneous-dependencies"][1].devDependencies.map(
259-
(glob) => glob.replace(/\bjs(x?)\b/g, "ts$1"),
259+
(glob) => glob.replaceAll(/\bjs(x?)\b/g, "ts$1"),
260260
),
261261
},
262262
],

‎pnpm-lock.yaml

+34-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.