Skip to content

Commit 345ffc2

Browse files
committed
feat: new package
Signed-off-by: prisis <[email protected]>
1 parent 5d5e9e9 commit 345ffc2

File tree

11 files changed

+139
-0
lines changed

11 files changed

+139
-0
lines changed
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package-lock.json
2+
3+
src
4+
fixture
5+
__tests__
6+
__stories__
7+
.rpt2_cache
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@anolilab/semantic-release-preset/npm"
3+
}
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Anolilab
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/lint-staged-config/README.md

Whitespace-only changes.
+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"name": "@anolilab/lint-staged-config",
3+
"version": "1.0.0",
4+
"description": "Shareable Lint-Staged Config for any project.",
5+
"keywords": [
6+
"anolilab",
7+
"lint",
8+
"lint-staged",
9+
"config",
10+
"lint-staged-config"
11+
],
12+
"homepage": "https://anolilab.com/nodejs/packages/lint-staged-config",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/anolilab/javascript-style-guide.git",
16+
"directory": "packages/lint-staged-config"
17+
},
18+
"funding": [
19+
{
20+
"type": "github",
21+
"url": "https://github.com/sponsors/prisis"
22+
},
23+
{
24+
"type": "consulting",
25+
"url": "https://anolilab.com/support"
26+
}
27+
],
28+
"license": "MIT",
29+
"author": {
30+
"name": "Daniel Bannert",
31+
"email": "[email protected]"
32+
},
33+
"sideEffects": false,
34+
"exports": {
35+
".": {
36+
"types": "./dist/index.d.ts",
37+
"require": "./dist/index.js",
38+
"import": "./dist/index.mjs"
39+
},
40+
"./package.json": "./package.json"
41+
},
42+
"main": "dist/index.js",
43+
"module": "dist/index.mjs",
44+
"types": "dist/index.d.ts",
45+
"files": [
46+
"dist",
47+
"README.md",
48+
"CHANGELOG.md",
49+
"LICENSE.md"
50+
],
51+
"scripts": {
52+
"build": "cross-env NODE_ENV=development tsup",
53+
"build:prod": "cross-env NODE_ENV=production tsup",
54+
"clean": "rimraf node_modules dist",
55+
"postinstall": "node ./skip.js || node ./dist/postinstall.js"
56+
},
57+
"dependencies": {
58+
"@anolilab/package-json-utils": "1.5.0"
59+
},
60+
"devDependencies": {
61+
"@anolilab/semantic-release-preset": "4.0.1",
62+
"semantic-release": "^21.0.5",
63+
"lint-staged": "^13.2.2"
64+
},
65+
"peerDependencies": {
66+
"lint-staged": "^13.x"
67+
},
68+
"engines": {
69+
"node": ">=16"
70+
},
71+
"publishConfig": {
72+
"access": "public",
73+
"provenance": true
74+
},
75+
"sources": [
76+
"src/index.ts",
77+
"src/postinstall.ts"
78+
]
79+
}
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3+
"sourceRoot": "packages/lint-staged-config/src",
4+
"projectType": "library",
5+
"tags": ["lint-staged-config"],
6+
"implicitDependencies": ["package-json-utils"]
7+
}

packages/lint-staged-config/skip.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if (process.env.SKIP_BUILD) {
2+
// eslint-disable-next-line unicorn/no-process-exit
3+
process.exit(0);
4+
} else {
5+
// eslint-disable-next-line unicorn/no-process-exit
6+
process.exit(1);
7+
}

packages/lint-staged-config/src/index.ts

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./tsconfig.json"
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "Node 16",
4+
"extends": "../../tsconfig.json",
5+
"baseUrl": "./",
6+
"include": ["src/**/*", "*.d.ts"]
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { createConfig } from "../../tsup.config";
2+
3+
const config = createConfig();
4+
5+
export default config;

0 commit comments

Comments
 (0)