@abinnovision/prettier-config 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/bin/{sync-editorconfig.js → sync-editorconfig.cjs} +3 -3
- package/dist/index.js +14 -5
- package/package.json +10 -17
- package/dist/index.d.mts +0 -5
- package/dist/index.mjs +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.1](https://github.com/abinnovision/js-commons/compare/prettier-config-v2.1.0...prettier-config-v2.1.1) (2024-10-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* always require trailingComma ([#327](https://github.com/abinnovision/js-commons/issues/327)) ([ebf8d17](https://github.com/abinnovision/js-commons/commit/ebf8d1701054f7add9604227b722e40d6a426334))
|
|
9
|
+
* **prettier-config:** add override for pnpm-lock.yaml ([#326](https://github.com/abinnovision/js-commons/issues/326)) ([a7d6fcb](https://github.com/abinnovision/js-commons/commit/a7d6fcb27e62c52bdf27e6d88b3e338a78b03e65))
|
|
10
|
+
|
|
11
|
+
## [2.1.0](https://github.com/abinnovision/js-commons/compare/prettier-config-v2.0.0...prettier-config-v2.1.0) (2024-08-05)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* migrate to esm ([#278](https://github.com/abinnovision/js-commons/issues/278)) ([fed850d](https://github.com/abinnovision/js-commons/commit/fed850d979f7ba83fae75adadcfd0024f2acd242))
|
|
17
|
+
|
|
3
18
|
## [2.0.0](https://github.com/abinnovision/js-commons/compare/prettier-config-v1.1.0...prettier-config-v2.0.0) (2023-11-03)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -24,9 +24,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
));
|
|
25
25
|
|
|
26
26
|
// src/bin/sync-editorconfig.ts
|
|
27
|
-
var fs = __toESM(require("fs/promises"));
|
|
28
|
-
var path = __toESM(require("path"));
|
|
29
|
-
var process = __toESM(require("process"));
|
|
27
|
+
var fs = __toESM(require("fs/promises"), 1);
|
|
28
|
+
var path = __toESM(require("path"), 1);
|
|
29
|
+
var process = __toESM(require("process"), 1);
|
|
30
30
|
var DISABLE_ENV_VAR = "DISABLE_SYNC_EDITORCONFIG";
|
|
31
31
|
(async function() {
|
|
32
32
|
if ([true, "true"].includes(process.env[DISABLE_ENV_VAR] ?? false)) {
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
// src/index.ts
|
|
4
2
|
var config = {
|
|
5
3
|
printWidth: 80,
|
|
6
4
|
useTabs: true,
|
|
7
5
|
tabWidth: 2,
|
|
8
6
|
semi: true,
|
|
9
|
-
trailingComma: "
|
|
7
|
+
trailingComma: "all",
|
|
10
8
|
bracketSpacing: true,
|
|
11
9
|
arrowParens: "always",
|
|
12
|
-
endOfLine: "lf"
|
|
10
|
+
endOfLine: "lf",
|
|
11
|
+
overrides: [
|
|
12
|
+
{
|
|
13
|
+
files: ["pnpm-lock.yaml"],
|
|
14
|
+
options: {
|
|
15
|
+
requirePragma: true
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
};
|
|
20
|
+
var src_default = config;
|
|
21
|
+
export {
|
|
22
|
+
src_default as default
|
|
13
23
|
};
|
|
14
|
-
module.exports = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abinnovision/prettier-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"repository": {
|
|
5
6
|
"url": "https://github.com/abinnovision/js-commons"
|
|
6
7
|
},
|
|
@@ -10,25 +11,17 @@
|
|
|
10
11
|
"email": "info@abinnovision.com",
|
|
11
12
|
"url": "https://abinnovision.com/"
|
|
12
13
|
},
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"import": "./dist/index.mjs",
|
|
16
|
-
"require": "./dist/index.js",
|
|
17
|
-
"types": "./dist/index.d.ts"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
14
|
"main": "./dist/index.js",
|
|
21
|
-
"module": "./dist/index.mjs",
|
|
22
15
|
"types": "./dist/index.d.ts",
|
|
23
16
|
"bin": {
|
|
24
|
-
"sync-editorconfig": "./dist/bin/sync-editorconfig.
|
|
17
|
+
"sync-editorconfig": "./dist/bin/sync-editorconfig.cjs"
|
|
25
18
|
},
|
|
26
19
|
"files": [
|
|
27
20
|
"dist/",
|
|
28
21
|
"assets/"
|
|
29
22
|
],
|
|
30
23
|
"scripts": {
|
|
31
|
-
"build": "tsup src/index.ts --dts --format esm
|
|
24
|
+
"build": "tsup src/index.ts --dts --format esm --clean && tsup src/bin/* --format cjs --clean -d dist/bin",
|
|
32
25
|
"format:check": "prettier --check 'src/**/*.{ts,js}' '**/*.{md,json,json5,yaml,yml}'",
|
|
33
26
|
"format:fix": "prettier --write 'src/**/*.{ts,js}' '**/*.{md,json,json5,yaml,yml}'",
|
|
34
27
|
"lint:check": "eslint 'src/**/*.{ts,js}'",
|
|
@@ -45,13 +38,13 @@
|
|
|
45
38
|
},
|
|
46
39
|
"prettier": "./dist/index.js",
|
|
47
40
|
"devDependencies": {
|
|
48
|
-
"@types/node": "^20.
|
|
41
|
+
"@types/node": "^20.11.30",
|
|
49
42
|
"@types/prettier": "^3.0.0",
|
|
50
|
-
"eslint": "^
|
|
51
|
-
"globals": "^
|
|
52
|
-
"prettier": "^3.
|
|
53
|
-
"tsup": "^
|
|
54
|
-
"typescript": "^5.
|
|
43
|
+
"eslint": "^9.9.1",
|
|
44
|
+
"globals": "^15.10.0",
|
|
45
|
+
"prettier": "^3.3.3",
|
|
46
|
+
"tsup": "^8.3.0",
|
|
47
|
+
"typescript": "^5.6.2"
|
|
55
48
|
},
|
|
56
49
|
"peerDependencies": {
|
|
57
50
|
"prettier": "^2.4.0 || ^3.0.0"
|
package/dist/index.d.mts
DELETED
package/dist/index.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
// src/index.ts
|
|
7
|
-
var require_src = __commonJS({
|
|
8
|
-
"src/index.ts"(exports, module) {
|
|
9
|
-
var config = {
|
|
10
|
-
printWidth: 80,
|
|
11
|
-
useTabs: true,
|
|
12
|
-
tabWidth: 2,
|
|
13
|
-
semi: true,
|
|
14
|
-
trailingComma: "es5",
|
|
15
|
-
bracketSpacing: true,
|
|
16
|
-
arrowParens: "always",
|
|
17
|
-
endOfLine: "lf"
|
|
18
|
-
};
|
|
19
|
-
module.exports = config;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export default require_src();
|