Skip to content

Commit e09d211

Browse files
authored
Merge pull request #113 from RightCapitalHQ/feature/sort-package-json
feat(prettier-config): add packagejson plugin
2 parents 46ab769 + c26d02b commit e09d211

19 files changed

+229
-110
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "style: sort package.json files",
4+
"packageName": "@rightcapital/eslint-config-base",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none"
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "style: sort package.json files",
4+
"packageName": "@rightcapital/eslint-config-javascript",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none"
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "style: sort package.json files",
4+
"packageName": "@rightcapital/eslint-config-typescript",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none"
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "style: sort package.json files",
4+
"packageName": "@rightcapital/eslint-config-typescript-react",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none"
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "style: sort package.json files",
4+
"packageName": "@rightcapital/eslint-plugin",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none"
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "major",
3+
"comment": "feat(prettier-config): add packagejson plugin",
4+
"packageName": "@rightcapital/prettier-config",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "style: sort package.json files",
4+
"packageName": "@rightcapital/tsconfig",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none"
7+
}

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,29 @@
11
{
22
"name": "@rightcapital/frontend-style-guide",
33
"version": "5.0.0",
4-
"description": "RightCapital's frontend style guide.",
5-
"type": "commonjs",
64
"private": true,
7-
"license": "MIT",
5+
"description": "RightCapital's frontend style guide.",
86
"repository": {
97
"type": "git",
108
"url": "https://github.com/RightCapitalHQ/frontend-style-guide.git"
119
},
12-
"packageManager": "[email protected]",
13-
"engines": {
14-
"node": ">=16.0.0"
15-
},
10+
"license": "MIT",
11+
"type": "commonjs",
1612
"scripts": {
1713
"build": "pnpm run --aggregate-output --filter './packages/*' build",
14+
"change": "beachball change --no-commit",
15+
"check": "beachball check",
1816
"commit": "cz",
19-
"lint": "concurrently pnpm:lint:*",
20-
"lint:eslint": "eslint --max-warnings=0 .",
21-
"lint:prettier": "prettier -c .",
2217
"fix": "pnpm run fix:eslint && pnpm run fix:prettier",
2318
"fix:eslint": "eslint --fix .",
2419
"fix:prettier": "prettier --write --list-different .",
25-
"test": "pnpm --aggregate-output --filter './specs/*' test",
26-
"test:update-snapshots": "pnpm --aggregate-output --filter './specs/*' test -- -u",
2720
"preinstall": "npx only-allow pnpm",
21+
"lint": "concurrently pnpm:lint:*",
22+
"lint:eslint": "eslint --max-warnings=0 .",
23+
"lint:prettier": "prettier -c .",
2824
"prepare": "./scripts/prepare.sh",
29-
"change": "beachball change --no-commit",
30-
"check": "beachball check"
25+
"test": "pnpm --aggregate-output --filter './specs/*' test",
26+
"test:update-snapshots": "pnpm --aggregate-output --filter './specs/*' test -- -u"
3127
},
3228
"config": {
3329
"commitizen": {
@@ -53,5 +49,9 @@
5349
"tsx": "4.7.2",
5450
"typescript": "5.4.5",
5551
"zx": "7.2.3"
52+
},
53+
"packageManager": "[email protected]",
54+
"engines": {
55+
"node": ">=16.0.0"
5656
}
5757
}

packages/eslint-config-base/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22
"name": "@rightcapital/eslint-config-base",
33
"version": "22.0.1",
44
"description": "Base ESLint Config for RightCapital",
5-
"license": "MIT",
6-
"type": "commonjs",
7-
"main": "./index.js",
8-
"exports": "./index.js",
9-
"packageManager": "[email protected]",
10-
"engines": {
11-
"node": ">=16.0.0"
12-
},
135
"repository": {
146
"type": "git",
157
"url": "https://github.com/RightCapitalHQ/frontend-style-guide.git",
168
"directory": "packages/eslint-config-base"
179
},
18-
"publishConfig": {
19-
"registry": "https://registry.npmjs.org"
20-
},
10+
"license": "MIT",
11+
"type": "commonjs",
12+
"exports": "./index.js",
13+
"main": "./index.js",
2114
"files": [
2215
"index.js"
2316
],
2417
"scripts": {},
25-
"devDependencies": {},
2618
"dependencies": {
2719
"@rushstack/eslint-patch": "1.10.2",
2820
"eslint-config-airbnb-base": "15.0.0",
2921
"eslint-import-resolver-typescript": "3.6.1",
3022
"eslint-plugin-import": "npm:[email protected]"
3123
},
24+
"devDependencies": {},
3225
"peerDependencies": {
3326
"eslint": "^8.23.1"
27+
},
28+
"packageManager": "[email protected]",
29+
"engines": {
30+
"node": ">=16.0.0"
31+
},
32+
"publishConfig": {
33+
"registry": "https://registry.npmjs.org"
3434
}
3535
}

packages/eslint-config-javascript/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22
"name": "@rightcapital/eslint-config-javascript",
33
"version": "22.0.1",
44
"description": "Plain JavaScript ESLint Config for RightCapital",
5-
"license": "MIT",
6-
"type": "commonjs",
7-
"main": "./index.js",
8-
"exports": "./index.js",
9-
"packageManager": "[email protected]",
10-
"engines": {
11-
"node": ">=16.0.0"
12-
},
135
"repository": {
146
"type": "git",
157
"url": "https://github.com/RightCapitalHQ/frontend-style-guide.git",
168
"directory": "packages/eslint-config-javascript"
179
},
18-
"publishConfig": {
19-
"registry": "https://registry.npmjs.org"
20-
},
10+
"license": "MIT",
11+
"type": "commonjs",
12+
"exports": "./index.js",
13+
"main": "./index.js",
2114
"files": [
2215
"index.js"
2316
],
2417
"scripts": {},
25-
"devDependencies": {},
2618
"dependencies": {
2719
"@rightcapital/eslint-config-base": "workspace:*",
2820
"@rushstack/eslint-patch": "1.10.2",
2921
"eslint-config-prettier": "9.1.0"
3022
},
23+
"devDependencies": {},
3124
"peerDependencies": {
3225
"eslint": "^8.23.1"
26+
},
27+
"packageManager": "[email protected]",
28+
"engines": {
29+
"node": ">=16.0.0"
30+
},
31+
"publishConfig": {
32+
"registry": "https://registry.npmjs.org"
3333
}
3434
}

packages/eslint-config-typescript-react/package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22
"name": "@rightcapital/eslint-config-typescript-react",
33
"version": "22.0.1",
44
"description": "TypeScript + React ESLint Config for RightCapital",
5-
"license": "MIT",
6-
"type": "commonjs",
7-
"main": "./index.js",
8-
"exports": "./index.js",
9-
"packageManager": "[email protected]",
10-
"engines": {
11-
"node": ">=14.0.0"
12-
},
135
"repository": {
146
"type": "git",
157
"url": "https://github.com/RightCapitalHQ/frontend-style-guide.git",
168
"directory": "packages/eslint-config-typescript-react"
179
},
18-
"publishConfig": {
19-
"registry": "https://registry.npmjs.org"
20-
},
10+
"license": "MIT",
11+
"type": "commonjs",
12+
"exports": "./index.js",
13+
"main": "./index.js",
2114
"files": [
2215
"index.js"
2316
],
2417
"scripts": {},
25-
"devDependencies": {},
2618
"dependencies": {
2719
"@rightcapital/eslint-config-typescript": "workspace:*",
2820
"@rightcapital/eslint-plugin": "workspace:*",
29-
"eslint-config-prettier": "9.1.0",
3021
"@rushstack/eslint-patch": "1.10.2",
3122
"eslint-config-airbnb": "19.0.4",
23+
"eslint-config-prettier": "9.1.0",
3224
"eslint-plugin-jsx-a11y": "6.7.1",
33-
"eslint-plugin-react-hooks": "4.6.0",
34-
"eslint-plugin-react": "7.34.1"
25+
"eslint-plugin-react": "7.34.1",
26+
"eslint-plugin-react-hooks": "4.6.0"
3527
},
28+
"devDependencies": {},
3629
"peerDependencies": {
3730
"eslint": "^8.23.1",
3831
"typescript": "^5.0.0"
32+
},
33+
"packageManager": "[email protected]",
34+
"engines": {
35+
"node": ">=14.0.0"
36+
},
37+
"publishConfig": {
38+
"registry": "https://registry.npmjs.org"
3939
}
4040
}

packages/eslint-config-typescript/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@
22
"name": "@rightcapital/eslint-config-typescript",
33
"version": "22.0.1",
44
"description": "Plain TypeScript ESLint Config for RightCapital",
5-
"license": "MIT",
6-
"type": "commonjs",
7-
"main": "./index.js",
8-
"exports": "./index.js",
9-
"packageManager": "[email protected]",
10-
"engines": {
11-
"node": ">=16.0.0"
12-
},
135
"repository": {
146
"type": "git",
157
"url": "https://github.com/RightCapitalHQ/frontend-style-guide.git",
168
"directory": "packages/eslint-config-typescript"
179
},
18-
"publishConfig": {
19-
"registry": "https://registry.npmjs.org"
20-
},
10+
"license": "MIT",
11+
"type": "commonjs",
12+
"exports": "./index.js",
13+
"main": "./index.js",
2114
"files": [
2215
"index.js"
2316
],
2417
"scripts": {},
25-
"devDependencies": {},
2618
"dependencies": {
2719
"@rightcapital/eslint-config-base": "workspace:*",
2820
"@rushstack/eslint-patch": "1.10.2",
2921
"@typescript-eslint/eslint-plugin": "7.6.0",
3022
"@typescript-eslint/parser": "7.6.0",
3123
"eslint-config-prettier": "9.1.0"
3224
},
25+
"devDependencies": {},
3326
"peerDependencies": {
3427
"eslint": "^8.23.1",
3528
"typescript": "^5.0.0"
29+
},
30+
"packageManager": "[email protected]",
31+
"engines": {
32+
"node": ">=16.0.0"
33+
},
34+
"publishConfig": {
35+
"registry": "https://registry.npmjs.org"
3636
}
3737
}

packages/eslint-plugin/package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
"name": "@rightcapital/eslint-plugin",
33
"version": "22.0.1",
44
"description": "ESLint plugin for RightCapital",
5-
"license": "MIT",
6-
"main": "./lib/index.js",
7-
"exports": "./lib/index.js",
8-
"packageManager": "[email protected]",
9-
"engines": {
10-
"node": ">=16.0.0"
11-
},
125
"keywords": [
136
"eslint",
147
"eslintplugin",
@@ -19,18 +12,15 @@
1912
"url": "https://github.com/RightCapitalHQ/frontend-style-guide.git",
2013
"directory": "packages/eslint-config"
2114
},
22-
"publishConfig": {
23-
"registry": "https://registry.npmjs.org"
24-
},
15+
"license": "MIT",
16+
"exports": "./lib/index.js",
17+
"main": "./lib/index.js",
2518
"scripts": {
2619
"build": "tsc --build --clean && tsc --build",
20+
"prepack": "pnpm run build",
2721
"test": "vitest",
2822
"test:ui": "vitest --ui",
29-
"update:eslint-docs": "pnpm run build && eslint-doc-generator && prettier --write src/rules/**/*.md",
30-
"prepack": "pnpm run build"
31-
},
32-
"peerDependencies": {
33-
"eslint": ">=8.0.0"
23+
"update:eslint-docs": "pnpm run build && eslint-doc-generator && prettier --write src/rules/**/*.md"
3424
},
3525
"devDependencies": {
3626
"@rightcapital/tsconfig": "workspace:*",
@@ -41,5 +31,15 @@
4131
"eslint-doc-generator": "1.7.0",
4232
"typescript": "5.4.5",
4333
"vitest": "1.5.0"
34+
},
35+
"peerDependencies": {
36+
"eslint": ">=8.0.0"
37+
},
38+
"packageManager": "[email protected]",
39+
"engines": {
40+
"node": ">=16.0.0"
41+
},
42+
"publishConfig": {
43+
"registry": "https://registry.npmjs.org"
4444
}
4545
}

packages/prettier-config/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const config = {
66
singleQuote: true,
77
tabWidth: 2,
88
trailingComma: 'all',
9+
plugins: ['prettier-plugin-packagejson'],
910
};
1011

1112
module.exports = config;

0 commit comments

Comments
 (0)