@candlerip/shared-devops 0.0.12 → 0.0.14

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.
@@ -0,0 +1,26 @@
1
+ import js from '@eslint/js';
2
+ import ts from 'typescript-eslint';
3
+ import globals from 'globals';
4
+
5
+ export default (projectConfig) =>
6
+ ts.config(
7
+ js.configs.recommended,
8
+ ...ts.configs.recommended,
9
+ {
10
+ ignores: ['temp'],
11
+ },
12
+ {
13
+ languageOptions: {
14
+ globals: {
15
+ ...globals.browser,
16
+ ...globals.node,
17
+ },
18
+ },
19
+ },
20
+ {
21
+ rules: {
22
+ 'no-console': [2, { allow: ['error', 'info'] }],
23
+ },
24
+ },
25
+ ...(projectConfig ?? []),
26
+ );
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/bash
2
+ set -e
3
+
4
+ npx eslint .
@@ -0,0 +1,7 @@
1
+ export default {
2
+ semi: true,
3
+ printWidth: 150,
4
+ singleQuote: true,
5
+ tabWidth: 2,
6
+ trailingComma: 'all',
7
+ };
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/bash
2
+ set -e
3
+
4
+ npx prettier . --write
@@ -5,7 +5,6 @@
5
5
  "module": "ES2022",
6
6
  "moduleResolution": "bundler",
7
7
  "outDir": "dist",
8
- "rootDir": ".",
9
8
  "skipLibCheck": true,
10
9
  "strict": true,
11
10
  "target": "ES2022"
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "@candlerip/shared-devops",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "bin": {
5
5
  "crsd-create-env-file": "./_devops/environment/create-env-file.sh",
6
6
  "crsd-build-publish-to-docker": "./_devops/docker/build-publish-to-docker.sh",
7
+ "crsd-eslint": "./_devops/eslint/eslint.sh",
8
+ "crsd-prettier": "./_devops/prettier/prettier.sh",
7
9
  "crsd-publish-to-npm": "./_devops/npm/publish-to-npm.sh",
8
10
  "crsd-update-shared-packages": "./_devops/npm/update-shared-packages.sh",
9
11
  "crsd-tsc-compile": "./_devops/typescript/tsc-compile.sh",
@@ -11,5 +13,12 @@
11
13
  },
12
14
  "scripts": {
13
15
  "publish-gitlab-image": "sh ./_devops/gitlab/publish-gitlab-image.sh"
16
+ },
17
+ "dependencies": {
18
+ "eslint": "^9.20.1",
19
+ "globals": "^15.14.0",
20
+ "tsc-alias": "^1.8.10",
21
+ "typescript": "^5.7.3",
22
+ "typescript-eslint": "^8.24.0"
14
23
  }
15
24
  }