lint-suite 0.0.8 → 0.0.9

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/index.cjs CHANGED
@@ -31,24 +31,32 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
33
  base: () => base,
34
+ javascript: () => javascript,
34
35
  typescript: () => typescript
35
36
  });
36
37
  module.exports = __toCommonJS(src_exports);
37
38
 
38
- // src/lib/base.js
39
+ // src/lib/base.ts
39
40
  var import_eslint_plugin = __toESM(require("@nx/eslint-plugin"), 1);
40
41
  var base = {
41
42
  ...import_eslint_plugin.default.configs["flat/base"]
42
43
  };
43
44
 
44
- // src/lib/typescript.js
45
+ // src/lib/typescript.ts
45
46
  var import_eslint_plugin2 = __toESM(require("@nx/eslint-plugin"), 1);
46
47
  var typescript = {
47
48
  ...import_eslint_plugin2.default.configs["flat/typescript"]
48
49
  };
50
+
51
+ // src/lib/javascript.ts
52
+ var import_eslint_plugin3 = __toESM(require("@nx/eslint-plugin"), 1);
53
+ var javascript = {
54
+ ...import_eslint_plugin3.default.configs["flat/javascript"]
55
+ };
49
56
  // Annotate the CommonJS export names for ESM import in node:
50
57
  0 && (module.exports = {
51
58
  base,
59
+ javascript,
52
60
  typescript
53
61
  });
54
62
  //# sourceMappingURL=index.cjs.map
package/index.cjs.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
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"]
3
+ "sources": ["../src/index.ts", "../src/lib/base.ts", "../src/lib/typescript.ts", "../src/lib/javascript.ts"],
4
+ "sourcesContent": ["export { base } from './lib/base.js';\r\nexport { typescript } from './lib/typescript.js';\r\nexport { javascript } from './lib/javascript.js';\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const base = {\r\n ...nx.configs['flat/base'],\r\n};", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const typescript = {\r\n ...nx.configs['flat/typescript'],\r\n};\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const javascript = {\r\n ...nx.configs['flat/javascript'],\r\n};\r\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;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;;;ACJA,IAAAC,wBAAe;AAER,IAAM,aAAa;AAAA,EACxB,GAAG,sBAAAC,QAAG,QAAQ,iBAAiB;AACjC;",
6
+ "names": ["nx", "import_eslint_plugin", "nx", "import_eslint_plugin", "nx"]
7
7
  }
package/index.js CHANGED
@@ -1,16 +1,23 @@
1
- // src/lib/base.js
1
+ // src/lib/base.ts
2
2
  import nx from "@nx/eslint-plugin";
3
3
  var base = {
4
4
  ...nx.configs["flat/base"]
5
5
  };
6
6
 
7
- // src/lib/typescript.js
7
+ // src/lib/typescript.ts
8
8
  import nx2 from "@nx/eslint-plugin";
9
9
  var typescript = {
10
10
  ...nx2.configs["flat/typescript"]
11
11
  };
12
+
13
+ // src/lib/javascript.ts
14
+ import nx3 from "@nx/eslint-plugin";
15
+ var javascript = {
16
+ ...nx3.configs["flat/javascript"]
17
+ };
12
18
  export {
13
19
  base,
20
+ javascript,
14
21
  typescript
15
22
  };
16
23
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
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"]
3
+ "sources": ["../src/lib/base.ts", "../src/lib/typescript.ts", "../src/lib/javascript.ts"],
4
+ "sourcesContent": ["import nx from '@nx/eslint-plugin';\r\n\r\nexport const base = {\r\n ...nx.configs['flat/base'],\r\n};", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const typescript = {\r\n ...nx.configs['flat/typescript'],\r\n};\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const javascript = {\r\n ...nx.configs['flat/javascript'],\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;;;ACJA,OAAOC,SAAQ;AAER,IAAM,aAAa;AAAA,EACxB,GAAGA,IAAG,QAAQ,iBAAiB;AACjC;",
6
+ "names": ["nx", "nx"]
7
7
  }
package/lib/base.ts ADDED
@@ -0,0 +1,5 @@
1
+ import nx from '@nx/eslint-plugin';
2
+
3
+ export const base = {
4
+ ...nx.configs['flat/base'],
5
+ };
@@ -0,0 +1,5 @@
1
+ import nx from '@nx/eslint-plugin';
2
+
3
+ export const javascript = {
4
+ ...nx.configs['flat/javascript'],
5
+ };
@@ -0,0 +1,5 @@
1
+ import nx from '@nx/eslint-plugin';
2
+
3
+ export const typescript = {
4
+ ...nx.configs['flat/typescript'],
5
+ };
package/package.json CHANGED
@@ -1,126 +1,131 @@
1
- {
2
- "name": "lint-suite",
3
- "version": "0.0.8",
4
- "description": "Reusable ESLint configurations",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/F0rty-Tw0/lint-suite.git",
8
- "directory": "./"
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": "./index.cjs",
24
- "module": "./index.js",
25
- "types": "./index.d.ts",
26
- "scripts": {
27
- "build": "nx build lint-suite",
28
- "patch": "npm version patch",
29
- "minor": "npm version minor",
30
- "major": "npm version major",
31
- "publish": "npm publish --access public"
32
- },
33
- "exports": {
34
- "./package.json": "./package.json",
35
- ".": {
36
- "types": "./index.d.ts",
37
- "import": "./index.js",
38
- "require": "./index.cjs"
39
- }
40
- },
41
- "files": [
42
- "./**",
43
- "!**/*.tsbuildinfo"
44
- ],
45
- "publishConfig": {
46
- "access": "public"
47
- },
48
- "dependencies": {},
49
- "peerDependencies": {
50
- "@nx/eslint-plugin": "^20.6.4"
51
- },
52
- "devDependencies": {
53
- "@eslint/js": "^9.8.0",
54
- "@nx/esbuild": "^20.6.4",
55
- "@nx/eslint": "20.6.4",
56
- "@nx/js": "20.6.4",
57
- "@swc-node/register": "~1.9.1",
58
- "@swc/core": "~1.5.7",
59
- "@swc/helpers": "~0.5.11",
60
- "@types/node": "18.16.9",
61
- "esbuild": "^0.19.2",
62
- "eslint": "^9.8.0",
63
- "eslint-config-prettier": "^9.0.0",
64
- "jsonc-eslint-parser": "^2.1.0",
65
- "nx": "20.6.4",
66
- "prettier": "^2.6.2",
67
- "tslib": "^2.3.0",
68
- "typescript": "~5.7.2",
69
- "typescript-eslint": "^8.19.0",
70
- "verdaccio": "^6.0.5"
71
- },
72
- "nx": {
73
- "name": "lint-suite",
74
- "$schema": "node_modules/nx/schemas/project-schema.json",
75
- "sourceRoot": "src",
76
- "projectType": "library",
77
- "targets": {
78
- "local-registry": {
79
- "executor": "@nx/js:verdaccio",
80
- "options": {
81
- "port": 4873,
82
- "config": ".verdaccio/config.yml",
83
- "storage": "tmp/local-registry/storage"
84
- }
85
- },
86
- "build": {
87
- "executor": "@nx/esbuild:esbuild",
88
- "outputs": [
89
- "{options.outputPath}"
90
- ],
91
- "defaultConfiguration": "production",
92
- "options": {
93
- "main": "src/index.ts",
94
- "outputPath": "./dist",
95
- "outputFileName": "index.js",
96
- "tsConfig": "tsconfig.lib.json",
97
- "platform": "node",
98
- "format": [
99
- "esm",
100
- "cjs"
101
- ],
102
- "assets": [
103
- {
104
- "input": ".",
105
- "glob": "README.md",
106
- "output": "."
107
- },
108
- {
109
- "input": ".",
110
- "glob": "LICENSE",
111
- "output": "."
112
- }
113
- ],
114
- "minify": false,
115
- "sourcemap": true,
116
- "dependenciesFieldType": "peerDependencies",
117
- "bundle": true,
118
- "external": [
119
- "@nx/eslint-plugin"
120
- ],
121
- "thirdParty": false
122
- }
123
- }
124
- }
125
- }
126
- }
1
+ {
2
+ "name": "lint-suite",
3
+ "version": "0.0.9",
4
+ "description": "Reusable ESLint configurations",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/F0rty-Tw0/lint-suite.git",
8
+ "directory": "./"
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": "./index.cjs",
24
+ "module": "./index.js",
25
+ "types": "./index.d.ts",
26
+ "scripts": {
27
+ "build": "nx build lint-suite",
28
+ "patch": "npm version patch",
29
+ "minor": "npm version minor",
30
+ "major": "npm version major",
31
+ "publish": "npm publish --access public"
32
+ },
33
+ "exports": {
34
+ "./package.json": "./package.json",
35
+ ".": {
36
+ "types": "./index.d.ts",
37
+ "import": "./index.js",
38
+ "require": "./index.cjs"
39
+ }
40
+ },
41
+ "files": [
42
+ "./**",
43
+ "!**/*.tsbuildinfo"
44
+ ],
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "dependencies": {},
49
+ "peerDependencies": {
50
+ "@nx/eslint-plugin": "^20.6.4"
51
+ },
52
+ "devDependencies": {
53
+ "@eslint/js": "^9.8.0",
54
+ "@nx/esbuild": "^20.6.4",
55
+ "@nx/eslint": "20.6.4",
56
+ "@nx/js": "20.6.4",
57
+ "@swc-node/register": "~1.9.1",
58
+ "@swc/core": "~1.5.7",
59
+ "@swc/helpers": "~0.5.11",
60
+ "@types/node": "18.16.9",
61
+ "esbuild": "^0.19.2",
62
+ "eslint": "^9.8.0",
63
+ "eslint-config-prettier": "^9.0.0",
64
+ "jsonc-eslint-parser": "^2.1.0",
65
+ "nx": "20.6.4",
66
+ "prettier": "^2.6.2",
67
+ "tslib": "^2.3.0",
68
+ "typescript": "~5.7.2",
69
+ "typescript-eslint": "^8.19.0",
70
+ "verdaccio": "^6.0.5"
71
+ },
72
+ "nx": {
73
+ "name": "lint-suite",
74
+ "$schema": "node_modules/nx/schemas/project-schema.json",
75
+ "sourceRoot": "src",
76
+ "projectType": "library",
77
+ "targets": {
78
+ "local-registry": {
79
+ "executor": "@nx/js:verdaccio",
80
+ "options": {
81
+ "port": 4873,
82
+ "config": ".verdaccio/config.yml",
83
+ "storage": "tmp/local-registry/storage"
84
+ }
85
+ },
86
+ "build": {
87
+ "executor": "@nx/esbuild:esbuild",
88
+ "outputs": [
89
+ "{options.outputPath}"
90
+ ],
91
+ "defaultConfiguration": "production",
92
+ "options": {
93
+ "main": "src/index.ts",
94
+ "outputPath": "./dist",
95
+ "outputFileName": "index.js",
96
+ "tsConfig": "tsconfig.lib.json",
97
+ "platform": "node",
98
+ "format": [
99
+ "esm",
100
+ "cjs"
101
+ ],
102
+ "assets": [
103
+ {
104
+ "input": ".",
105
+ "glob": "README.md",
106
+ "output": "."
107
+ },
108
+ {
109
+ "input": ".",
110
+ "glob": "LICENSE",
111
+ "output": "."
112
+ },
113
+ {
114
+ "input": "src/lib",
115
+ "glob": "**/*.ts",
116
+ "output": "lib"
117
+ }
118
+ ],
119
+ "minify": false,
120
+ "sourcemap": true,
121
+ "dependenciesFieldType": "peerDependencies",
122
+ "bundle": true,
123
+ "external": [
124
+ "@nx/eslint-plugin"
125
+ ],
126
+ "thirdParty": false
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
@@ -1,3 +1,4 @@
1
1
  export { base } from './lib/base.js';
2
2
  export { typescript } from './lib/typescript.js';
3
+ export { javascript } from './lib/javascript.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,4 +1,4 @@
1
- export const base: {
1
+ export declare const base: {
2
2
  [x: number]: {
3
3
  plugins: {
4
4
  readonly "@nx": any;
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/lib/base.js"],"names":[],"mappings":"AAEA;;;;;;;;;;yDAG2xG,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAD/0G"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/lib/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;yDAE8wG,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAp1G,CAAC"}
@@ -1,4 +1,4 @@
1
- export const javascript: {
1
+ export declare const javascript: {
2
2
  [x: number]: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config;
3
3
  length: number;
4
4
  toString(): string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../src/lib/javascript.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;yDAGwvG,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADp0G,CAAC"}
@@ -1,4 +1,4 @@
1
- export const typescript: {
1
+ export declare const typescript: {
2
2
  [x: number]: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config;
3
3
  length: number;
4
4
  toString(): string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/lib/typescript.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;yDAGwvG,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADp0G,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../src/lib/javascript.js"],"names":[],"mappings":"AAEA;;;;;yDAG+wG,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADn0G"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/lib/typescript.js"],"names":[],"mappings":"AAEA;;;;;yDAG+wG,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADn0G"}