-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: bump SonarJS and related dependencies (#113)
- Loading branch information
Showing
20 changed files
with
5,788 additions
and
4,512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"eslint-plugin-sonar": minor | ||
--- | ||
|
||
feat!: bump SonarJS and related dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"node": "16", | ||
"node": "18", | ||
"installCommand": "codesandbox:install", | ||
"packages": [ | ||
"eslint-plugin-sonar" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ coverage | |
lib | ||
node_modules | ||
/SonarJS | ||
/test.* | ||
test/fixtures | ||
CHANGELOG.md | ||
!/.github | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.type-coverage | ||
node_modules | ||
/eslint-plugin-sonar/lib | ||
/test.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "SonarJS"] | ||
path = SonarJS | ||
url = https://github.com/SonarSource/SonarJS.git | ||
url = https://github.com/un-ts/SonarJS.git |
Submodule SonarJS
updated
10664 files
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * as configs from './configs' | ||
export * from 'sonarjs/rules' | ||
export * as configs from './configs.js' | ||
export * from 'sonarjs/rules/index.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "eslint-sonarjs", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"repository": "git+https://github.com/un-ts/eslint-plugin-sonar.git", | ||
"author": "JounQin <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -9,70 +10,54 @@ | |
"SonarJS", | ||
"eslint-plugin-sonar" | ||
], | ||
"packageManager": "[email protected].19", | ||
"packageManager": "[email protected].21", | ||
"scripts": { | ||
"build": "run-s build:lib build:readme", | ||
"build:lib": "rollup -c", | ||
"build:readme": "ts-node scripts/readme", | ||
"build:readme": "tsx scripts/readme", | ||
"clean": "rimraf eslint-plugin-sonar/lib", | ||
"codesandbox:install": "git submodule update --init && yarn", | ||
"lint": "run-p lint:*", | ||
"lint:es": "eslint . --cache --max-warnings 10 -f friendly", | ||
"lint:tsc": "tsc --noEmit", | ||
"prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0", | ||
"prerelease": "ts-node scripts/private", | ||
"release": "changeset publish", | ||
"test": "jest", | ||
"prepare": "patch-package && simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0", | ||
"release": "yarn build && tsx scripts/private &&& changeset publish", | ||
"typecov": "type-coverage" | ||
}, | ||
"devDependencies": { | ||
"@1stg/common-config": "^8.1.0", | ||
"@changesets/changelog-github": "^0.4.8", | ||
"@changesets/cli": "^2.26.1", | ||
"@rollup/plugin-alias": "^5.0.0", | ||
"rollup": "^3.25.1", | ||
"rollup-plugin-ts": "^3.2.0", | ||
"ts-node": "^10.9.1", | ||
"type-coverage": "^2.26.0", | ||
"@1stg/common-config": "^9.0.1", | ||
"@changesets/changelog-github": "^0.5.0", | ||
"@changesets/cli": "^2.27.1", | ||
"@rollup/plugin-alias": "^5.1.0", | ||
"@types/prettier": "^2.7.3", | ||
"patch-package": "^8.0.0", | ||
"rollup": "^4.9.1", | ||
"rollup-plugin-ts": "^3.4.5", | ||
"tsx": "^4.7.0", | ||
"type-coverage": "^2.27.1", | ||
"yarn-deduplicate": "^6.0.2" | ||
}, | ||
"resolutions": { | ||
"@typescript-eslint/eslint-plugin": "^5.60.0", | ||
"@typescript-eslint/experimental-utils": "^5.60.0", | ||
"@typescript-eslint/parser": "^5.60.0", | ||
"@typescript-eslint/scope-manager": "^5.60.0", | ||
"@typescript-eslint/type-utils": "^5.60.0", | ||
"@typescript-eslint/utils": "^5.60.0", | ||
"eslint": "^8.43.0", | ||
"@typescript-eslint/eslint-plugin": "^6.16.0", | ||
"@typescript-eslint/experimental-utils": "^5.62.0", | ||
"@typescript-eslint/parser": "^6.16.0", | ||
"@typescript-eslint/scope-manager": "^6.16.0", | ||
"@typescript-eslint/type-utils": "^6.16.0", | ||
"@typescript-eslint/utils": "^6.16.0", | ||
"eslint": "^8.56.0", | ||
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1", | ||
"eslint-plugin-sonar": "link:eslint-plugin-sonar", | ||
"eslint-plugin-sonarjs": "^0.19.0", | ||
"prettier": "^2.8.8" | ||
}, | ||
"jest": { | ||
"preset": "ts-jest", | ||
"roots": [ | ||
"<rootDir>/eslint-plugin-sonar" | ||
], | ||
"moduleNameMapper": { | ||
"^eslint-plugin-sonar$": "<rootDir>/eslint-plugin-sonar/src", | ||
"^errors$": "<rootDir>/SonarJS/src/errors", | ||
"^helpers$": "<rootDir>/SonarJS/src/helpers", | ||
"^helpers/(.*)$": "<rootDir>/SonarJS/src/helpers/$1", | ||
"^linting/(.*)$": "<rootDir>/SonarJS/src/linting/$1", | ||
"^parsing/(.*)$": "<rootDir>/SonarJS/src/parsing/$1", | ||
"^routing$": "<rootDir>/SonarJS/src/routing", | ||
"^routing/(.*)$": "<rootDir>/SonarJS/src/routing/$1", | ||
"^services/(.*)$": "<rootDir>/SonarJS/src/services/$1", | ||
"^sonarjs/(.*)$": "<rootDir>/SonarJS/src/linting/eslint/$1" | ||
} | ||
"eslint-plugin-sonarjs": "^0.23.0", | ||
"prettier": "^2.8.8", | ||
"tmp": "^0.2.1" | ||
}, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"cache": true, | ||
"detail": true, | ||
"ignoreCatch": true, | ||
"ignoreFiles": [ | ||
"SonarJS/**/*.ts" | ||
"SonarJS/**/*" | ||
], | ||
"ignoreNonNullAssertion": true, | ||
"strict": true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/@1stg/eslint-config/overrides.js b/node_modules/@1stg/eslint-config/overrides.js | ||
index 3c54ff2..f0ab45c 100644 | ||
--- a/node_modules/@1stg/eslint-config/overrides.js | ||
+++ b/node_modules/@1stg/eslint-config/overrides.js | ||
@@ -172,7 +172,7 @@ const tsBase = { | ||
'@typescript-eslint/prefer-for-of': 2, | ||
'@typescript-eslint/prefer-function-type': 2, | ||
'@typescript-eslint/prefer-ts-expect-error': 2, | ||
- '@typescript-eslint/sort-type-union-intersection-members': 2, | ||
+ '@typescript-eslint/sort-type-union-intersection-members': 0, | ||
'@typescript-eslint/triple-slash-reference': [ | ||
2, | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
{ | ||
"extends": "@1stg/tsconfig/node", | ||
"extends": "@1stg/tsconfig/nodenext", | ||
"compilerOptions": { | ||
"paths": { | ||
"eslint-plugin-sonar": ["./eslint-plugin-sonar/src"], | ||
"errors": ["./SonarJS/src/errors"], | ||
"helpers": ["./SonarJS/src/helpers"], | ||
"helpers/*": ["./SonarJS/src/helpers/*"], | ||
"linting/*": ["./SonarJS/src/linting/*"], | ||
"parsing/*": ["./SonarJS/src/parsing/*"], | ||
"routing": ["./SonarJS/src/routing"], | ||
"routing/*": ["./SonarJS/src/routing/*"], | ||
"services/*": ["./SonarJS/src/services/*"], | ||
"sonarjs/*": ["./SonarJS/src/linting/eslint/*"] | ||
"@sonar/jsts": ["./SonarJS/packages/jsts/src/index.ts"], | ||
"@sonar/shared": ["./SonarJS/packages/shared/src/index.ts"], | ||
"jsts/src/monitoring": [ | ||
"./SonarJS/packages/jsts/src/monitoring/index.ts" | ||
], | ||
"sonarjs/*": ["./SonarJS/packages/jsts/src/*"] | ||
}, | ||
"target": "ES2018", | ||
"useUnknownInCatchVariables": false | ||
}, | ||
"include": [ | ||
"eslint-plugin-sonar", | ||
"scripts", | ||
"SonarJS/src", | ||
"SonarJS/packages/jsts/src/rules", | ||
"SonarJS/packages/shared/src", | ||
"SonarJS/typings" | ||
], | ||
"exclude": [ | ||
"eslint-plugin-sonar/test/fixtures", | ||
"SonarJS/src/linting/stylelint", | ||
"SonarJS/packages/**/*.fixture.*", | ||
"SonarJS/packages/**/*.test.*", | ||
"SonarJS/packages/**/fixtures", | ||
"SonarJS/packages/**/tests", | ||
"SonarJS/packages/jsts/src/rules/tools", | ||
"node_modules" | ||
], | ||
"ts-node": { | ||
"transpileOnly": true | ||
} | ||
] | ||
} |
Oops, something went wrong.