lint-suite 0.0.1 → 0.0.2
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/dist/lint-suite/LICENSE +21 -0
- package/dist/lint-suite/README.md +3 -0
- package/dist/lint-suite/index.cjs +54 -0
- package/dist/lint-suite/index.cjs.map +7 -0
- package/dist/lint-suite/index.js +16 -0
- package/dist/lint-suite/index.js.map +7 -0
- package/dist/lint-suite/package.json +134 -0
- package/dist/lint-suite/src/lib/base.js +5 -0
- package/dist/lint-suite/src/lib/javascript.js +5 -0
- package/dist/lint-suite/src/lib/typescript.js +5 -0
- package/package.json +3 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Art
|
|
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.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# lint-suite
|
|
2
|
+
|
|
3
|
+
lint-suite is your all-in-one solution for code quality and consistency. It bundles pre-configured tools like ESLint, Stylelint, Prettier, and Commitlint, streamlining setup for JavaScript, TypeScript, and CSS/SCSS projects. Maintain clean, readable code effortlessly with customizable, industry-standard configurations.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// ../../src/index.ts
|
|
31
|
+
var src_exports = {};
|
|
32
|
+
__export(src_exports, {
|
|
33
|
+
base: () => base,
|
|
34
|
+
typescript: () => typescript
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
|
+
|
|
38
|
+
// ../../src/lib/base.js
|
|
39
|
+
var import_eslint_plugin = __toESM(require("@nx/eslint-plugin"), 1);
|
|
40
|
+
var base = {
|
|
41
|
+
...import_eslint_plugin.default.configs["flat/base"]
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// ../../src/lib/typescript.js
|
|
45
|
+
var import_eslint_plugin2 = __toESM(require("@nx/eslint-plugin"), 1);
|
|
46
|
+
var typescript = {
|
|
47
|
+
...import_eslint_plugin2.default.configs["flat/typescript"]
|
|
48
|
+
};
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
base,
|
|
52
|
+
typescript
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/index.ts", "../../../../src/lib/base.js", "../../../../src/lib/typescript.js"],
|
|
4
|
+
"sourcesContent": ["export { base } from './lib/base.js';\r\nexport { typescript } from './lib/typescript.js';\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const base = {\r\n ...nx.configs['flat/base'],\r\n};\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const typescript = {\r\n ...nx.configs['flat/typescript'],\r\n};\r\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAAe;AAER,IAAM,OAAO;AAAA,EAClB,GAAG,qBAAAA,QAAG,QAAQ,WAAW;AAC3B;;;ACJA,IAAAC,wBAAe;AAER,IAAM,aAAa;AAAA,EACxB,GAAG,sBAAAC,QAAG,QAAQ,iBAAiB;AACjC;",
|
|
6
|
+
"names": ["nx", "import_eslint_plugin", "nx"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ../../src/lib/base.js
|
|
2
|
+
import nx from "@nx/eslint-plugin";
|
|
3
|
+
var base = {
|
|
4
|
+
...nx.configs["flat/base"]
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// ../../src/lib/typescript.js
|
|
8
|
+
import nx2 from "@nx/eslint-plugin";
|
|
9
|
+
var typescript = {
|
|
10
|
+
...nx2.configs["flat/typescript"]
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
base,
|
|
14
|
+
typescript
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/lib/base.js", "../../../../src/lib/typescript.js"],
|
|
4
|
+
"sourcesContent": ["import nx from '@nx/eslint-plugin';\r\n\r\nexport const base = {\r\n ...nx.configs['flat/base'],\r\n};\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const typescript = {\r\n ...nx.configs['flat/typescript'],\r\n};\r\n"],
|
|
5
|
+
"mappings": ";AAAA,OAAO,QAAQ;AAER,IAAM,OAAO;AAAA,EAClB,GAAG,GAAG,QAAQ,WAAW;AAC3B;;;ACJA,OAAOA,SAAQ;AAER,IAAM,aAAa;AAAA,EACxB,GAAGA,IAAG,QAAQ,iBAAiB;AACjC;",
|
|
6
|
+
"names": ["nx"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lint-suite",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Reusable ESLint configurations",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/F0rty-Tw0/lint-suite.git",
|
|
8
|
+
"directory": "packages/lint-suite"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"eslint",
|
|
12
|
+
"eslintconfig",
|
|
13
|
+
"lint",
|
|
14
|
+
"typescript",
|
|
15
|
+
"jest",
|
|
16
|
+
"angular",
|
|
17
|
+
"storybook",
|
|
18
|
+
"json"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Artiom Tofan artiomtofancv@gmail.com",
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "./dist/index.cjs",
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "nx build lint-suite",
|
|
28
|
+
"prepublishOnly": "npm run build"
|
|
29
|
+
},
|
|
30
|
+
"exports": {
|
|
31
|
+
"./package.json": "./package.json",
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"import": "./dist/index.js",
|
|
35
|
+
"require": "./dist/index.cjs",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./base": {
|
|
39
|
+
"types": "./dist/lib/base.d.ts",
|
|
40
|
+
"import": "./dist/lib/base.js",
|
|
41
|
+
"require": "./dist/lib/base.cjs",
|
|
42
|
+
"default": "./dist/lib/base.js"
|
|
43
|
+
},
|
|
44
|
+
"./typescript": {
|
|
45
|
+
"types": "./dist/lib/typescript.d.ts",
|
|
46
|
+
"import": "./dist/lib/typescript.js",
|
|
47
|
+
"require": "./dist/lib/typescript.cjs",
|
|
48
|
+
"default": "./dist/lib/typescript.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"dist",
|
|
53
|
+
"README.md",
|
|
54
|
+
"LICENSE",
|
|
55
|
+
"!**/*.tsbuildinfo"
|
|
56
|
+
],
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@nx/eslint-plugin": "20.6.4"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@eslint/js": "^9.8.0",
|
|
65
|
+
"@nx/esbuild": "^20.6.4",
|
|
66
|
+
"@nx/eslint": "20.6.4",
|
|
67
|
+
"@nx/js": "20.6.4",
|
|
68
|
+
"@swc-node/register": "~1.9.1",
|
|
69
|
+
"@swc/core": "~1.5.7",
|
|
70
|
+
"@swc/helpers": "~0.5.11",
|
|
71
|
+
"@types/node": "18.16.9",
|
|
72
|
+
"esbuild": "^0.19.2",
|
|
73
|
+
"eslint": "^9.8.0",
|
|
74
|
+
"eslint-config-prettier": "^9.0.0",
|
|
75
|
+
"jsonc-eslint-parser": "^2.1.0",
|
|
76
|
+
"nx": "20.6.4",
|
|
77
|
+
"prettier": "^2.6.2",
|
|
78
|
+
"tslib": "^2.3.0",
|
|
79
|
+
"typescript": "~5.7.2",
|
|
80
|
+
"typescript-eslint": "^8.19.0",
|
|
81
|
+
"verdaccio": "^6.0.5"
|
|
82
|
+
},
|
|
83
|
+
"nx": {
|
|
84
|
+
"name": "lint-suite",
|
|
85
|
+
"$schema": "node_modules/nx/schemas/project-schema.json",
|
|
86
|
+
"sourceRoot": "src",
|
|
87
|
+
"projectType": "library",
|
|
88
|
+
"targets": {
|
|
89
|
+
"local-registry": {
|
|
90
|
+
"executor": "@nx/js:verdaccio",
|
|
91
|
+
"options": {
|
|
92
|
+
"port": 4873,
|
|
93
|
+
"config": ".verdaccio/config.yml",
|
|
94
|
+
"storage": "tmp/local-registry/storage"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"build": {
|
|
98
|
+
"executor": "@nx/esbuild:esbuild",
|
|
99
|
+
"outputs": [
|
|
100
|
+
"{options.outputPath}"
|
|
101
|
+
],
|
|
102
|
+
"defaultConfiguration": "production",
|
|
103
|
+
"options": {
|
|
104
|
+
"main": "src/index.ts",
|
|
105
|
+
"outputPath": "dist/lint-suite",
|
|
106
|
+
"outputFileName": "index.js",
|
|
107
|
+
"tsConfig": "tsconfig.lib.json",
|
|
108
|
+
"platform": "node",
|
|
109
|
+
"format": [
|
|
110
|
+
"esm",
|
|
111
|
+
"cjs"
|
|
112
|
+
],
|
|
113
|
+
"assets": [
|
|
114
|
+
"README.md",
|
|
115
|
+
"LICENSE",
|
|
116
|
+
{
|
|
117
|
+
"input": "src/lib",
|
|
118
|
+
"glob": "**/*.js",
|
|
119
|
+
"output": "src/lib"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"minify": false,
|
|
123
|
+
"sourcemap": true,
|
|
124
|
+
"dependenciesFieldType": "peerDependencies",
|
|
125
|
+
"bundle": true,
|
|
126
|
+
"external": [
|
|
127
|
+
"@nx/eslint-plugin"
|
|
128
|
+
],
|
|
129
|
+
"thirdParty": false
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lint-suite",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Reusable ESLint configurations",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/F0rty-Tw0/lint-suite.git",
|
|
7
|
+
"url": "git+https://github.com/F0rty-Tw0/lint-suite.git",
|
|
8
8
|
"directory": "packages/lint-suite"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
{
|
|
117
117
|
"input": "src/lib",
|
|
118
118
|
"glob": "**/*.js",
|
|
119
|
-
"output": "lib"
|
|
119
|
+
"output": "src/lib"
|
|
120
120
|
}
|
|
121
121
|
],
|
|
122
122
|
"minify": false,
|