@slack-clone-org/core 1.0.4 → 2.0.0

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/package.json CHANGED
@@ -1,25 +1,40 @@
1
1
  {
2
2
  "name": "@slack-clone-org/core",
3
- "version": "1.0.4",
3
+ "version": "2.0.0",
4
4
  "description": "Core utilities and shared setup",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "license": "ISC",
10
- "keywords": [],
10
+ "keywords": [
11
+ "eslint",
12
+ "prettier",
13
+ "tsconfig",
14
+ "shared-config",
15
+ "nestjs",
16
+ "typescript"
17
+ ],
11
18
  "author": {
12
19
  "name": "Valeh",
13
20
  "email": "amirbekovaleh@gmail.com"
14
21
  },
15
22
  "peerDependencies": {
16
- "prettier": "^3.0.0"
23
+ "prettier": "^3.0.0",
24
+ "eslint": "^9.0.0",
25
+ "typescript": "^5.0.0"
17
26
  },
18
27
  "dependencies": {
19
- "@trivago/prettier-plugin-sort-imports": "^5.2.2"
28
+ "@eslint/js": "^9.0.0",
29
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
30
+ "eslint-plugin-prettier": "^5.0.0",
31
+ "globals": "^15.0.0",
32
+ "typescript-eslint": "^8.0.0"
20
33
  },
21
34
  "exports": {
22
- "./prettier": "./src/prettier.config.mjs"
35
+ "./prettier": "./src/prettier/prettier.config.mjs",
36
+ "./eslint": "./src/eslint/eslint.config.mjs",
37
+ "./tsconfig": "./src/tsconfig/tsconfig.base.json"
23
38
  },
24
39
  "homepage": "https://github.com/slack-clone-org/core#readme",
25
40
  "bugs": {
@@ -0,0 +1,49 @@
1
+ // @ts-check
2
+ import eslint from "@eslint/js";
3
+ import tseslint from "typescript-eslint";
4
+ import globals from "globals";
5
+ import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
6
+
7
+ export default tseslint.config(
8
+ {
9
+ ignores: ["dist", "node_modules", "*.config.js", "*.config.mjs"],
10
+ },
11
+
12
+ eslint.configs.recommended,
13
+
14
+ ...tseslint.configs.recommendedTypeChecked,
15
+
16
+ eslintPluginPrettierRecommended,
17
+
18
+ {
19
+ languageOptions: {
20
+ globals: {
21
+ ...globals.node,
22
+ ...globals.jest,
23
+ },
24
+ sourceType: "module",
25
+ parserOptions: {
26
+ projectService: true,
27
+ },
28
+ },
29
+ },
30
+
31
+ {
32
+ rules: {
33
+ /* TypeScript */
34
+ "@typescript-eslint/no-explicit-any": "off",
35
+ "@typescript-eslint/no-floating-promises": "warn",
36
+ "@typescript-eslint/no-unsafe-argument": "warn",
37
+ "@typescript-eslint/consistent-type-imports": [
38
+ "warn",
39
+ { prefer: "type-imports" },
40
+ ],
41
+
42
+ /* Prettier */
43
+ "prettier/prettier": ["error", { endOfLine: "auto" }],
44
+
45
+ /* JS */
46
+ "no-console": "warn",
47
+ },
48
+ }
49
+ );
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Language & Environment */
5
+ "target": "ES2022",
6
+ "lib": ["ES2022"],
7
+ "module": "ESNext",
8
+ "moduleResolution": "Bundler",
9
+
10
+ /* Strictness */
11
+ "strict": true,
12
+ "noImplicitAny": true,
13
+ "noUncheckedIndexedAccess": true,
14
+ "exactOptionalPropertyTypes": true,
15
+
16
+ /* Interop */
17
+ "esModuleInterop": true,
18
+ "forceConsistentCasingInFileNames": true,
19
+ "skipLibCheck": true,
20
+ "resolveJsonModule": true,
21
+
22
+ /* Decorators (NestJS) */
23
+ "experimentalDecorators": true,
24
+ "emitDecoratorMetadata": true,
25
+
26
+ /* Build behavior */
27
+ "declaration": false,
28
+ "sourceMap": true,
29
+ "incremental": true,
30
+
31
+ /* DX */
32
+ "useDefineForClassFields": false
33
+ }
34
+ }