@abinnovision/prettier-config 2.1.2 → 2.1.4
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 +14 -0
- package/README.md +9 -9
- package/package.json +15 -12
- package/dist/bin/sync-editorconfig.cjs +0 -39
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.4](https://github.com/abinnovision/js-commons/compare/prettier-config-v2.1.3...prettier-config-v2.1.4) (2025-11-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* migrate eslint configs to use defineConfig ([#541](https://github.com/abinnovision/js-commons/issues/541)) ([eb24dca](https://github.com/abinnovision/js-commons/commit/eb24dca423b594711b727da84f4c4026f781c9e4))
|
|
9
|
+
|
|
10
|
+
## [2.1.3](https://github.com/abinnovision/js-commons/compare/prettier-config-v2.1.2...prettier-config-v2.1.3) (2024-10-16)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* use spaces for markdown files ([#349](https://github.com/abinnovision/js-commons/issues/349)) ([eeb8b33](https://github.com/abinnovision/js-commons/commit/eeb8b335916602b55ca02cfdea352bc296fa7ffb))
|
|
16
|
+
|
|
3
17
|
## [2.1.2](https://github.com/abinnovision/js-commons/compare/prettier-config-v2.1.1...prettier-config-v2.1.2) (2024-10-10)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@ yarn add --dev @abinnovision/prettier-config
|
|
|
12
12
|
|
|
13
13
|
## EditorConfig
|
|
14
14
|
|
|
15
|
-
The EditorConfig is a small file in the root directory of your project
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
The EditorConfig is a small file in the root directory of your project called
|
|
16
|
+
`.editorconfig`. It defines various code style options for the project. This
|
|
17
|
+
packages comes with an opinionated version of this file.
|
|
18
18
|
|
|
19
19
|
To synchronize the `.editorconfig` file from this package use the following:
|
|
20
20
|
|
|
@@ -27,11 +27,11 @@ with the one defined in this project.
|
|
|
27
27
|
|
|
28
28
|
```json5
|
|
29
29
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
// ...
|
|
31
|
+
scripts: {
|
|
32
|
+
// ...
|
|
33
|
+
postinstall: "sync-editorconfig",
|
|
34
|
+
},
|
|
35
|
+
// ...
|
|
36
36
|
}
|
|
37
37
|
```
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abinnovision/prettier-config",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"npm": true,
|
|
6
|
+
"ghpr": true,
|
|
7
|
+
"npmAccess": "public"
|
|
8
|
+
},
|
|
4
9
|
"type": "module",
|
|
5
10
|
"repository": {
|
|
6
11
|
"url": "https://github.com/abinnovision/js-commons"
|
|
7
12
|
},
|
|
8
13
|
"license": "Apache-2.0",
|
|
9
14
|
"author": {
|
|
10
|
-
"name": "
|
|
11
|
-
"email": "info@
|
|
12
|
-
"url": "https://
|
|
15
|
+
"name": "abi group GmbH",
|
|
16
|
+
"email": "info@abigroup.io",
|
|
17
|
+
"url": "https://abigroup.io/"
|
|
13
18
|
},
|
|
14
19
|
"main": "./dist/index.js",
|
|
15
20
|
"types": "./dist/index.d.ts",
|
|
@@ -38,16 +43,14 @@
|
|
|
38
43
|
},
|
|
39
44
|
"prettier": "./dist/index.js",
|
|
40
45
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^
|
|
46
|
+
"@types/node": "^22.12.0",
|
|
42
47
|
"@types/prettier": "^3.0.0",
|
|
43
|
-
"eslint": "^9.
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"typescript": "^5.6.2"
|
|
48
|
+
"eslint": "^9.39.1",
|
|
49
|
+
"prettier": "^3.4.2",
|
|
50
|
+
"tsup": "^8.3.6",
|
|
51
|
+
"typescript": "^5.9.3"
|
|
48
52
|
},
|
|
49
53
|
"peerDependencies": {
|
|
50
54
|
"prettier": "^2.4.0 || ^3.0.0"
|
|
51
|
-
}
|
|
52
|
-
"packageManager": "yarn@3.4.1"
|
|
55
|
+
}
|
|
53
56
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
|
-
mod
|
|
24
|
-
));
|
|
25
|
-
|
|
26
|
-
// src/bin/sync-editorconfig.ts
|
|
27
|
-
var fs = __toESM(require("fs/promises"), 1);
|
|
28
|
-
var path = __toESM(require("path"), 1);
|
|
29
|
-
var process = __toESM(require("process"), 1);
|
|
30
|
-
var DISABLE_ENV_VAR = "DISABLE_SYNC_EDITORCONFIG";
|
|
31
|
-
(async function() {
|
|
32
|
-
if ([true, "true"].includes(process.env[DISABLE_ENV_VAR] ?? false)) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
await fs.copyFile(
|
|
36
|
-
path.resolve(__dirname, "../../assets/.editorconfig"),
|
|
37
|
-
path.resolve(process.cwd(), ".editorconfig")
|
|
38
|
-
);
|
|
39
|
-
})();
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
var config = {
|
|
3
|
-
printWidth: 80,
|
|
4
|
-
useTabs: true,
|
|
5
|
-
tabWidth: 2,
|
|
6
|
-
semi: true,
|
|
7
|
-
trailingComma: "all",
|
|
8
|
-
bracketSpacing: true,
|
|
9
|
-
arrowParens: "always",
|
|
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
|
|
23
|
-
};
|