Skip to content

Commit

Permalink
fix: add missing dep functional-red-black-tree (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored Sep 20, 2022
1 parent b0d4319 commit cccb2b7
Show file tree
Hide file tree
Showing 11 changed files with 730 additions and 737 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-singers-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-sonar": patch
---

fix: add missing dep `functional-red-black-tree`
2 changes: 1 addition & 1 deletion .remarkrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plugins": [
"@1stg/remark-config"
"@1stg/preset"
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ npm install -D eslint-plugin-sonar
| `sonar-jsx-no-leaked-render` | <https://sonarsource.github.io/rspec/#/rspec/S6439/javascript> |
| `sonar-max-lines` | <https://sonarsource.github.io/rspec/#/rspec/S104/javascript> |
| `sonar-max-lines-per-function` | <https://sonarsource.github.io/rspec/#/rspec/S138/javascript> |
| `sonar-max-params` | <https://sonarsource.github.io/rspec/#/rspec/S107/javascript> |
| `sonar-no-control-regex` | <https://sonarsource.github.io/rspec/#/rspec/S6324/javascript> |
| `sonar-no-dupe-keys` | <https://sonarsource.github.io/rspec/#/rspec/S1534/javascript> |
| `sonar-no-fallthrough` | <https://sonarsource.github.io/rspec/#/rspec/S128/javascript> |
Expand Down
2 changes: 1 addition & 1 deletion SonarJS
Submodule SonarJS updated 197 files
1 change: 1 addition & 0 deletions eslint-plugin-sonar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ npm install -D eslint-plugin-sonar
| `sonar-jsx-no-leaked-render` | <https://sonarsource.github.io/rspec/#/rspec/S6439/javascript> |
| `sonar-max-lines` | <https://sonarsource.github.io/rspec/#/rspec/S104/javascript> |
| `sonar-max-lines-per-function` | <https://sonarsource.github.io/rspec/#/rspec/S138/javascript> |
| `sonar-max-params` | <https://sonarsource.github.io/rspec/#/rspec/S107/javascript> |
| `sonar-no-control-regex` | <https://sonarsource.github.io/rspec/#/rspec/S6324/javascript> |
| `sonar-no-dupe-keys` | <https://sonarsource.github.io/rspec/#/rspec/S1534/javascript> |
| `sonar-no-fallthrough` | <https://sonarsource.github.io/rspec/#/rspec/S128/javascript> |
Expand Down
34 changes: 2 additions & 32 deletions eslint-plugin-sonar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,6 @@
"repository": "git+https://github.com/un-ts/eslint-plugin-sonar.git",
"homepage": "https://github.com/un-ts/eslint-plugin-sonar/tree/main/eslint-plugin-sonar",
"author": "JounQin <[email protected]>",
"donate": {
"recipients": [
{
"name": "unts",
"platform": "opencollective",
"address": "https://opencollective.com/unts",
"weight": 60
},
{
"name": "rxts",
"platform": "opencollective",
"address": "https://opencollective.com/rxts",
"weight": 20
},
{
"name": "1stG",
"email": "[email protected]",
"weight": 20,
"platforms": [
{
"platform": "opencollective",
"address": "https://opencollective.com/1stG"
},
{
"platform": "patreon",
"address": "https://www.patreon.com/1stG"
}
]
}
]
},
"funding": "https://opencollective.com/unts",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -63,12 +32,13 @@
"typescript": "^4.0.0"
},
"dependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/eslint-parser": "^7.19.1",
"builtin-modules": "^3.2.0",
"bytes": "^3.1.2",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-sonarjs": "^0.13.0",
"functional-red-black-tree": "^1.0.1",
"regexpp": "^3.2.0",
"scslre": "^0.1.6"
},
Expand Down
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,32 @@
"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",
"typecov": "type-coverage"
},
"devDependencies": {
"@1stg/common-config": "^6.1.4",
"@1stg/common-config": "^7.1.1",
"@changesets/changelog-github": "^0.4.6",
"@changesets/cli": "^2.24.3",
"@changesets/cli": "^2.24.4",
"@rollup/plugin-alias": "^3.1.9",
"rollup": "^2.78.0",
"rollup-plugin-ts": "^3.0.2",
"ts-jest": "^28.0.7",
"ts-node": "^10.9.1",
"type-coverage": "^2.22.0",
"yarn-deduplicate": "^5.0.0"
"yarn-deduplicate": "^6.0.0"
},
"resolutions": {
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.33.0",
"@typescript-eslint/experimental-utils": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"@typescript-eslint/scope-manager": "^5.33.0",
"@typescript-eslint/type-utils": "^5.33.0",
"@typescript-eslint/utils": "^5.33.0",
"eslint": "^8.22.0",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.38.0",
"@typescript-eslint/experimental-utils": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"@typescript-eslint/scope-manager": "^5.38.0",
"@typescript-eslint/type-utils": "^5.38.0",
"@typescript-eslint/utils": "^5.38.0",
"eslint": "^8.23.1",
"eslint-plugin-sonar": "link:eslint-plugin-sonar",
"eslint-plugin-sonarjs": "^0.15.0",
"prettier": "^2.7.1"
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const configs = /** @type {const} */ (['cjs', 'esm']).map(format => ({
chunk.code = removeUnusedDeps(
chunk.code,
format,
'errors',
'process',
'vue-eslint-parser',
'@typescript-eslint/eslint-plugin',
Expand Down
11 changes: 11 additions & 0 deletions scripts/private.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import fs from 'node:fs'

const pkgPath = 'SonarJS/eslint-bridge/package.json'

const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8')) as {
private?: boolean
}

pkg.private = true

fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2))
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"paths": {
"eslint-plugin-sonar": ["./eslint-plugin-sonar/src"],
"eslint-plugin-sonar/*": ["./eslint-plugin-sonar/src/*"],
"errors": ["./SonarJS/eslint-bridge/src/errors"],
"helpers": ["./SonarJS/eslint-bridge/src/helpers"],
"linting/*": ["./SonarJS/eslint-bridge/src/linting/*"],
"parsing/*": ["./SonarJS/eslint-bridge/src/parsing/*"],
"routing": ["./SonarJS/eslint-bridge/src/routing"],
"routing/*": ["./SonarJS/eslint-bridge/src/routing/*"],
"services/*": ["./SonarJS/eslint-bridge/src/services/*"],
"sonarjs/*": ["./SonarJS/eslint-bridge/src/linting/eslint/*"]
},
Expand Down
Loading

0 comments on commit cccb2b7

Please sign in to comment.