@alextheman/configs 1.0.0 → 1.1.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.
Files changed (45) hide show
  1. package/dist/oxfmt/index.cjs +46 -0
  2. package/dist/oxfmt/index.d.cts +4 -0
  3. package/dist/oxfmt/index.d.ts +4 -0
  4. package/dist/oxfmt/index.js +44 -0
  5. package/dist/oxlint/index.cjs +111 -0
  6. package/dist/oxlint/index.d.cts +3 -0
  7. package/dist/oxlint/index.d.ts +3 -0
  8. package/dist/oxlint/index.js +110 -0
  9. package/package.json +20 -1
  10. package/.github/CODEOWNERS +0 -1
  11. package/.github/PULL_REQUEST_TEMPLATE/high_risk.md +0 -9
  12. package/.github/PULL_REQUEST_TEMPLATE/low_risk.md +0 -9
  13. package/.github/PULL_REQUEST_TEMPLATE/medium_risk.md +0 -9
  14. package/.github/pull_request_template.md +0 -7
  15. package/.github/workflows/actions.lock +0 -14
  16. package/.github/workflows/add-risk-label.yml +0 -15
  17. package/.github/workflows/audit-javascript-dependencies.yml +0 -20
  18. package/.github/workflows/check-labels.yml +0 -16
  19. package/.github/workflows/ci.yml +0 -47
  20. package/.github/workflows/commit-version-change.yml +0 -42
  21. package/.github/workflows/publish.yml +0 -57
  22. package/.github/workflows/restrict-alex-up-bot-branches.yml +0 -18
  23. package/.github/workflows/scheduled-patch-release.yml +0 -18
  24. package/.github/workflows/update-dependencies.yml +0 -23
  25. package/.husky/pre-commit +0 -4
  26. package/.markdownlint.json +0 -5
  27. package/alex-c-line.config.js +0 -3
  28. package/configs/alex-c-line/index.ts +0 -11
  29. package/configs/alex-c-line/preCommit.ts +0 -10
  30. package/docs/releases/v1/v1.0/v1.0.0.md +0 -25
  31. package/oxfmt.config.ts +0 -3
  32. package/oxlint.config.ts +0 -3
  33. package/pdm.lock +0 -58
  34. package/pdm.toml +0 -2
  35. package/pnpm-workspace.yaml +0 -10
  36. package/pyproject.toml +0 -30
  37. package/src/index.ts +0 -2
  38. package/src/oxfmt/configBase.ts +0 -13
  39. package/src/oxfmt/index.ts +0 -2
  40. package/src/oxfmt/sortImports.ts +0 -40
  41. package/src/oxlint/configBase.ts +0 -134
  42. package/src/oxlint/index.ts +0 -1
  43. package/tsconfig.json +0 -30
  44. package/tsdown.config.ts +0 -13
  45. package/tsdown.configs.config.ts +0 -15
@@ -0,0 +1,46 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ // src/oxfmt/sortImports.ts
3
+ const sortImports = {
4
+ customGroups: [
5
+ {
6
+ elementNamePattern: ["**/*.json"],
7
+ groupName: "json"
8
+ },
9
+ {
10
+ elementNamePattern: ["tests/**"],
11
+ groupName: "type-tests",
12
+ selector: "type"
13
+ },
14
+ {
15
+ elementNamePattern: ["tests/**"],
16
+ groupName: "value-tests"
17
+ }
18
+ ],
19
+ groups: [
20
+ "type-builtin",
21
+ "type-external",
22
+ "type-tests",
23
+ "type-internal",
24
+ "value-external",
25
+ "value-builtin",
26
+ "value-tests",
27
+ "value-internal",
28
+ "json"
29
+ ],
30
+ ignoreCase: true,
31
+ internalPattern: ["src/"],
32
+ newlinesBetween: true,
33
+ order: "asc",
34
+ partitionByComment: false,
35
+ partitionByNewLine: false,
36
+ specialCharacters: "keep",
37
+ type: "alphabetical"
38
+ };
39
+ // src/oxfmt/configBase.ts
40
+ const oxfmtConfigBase = {
41
+ ignorePatterns: ["dist/**", "pnpm-lock.yaml"],
42
+ sortImports,
43
+ sortPackageJson: { sortScripts: true }
44
+ };
45
+ exports.oxfmtConfigBase = oxfmtConfigBase;
46
+ exports.sortImports = sortImports;
@@ -0,0 +1,4 @@
1
+ import { OxfmtConfig, SortImportsUserConfig } from "oxfmt";
2
+ declare const oxfmtConfigBase: OxfmtConfig;
3
+ declare const sortImports: SortImportsUserConfig;
4
+ export { oxfmtConfigBase, sortImports };
@@ -0,0 +1,4 @@
1
+ import { OxfmtConfig, SortImportsUserConfig } from "oxfmt";
2
+ declare const oxfmtConfigBase: OxfmtConfig;
3
+ declare const sortImports: SortImportsUserConfig;
4
+ export { oxfmtConfigBase, sortImports };
@@ -0,0 +1,44 @@
1
+ // src/oxfmt/sortImports.ts
2
+ const sortImports = {
3
+ customGroups: [
4
+ {
5
+ elementNamePattern: ["**/*.json"],
6
+ groupName: "json"
7
+ },
8
+ {
9
+ elementNamePattern: ["tests/**"],
10
+ groupName: "type-tests",
11
+ selector: "type"
12
+ },
13
+ {
14
+ elementNamePattern: ["tests/**"],
15
+ groupName: "value-tests"
16
+ }
17
+ ],
18
+ groups: [
19
+ "type-builtin",
20
+ "type-external",
21
+ "type-tests",
22
+ "type-internal",
23
+ "value-external",
24
+ "value-builtin",
25
+ "value-tests",
26
+ "value-internal",
27
+ "json"
28
+ ],
29
+ ignoreCase: true,
30
+ internalPattern: ["src/"],
31
+ newlinesBetween: true,
32
+ order: "asc",
33
+ partitionByComment: false,
34
+ partitionByNewLine: false,
35
+ specialCharacters: "keep",
36
+ type: "alphabetical"
37
+ };
38
+ // src/oxfmt/configBase.ts
39
+ const oxfmtConfigBase = {
40
+ ignorePatterns: ["dist/**", "pnpm-lock.yaml"],
41
+ sortImports,
42
+ sortPackageJson: { sortScripts: true }
43
+ };
44
+ export { oxfmtConfigBase, sortImports };
@@ -0,0 +1,111 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ // src/oxlint/configBase.ts
3
+ const oxlintConfigBase = {
4
+ categories: {
5
+ correctness: "error",
6
+ suspicious: "error"
7
+ },
8
+ options: {
9
+ reportUnusedDisableDirectives: "error",
10
+ typeAware: true,
11
+ typeCheck: true
12
+ },
13
+ overrides: [{
14
+ files: ["**/deprecated/**"],
15
+ rules: { "typescript/no-deprecated": "off" }
16
+ }, {
17
+ files: ["*.config.{js,ts}", "configs/**/*.{ts}"],
18
+ rules: { "sort-keys": [
19
+ "error",
20
+ "asc",
21
+ { natural: true }
22
+ ] }
23
+ }],
24
+ plugins: [
25
+ "eslint",
26
+ "typescript",
27
+ "unicorn",
28
+ "import",
29
+ "node",
30
+ "vitest"
31
+ ],
32
+ rules: {
33
+ "arrow-body-style": ["error", "always"],
34
+ "capitalized-comments": "off",
35
+ eqeqeq: "error",
36
+ "func-style": ["error", "declaration"],
37
+ "import/no-named-as-default": "off",
38
+ "import/no-namespace": "error",
39
+ "no-console": ["error", { allow: [
40
+ "warn",
41
+ "error",
42
+ "info",
43
+ "table"
44
+ ] }],
45
+ "no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
46
+ "no-lonely-if": "error",
47
+ "no-magic-numbers": "off",
48
+ "no-new": "off",
49
+ "no-restricted-imports": ["error", { patterns: [{
50
+ group: ["node_modules"],
51
+ message: "Do not import directly from node_modules."
52
+ }, {
53
+ group: ["./", "../"],
54
+ message: "Relative imports are not allowed. Please use imports relative to the project root instead."
55
+ }] }],
56
+ "no-shadow": "off",
57
+ "no-underscore-dangle": "off",
58
+ "no-unused-vars": ["error", {
59
+ argsIgnorePattern: "^_",
60
+ caughtErrorsIgnorePattern: "^_",
61
+ destructuredArrayIgnorePattern: "^_",
62
+ varsIgnorePattern: "^_"
63
+ }],
64
+ "node/no-sync": "error",
65
+ "typescript/adjacent-overload-signatures": "off",
66
+ "typescript/array-type": ["error", { default: "generic" }],
67
+ "typescript/ban-ts-comment": ["error", {
68
+ "ts-check": "allow-with-description",
69
+ "ts-expect-error": "allow-with-description",
70
+ "ts-ignore": "allow-with-description",
71
+ "ts-nocheck": "allow-with-description"
72
+ }],
73
+ "typescript/ban-types": "error",
74
+ "typescript/consistent-type-assertions": ["error", { assertionStyle: "as" }],
75
+ "typescript/consistent-type-definitions": "off",
76
+ "typescript/consistent-type-exports": "error",
77
+ "typescript/consistent-type-imports": ["error", { fixStyle: "separate-type-imports" }],
78
+ "typescript/dot-notation": "error",
79
+ "typescript/no-deprecated": "warn",
80
+ "typescript/no-for-in-array": "off",
81
+ "typescript/no-require-imports": "error",
82
+ "typescript/no-unnecessary-template-expression": "error",
83
+ "typescript/no-unnecessary-type-assertion": "error",
84
+ "typescript/no-unnecessary-type-parameters": "off",
85
+ "typescript/no-unsafe-type-assertion": "off",
86
+ "typescript/prefer-function-type": "error",
87
+ "typescript/restrict-template-expressions": ["error", { allow: [{
88
+ from: "file",
89
+ name: "VersionNumber"
90
+ }] }],
91
+ "unicorn/no-instanceof-array": "error",
92
+ "unicorn/no-process-exit": "error",
93
+ "unicorn/no-typeof-undefined": "error",
94
+ "vitest/consistent-each-for": ["error", {
95
+ describe: "each",
96
+ test: "each"
97
+ }],
98
+ "vitest/consistent-test-it": ["error", { fn: "test" }],
99
+ "vitest/consistent-vitest-vi": ["error", { fn: "vitest" }],
100
+ "vitest/expect-expect": "off",
101
+ "vitest/no-conditional-expect": "off",
102
+ "vitest/no-focused-tests": "error",
103
+ "vitest/no-import-node-test": "error",
104
+ "vitest/no-importing-vitest-globals": "off",
105
+ "vitest/no-test-prefixes": "error",
106
+ "vitest/prefer-describe-function-title": "off",
107
+ "vitest/prefer-importing-vitest-globals": "error",
108
+ "vitest/require-mock-type-parameters": "off"
109
+ }
110
+ };
111
+ exports.oxlintConfigBase = oxlintConfigBase;
@@ -0,0 +1,3 @@
1
+ import { OxlintConfig } from "oxlint";
2
+ declare const oxlintConfigBase: OxlintConfig;
3
+ export { oxlintConfigBase };
@@ -0,0 +1,3 @@
1
+ import { OxlintConfig } from "oxlint";
2
+ declare const oxlintConfigBase: OxlintConfig;
3
+ export { oxlintConfigBase };
@@ -0,0 +1,110 @@
1
+ // src/oxlint/configBase.ts
2
+ const oxlintConfigBase = {
3
+ categories: {
4
+ correctness: "error",
5
+ suspicious: "error"
6
+ },
7
+ options: {
8
+ reportUnusedDisableDirectives: "error",
9
+ typeAware: true,
10
+ typeCheck: true
11
+ },
12
+ overrides: [{
13
+ files: ["**/deprecated/**"],
14
+ rules: { "typescript/no-deprecated": "off" }
15
+ }, {
16
+ files: ["*.config.{js,ts}", "configs/**/*.{ts}"],
17
+ rules: { "sort-keys": [
18
+ "error",
19
+ "asc",
20
+ { natural: true }
21
+ ] }
22
+ }],
23
+ plugins: [
24
+ "eslint",
25
+ "typescript",
26
+ "unicorn",
27
+ "import",
28
+ "node",
29
+ "vitest"
30
+ ],
31
+ rules: {
32
+ "arrow-body-style": ["error", "always"],
33
+ "capitalized-comments": "off",
34
+ eqeqeq: "error",
35
+ "func-style": ["error", "declaration"],
36
+ "import/no-named-as-default": "off",
37
+ "import/no-namespace": "error",
38
+ "no-console": ["error", { allow: [
39
+ "warn",
40
+ "error",
41
+ "info",
42
+ "table"
43
+ ] }],
44
+ "no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
45
+ "no-lonely-if": "error",
46
+ "no-magic-numbers": "off",
47
+ "no-new": "off",
48
+ "no-restricted-imports": ["error", { patterns: [{
49
+ group: ["node_modules"],
50
+ message: "Do not import directly from node_modules."
51
+ }, {
52
+ group: ["./", "../"],
53
+ message: "Relative imports are not allowed. Please use imports relative to the project root instead."
54
+ }] }],
55
+ "no-shadow": "off",
56
+ "no-underscore-dangle": "off",
57
+ "no-unused-vars": ["error", {
58
+ argsIgnorePattern: "^_",
59
+ caughtErrorsIgnorePattern: "^_",
60
+ destructuredArrayIgnorePattern: "^_",
61
+ varsIgnorePattern: "^_"
62
+ }],
63
+ "node/no-sync": "error",
64
+ "typescript/adjacent-overload-signatures": "off",
65
+ "typescript/array-type": ["error", { default: "generic" }],
66
+ "typescript/ban-ts-comment": ["error", {
67
+ "ts-check": "allow-with-description",
68
+ "ts-expect-error": "allow-with-description",
69
+ "ts-ignore": "allow-with-description",
70
+ "ts-nocheck": "allow-with-description"
71
+ }],
72
+ "typescript/ban-types": "error",
73
+ "typescript/consistent-type-assertions": ["error", { assertionStyle: "as" }],
74
+ "typescript/consistent-type-definitions": "off",
75
+ "typescript/consistent-type-exports": "error",
76
+ "typescript/consistent-type-imports": ["error", { fixStyle: "separate-type-imports" }],
77
+ "typescript/dot-notation": "error",
78
+ "typescript/no-deprecated": "warn",
79
+ "typescript/no-for-in-array": "off",
80
+ "typescript/no-require-imports": "error",
81
+ "typescript/no-unnecessary-template-expression": "error",
82
+ "typescript/no-unnecessary-type-assertion": "error",
83
+ "typescript/no-unnecessary-type-parameters": "off",
84
+ "typescript/no-unsafe-type-assertion": "off",
85
+ "typescript/prefer-function-type": "error",
86
+ "typescript/restrict-template-expressions": ["error", { allow: [{
87
+ from: "file",
88
+ name: "VersionNumber"
89
+ }] }],
90
+ "unicorn/no-instanceof-array": "error",
91
+ "unicorn/no-process-exit": "error",
92
+ "unicorn/no-typeof-undefined": "error",
93
+ "vitest/consistent-each-for": ["error", {
94
+ describe: "each",
95
+ test: "each"
96
+ }],
97
+ "vitest/consistent-test-it": ["error", { fn: "test" }],
98
+ "vitest/consistent-vitest-vi": ["error", { fn: "vitest" }],
99
+ "vitest/expect-expect": "off",
100
+ "vitest/no-conditional-expect": "off",
101
+ "vitest/no-focused-tests": "error",
102
+ "vitest/no-import-node-test": "error",
103
+ "vitest/no-importing-vitest-globals": "off",
104
+ "vitest/no-test-prefixes": "error",
105
+ "vitest/prefer-describe-function-title": "off",
106
+ "vitest/prefer-importing-vitest-globals": "error",
107
+ "vitest/require-mock-type-parameters": "off"
108
+ }
109
+ };
110
+ export { oxlintConfigBase };
package/package.json CHANGED
@@ -1,8 +1,27 @@
1
1
  {
2
2
  "name": "@alextheman/configs",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/alextheman231/configs.git"
9
+ },
10
+ "exports": {
11
+ "./oxfmt": {
12
+ "import": "./dist/oxfmt/index.js",
13
+ "types": "./dist/oxfmt/index.d.ts",
14
+ "require": "./dist/oxfmt/index.cjs"
15
+ },
16
+ "./oxlint": {
17
+ "import": "./dist/oxlint/index.js",
18
+ "types": "./dist/oxlint/index.d.ts",
19
+ "require": "./dist/ixlint/index.cjs"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
6
25
  "keywords": [],
7
26
  "author": "",
8
27
  "license": "ISC",
@@ -1 +0,0 @@
1
- * @alextheman231/admins
@@ -1,9 +0,0 @@
1
- # Description of Changes
2
-
3
- ## Risk level: High
4
-
5
- This is a high risk change because it requires consumers to substantially change their code. This includes renaming and removing features, changing function signatures significantly, changes to the package's entrypoints, and anything in general that would require users to migrate their code to adopt the changes. It must pass the CI checks in order for changes to be merged and deployed.
6
-
7
- ## Type of Change
8
-
9
- The type of changes made can be found on the labels associated with the pull request. The exact changes made can be found under the commits tab.
@@ -1,9 +0,0 @@
1
- # Description of Changes
2
-
3
- ## Risk level: Low
4
-
5
- This is a low risk change because it enhances the package while preserving existing behaviour. This includes internal refactors to the package's source code and new feature additions that do not touch existing features. It must pass the CI checks in order for changes to be merged and deployed.
6
-
7
- ## Type of Change
8
-
9
- The type of changes made can be found on the labels associated with the pull request. The exact changes made can be found under the commits tab.
@@ -1,9 +0,0 @@
1
- # Description of Changes
2
-
3
- ## Risk level: Medium
4
-
5
- This is a medium risk change because it changes the behaviour of existing features but does not require a refactor on the consumer's part. This includes internal changes to the code that have observable effects. It must pass the CI checks in order for changes to be merged and deployed.
6
-
7
- ## Type of Change
8
-
9
- The type of changes made can be found on the labels associated with the pull request. The exact changes made can be found under the commits tab.
@@ -1,7 +0,0 @@
1
- # Select a Template
2
-
3
- Please select a risk level:
4
-
5
- - [Low risk](?template=low_risk.md) - For simple additions and refactors that are unlikely to affect consumers of the package.
6
- - [Medium risk](?template=medium_risk.md) - For changes that alter existing behaviour but should not require a refactor on the consumer's part.
7
- - [High risk](?template=high_risk.md) - For changes that require consumers to refactor their code as a result of the release.
@@ -1,14 +0,0 @@
1
- # This file is machine-generated by `gh actions-lock`.
2
- # Do not edit by hand; run `gh actions-lock` to update.
3
- # Docs: https://gh.io/actions-lockfile
4
- version: 'v0.0.3'
5
- workflows:
6
- '.github/workflows/add-risk-label.yml': []
7
- '.github/workflows/audit-javascript-dependencies.yml': []
8
- '.github/workflows/check-labels.yml': []
9
- '.github/workflows/ci.yml': []
10
- '.github/workflows/commit-version-change.yml': []
11
- '.github/workflows/publish.yml': []
12
- '.github/workflows/restrict-alex-up-bot-branches.yml': []
13
- '.github/workflows/scheduled-patch-release.yml': []
14
- '.github/workflows/update-dependencies.yml': []
@@ -1,15 +0,0 @@
1
- name: Add risk label
2
-
3
- on:
4
- pull_request:
5
- types: [opened, edited]
6
-
7
- jobs:
8
- add-risk-label:
9
- uses: alextheman231/github-actions/.github/workflows/add-risk-label.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
10
- permissions:
11
- pull-requests: write
12
- with:
13
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
14
- secrets:
15
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
@@ -1,20 +0,0 @@
1
- name: Audit dependencies
2
-
3
- on:
4
- pull_request:
5
- branches: ["main"]
6
- paths:
7
- - "**/pnpm-lock.yaml"
8
-
9
- jobs:
10
- audit-javascript-dependencies:
11
- permissions:
12
- contents: read
13
- pull-requests: write
14
- uses: alextheman231/github-actions/.github/workflows/audit-javascript-dependencies.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
15
- with:
16
- pull-request-number: ${{ github.event.pull_request.number }}
17
- node-version: 26
18
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
19
- secrets:
20
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
@@ -1,16 +0,0 @@
1
- name: Check labels
2
-
3
- on:
4
- pull_request:
5
- types: [labeled, unlabeled, synchronize]
6
-
7
- jobs:
8
- check-labels:
9
- permissions:
10
- pull-requests: read
11
- uses: alextheman231/github-actions/.github/workflows/check-labels.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
12
- with:
13
- pull-request-number: ${{ github.event.pull_request.number }}
14
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
15
- secrets:
16
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
@@ -1,47 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: ["main"]
6
- pull_request:
7
- branches: ["main"]
8
- merge_group:
9
- types: [checks_requested]
10
-
11
- permissions:
12
- contents: read
13
-
14
- jobs:
15
- package-ci:
16
- uses: alextheman231/github-actions/.github/workflows/package-ci.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
17
- with:
18
- node-version: 26
19
-
20
- actions-ci:
21
- permissions:
22
- contents: read
23
- uses: alextheman231/github-actions/.github/workflows/actions-ci.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
24
- with:
25
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
26
- secrets:
27
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
28
-
29
- pyproject-ci:
30
- permissions:
31
- contents: read
32
- uses: alextheman231/github-actions/.github/workflows/pyproject-ci.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
33
- with:
34
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
35
- secrets:
36
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
37
-
38
- secret-scan-ci:
39
- permissions:
40
- contents: read
41
- uses: alextheman231/github-actions/.github/workflows/secret-scan-ci.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
42
- with:
43
- github-push-before-sha: ${{ github.event.before }}
44
- github-push-base-sha: ${{ github.event.base_ref }}
45
- github-pull-base-sha: ${{ github.event.pull_request.base.sha }}
46
- secrets:
47
- GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
@@ -1,42 +0,0 @@
1
- name: Commit a version change
2
- on:
3
- push:
4
- branches: ["main"]
5
- workflow_dispatch:
6
-
7
- jobs:
8
- check-major-version:
9
- permissions:
10
- contents: write
11
- pull-requests: write
12
- uses: alextheman231/github-actions/.github/workflows/commit-version-change.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
13
- with:
14
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
15
- version-type: major
16
- node-version: 26
17
- secrets:
18
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY}}
19
-
20
- check-minor-version:
21
- permissions:
22
- contents: write
23
- pull-requests: write
24
- uses: alextheman231/github-actions/.github/workflows/commit-version-change.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
25
- with:
26
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
27
- version-type: minor
28
- node-version: 26
29
- secrets:
30
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY}}
31
-
32
- check-patch-version:
33
- permissions:
34
- contents: write
35
- pull-requests: write
36
- uses: alextheman231/github-actions/.github/workflows/commit-version-change.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
37
- with:
38
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
39
- version-type: patch
40
- node-version: 26
41
- secrets:
42
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY}}
@@ -1,57 +0,0 @@
1
- name: Publish the package
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- check-npm-version:
10
- permissions:
11
- contents: read
12
- uses: alextheman231/github-actions/.github/workflows/report-npm-version-existence.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
13
- with:
14
- node-version: 26
15
-
16
- check-version-tag:
17
- permissions:
18
- contents: read
19
- uses: alextheman231/github-actions/.github/workflows/report-version-tag-existence.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
20
- with:
21
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
22
- node-version: 26
23
- secrets:
24
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
25
-
26
- check-release-note:
27
- permissions:
28
- contents: read
29
- uses: alextheman231/github-actions/.github/workflows/report-release-note-existence.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
30
- with:
31
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
32
- node-version: 26
33
- secrets:
34
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
35
-
36
- npm-registry-publish:
37
- needs: [check-npm-version, check-version-tag, check-release-note]
38
- if: ${{ needs.check-npm-version.outputs.version-exists == 'false' && needs.check-version-tag.outputs.tag-exists == 'false' && needs.check-release-note.outputs.release-note-found == 'true' }}
39
- permissions:
40
- id-token: write
41
- uses: alextheman231/github-actions/.github/workflows/npm-registry-publish.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
42
- with:
43
- node-version: 26
44
-
45
- create-github-release:
46
- needs: [check-version-tag, check-release-note]
47
- permissions:
48
- contents: write
49
- if: ${{ needs.check-version-tag.outputs.tag-exists == 'false' && needs.check-release-note.outputs.release-note-found == 'true' }}
50
- uses: alextheman231/github-actions/.github/workflows/create-github-release.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
51
- with:
52
- node-version: 26
53
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
54
- tag: ${{ needs.check-version-tag.outputs.tag }}
55
- release-note-path: ${{ needs.check-release-note.outputs.release-note-path }}
56
- secrets:
57
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
@@ -1,18 +0,0 @@
1
- name: Restrict alex-up-bot branches
2
-
3
- on:
4
- pull_request:
5
- branches: ["main"]
6
-
7
- permissions:
8
- contents: read
9
- pull-requests: write
10
- issues: write
11
-
12
- jobs:
13
- restrict-alex-up-bot-branches:
14
- uses: alextheman231/github-actions/.github/workflows/restrict-alex-up-bot-branches.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
15
- with:
16
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
17
- secrets:
18
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
@@ -1,18 +0,0 @@
1
- name: Scheduled Patch Release
2
-
3
- on:
4
- workflow_dispatch:
5
- schedule:
6
- - cron: 0 21 1 * *
7
-
8
- jobs:
9
- scheduled-patch-release:
10
- permissions:
11
- contents: write
12
- if: ${{ github.repository == 'alextheman231/utility' }}
13
- uses: alextheman231/github-actions/.github/workflows/scheduled-patch-release.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
14
- with:
15
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
16
- node-version: 26
17
- secrets:
18
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
@@ -1,23 +0,0 @@
1
- name: Update Dependencies
2
- on:
3
- workflow_dispatch:
4
- schedule:
5
- - cron: 0 9 * * 1
6
-
7
- permissions:
8
- contents: write
9
- pull-requests: write
10
-
11
- jobs:
12
- update-dependencies:
13
- if: ${{ github.repository == 'alextheman231/utility' }}
14
- uses: alextheman231/github-actions/.github/workflows/update-dependencies.yml@3afc74f099e74b1beb17ab72d17af1f20e47e0ca # v14.9.0
15
- secrets:
16
- APP_PRIVATE_KEY: ${{ secrets.ALEX_UP_BOT_PRIVATE_KEY }}
17
- with:
18
- CLIENT_ID: ${{ vars.ALEX_UP_BOT_CLIENT_ID }}
19
- update_pnpm: true
20
- update_javascript_dependencies: true
21
- update_actions: true
22
- update_python_dependencies: true
23
- node-version: 26
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
-
4
- pnpm run pre-commit
@@ -1,5 +0,0 @@
1
- {
2
- "MD013": false,
3
- "MD033": false,
4
- "MD041": false
5
- }
@@ -1,3 +0,0 @@
1
- import alexCLineConfig from "./configs-build/index.js";
2
-
3
- export default alexCLineConfig;
@@ -1,11 +0,0 @@
1
- import type { AlexCLineConfig } from "alex-c-line/configs";
2
-
3
- import preCommitConfig from "configs/alex-c-line/preCommit";
4
-
5
- import { scripts } from "package.json" with { type: "json" };
6
-
7
- const alexCLineConfig: AlexCLineConfig<keyof typeof scripts> = {
8
- preCommit: preCommitConfig,
9
- };
10
-
11
- export default alexCLineConfig;
@@ -1,10 +0,0 @@
1
- import type { PreCommitConfig } from "alex-c-line/configs";
2
-
3
- import { scripts } from "package.json" with { type: "json" };
4
-
5
- const preCommitConfig: PreCommitConfig<keyof typeof scripts> = {
6
- packageManager: "pnpm",
7
- steps: ["build", "format", "lint"],
8
- };
9
-
10
- export default preCommitConfig;
@@ -1,25 +0,0 @@
1
- # v1.0.0 (Major Release)
2
-
3
- <!-- alex-c-line-release-status-start -->
4
- **Status**: In progress
5
- <!-- alex-c-line-release-status-end -->
6
-
7
- <!-- alex-c-line-release-summary-start -->
8
- This is a new major release of the `configs` package. It has the potential to introduce breaking changes that may require a large amount of refactoring. Please read the description of changes and migration notes below for more information.
9
- <!-- alex-c-line-release-summary-end -->
10
-
11
- ## Description of Changes
12
-
13
- <!-- user-editable-section-start -->
14
- - Initial setup of package.
15
- - Adds the Oxfmt and Oxlint configuration found in `@alextheman/utility`
16
-
17
- ## Migration Notes
18
-
19
- - None needed, it is the first release.
20
-
21
- ## Additional Notes
22
-
23
- - This package will most likely be treated similarly to the `github-actions` repository, in the sense that most of its features are intended for internal use throughout the organisation.
24
- - This may change as time goes on, but for now, considering that most things here reflect my own conventions/preferences, it makes sense for it to be treated as an internal package for now, at least.
25
- <!-- user-editable-section-end -->
package/oxfmt.config.ts DELETED
@@ -1,3 +0,0 @@
1
- import { oxfmtConfigBase } from "./dist/index.js";
2
-
3
- export default oxfmtConfigBase;
package/oxlint.config.ts DELETED
@@ -1,3 +0,0 @@
1
- import { oxlintConfigBase } from "./dist/index.js";
2
-
3
- export default oxlintConfigBase;
package/pdm.lock DELETED
@@ -1,58 +0,0 @@
1
- # This file is @generated by PDM.
2
- # It is not intended for manual editing.
3
-
4
- [metadata]
5
- groups = ["default", "dev"]
6
- strategy = ["inherit_metadata"]
7
- lock_version = "4.5.1"
8
- content_hash = "sha256:c12af4c8891aee0415b5c08adc96b03abbce69cbc9b0a450964038873d19cfda"
9
-
10
- [[metadata.targets]]
11
- requires_python = "==3.14.*"
12
-
13
- [[package]]
14
- name = "pyproject-fmt"
15
- version = "2.30.6"
16
- requires_python = ">=3.11"
17
- summary = "Format pyproject.toml files"
18
- groups = ["dev"]
19
- files = [
20
- {file = "pyproject_fmt-2.30.6-cp311-abi3-macosx_10_12_x86_64.whl", hash = "sha256:866c29a18497f28d1b98692ebb1fde8fdac0c11264737aeb1ade1b689636a886"},
21
- {file = "pyproject_fmt-2.30.6-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:43162067e0d72e158c471654df8795da26ad0267a36ff3b5d53036431310ef71"},
22
- {file = "pyproject_fmt-2.30.6-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:4b1b6088d133a2df3f587937695b0446bb98384855e519ba150f662c0e2c30a5"},
23
- {file = "pyproject_fmt-2.30.6-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:50fbddb780160d5d5f0d21442357e624f2cc86ebfe21030a6e2fd4d53dca24f5"},
24
- {file = "pyproject_fmt-2.30.6-cp311-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:4c2c49ea2d3c2d267b2020fb18e423b1ad2c6dbe82fefa7e16c7deeed55d7d62"},
25
- {file = "pyproject_fmt-2.30.6-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:c6e53166777dcab4d513c805375c111390e54086e019f53effe092a85c951e78"},
26
- {file = "pyproject_fmt-2.30.6-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:0c3649b02b724097b8c5b8b30ad117560c14f68a830af170bf3d19692064a1ff"},
27
- {file = "pyproject_fmt-2.30.6-cp311-abi3-win_amd64.whl", hash = "sha256:7dd40d1697d0db09506d3810e4411401b83e9108213142db789b5f3657a97d73"},
28
- {file = "pyproject_fmt-2.30.6-cp311-abi3-win_arm64.whl", hash = "sha256:c3ad25994c06be15767143e36e3c15ce1aa1248c2d360f0573cb9286d893ab85"},
29
- {file = "pyproject_fmt-2.30.6-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:af77a34d30aad6bf563f33c23aa92334e45c2297af290c86d89a9c0898505a44"},
30
- {file = "pyproject_fmt-2.30.6-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2a01e61eb8da227aee5396c30c2ef45891cb17e1dea6d86c16996d99c79c3389"},
31
- {file = "pyproject_fmt-2.30.6-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:c84691403918cc53d32c8069f5773463bbe6a226d5ac865ff3661bd7e4ef05b1"},
32
- {file = "pyproject_fmt-2.30.6-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:24b07b510c6474bb7cd2343593aea9543827fd1f9d0c8f767a7d2def4fc852ea"},
33
- {file = "pyproject_fmt-2.30.6-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:63d77fc83f252b5e3bd21a6f3f01b90d38dbf2404354f281b835b40135f0e545"},
34
- {file = "pyproject_fmt-2.30.6-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5761ff7510755ffc0c4d99f891c9dbf197492e51cce56b5f0e5cb947bea9895c"},
35
- {file = "pyproject_fmt-2.30.6-cp314-cp314t-win_amd64.whl", hash = "sha256:bc882fee89e3997a1855841c8be48cdf099011b4d42eb1044fb08299097e42c8"},
36
- {file = "pyproject_fmt-2.30.6-cp314-cp314t-win_arm64.whl", hash = "sha256:c01748f5ea1d7506572e99f3657a5a984782c681a68e2408e20597c83b0140e8"},
37
- {file = "pyproject_fmt-2.30.6.tar.gz", hash = "sha256:ffd8fb8c245de951a8a944d00ceb536f55f080d70e38e7c8f86bb114f63e4574"},
38
- ]
39
-
40
- [[package]]
41
- name = "zizmor"
42
- version = "1.31.1"
43
- requires_python = ">=3.11"
44
- summary = "Static analysis for GitHub Actions"
45
- groups = ["dev"]
46
- files = [
47
- {file = "zizmor-1.31.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:9696d3c10919a3a2eb086c102f1bc10717f53ef3700a0d6c55a709c274995476"},
48
- {file = "zizmor-1.31.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:4a70ee3c2721122aff04d5bbad5e448d15384f45de2ecb3c9493fe9dac2bc95f"},
49
- {file = "zizmor-1.31.1-py3-none-manylinux_2_24_aarch64.whl", hash = "sha256:d9b36840c560a8abe39d9ef3d077239aabf6d572c5c2b629c970592a617dbf6f"},
50
- {file = "zizmor-1.31.1-py3-none-manylinux_2_28_armv7l.whl", hash = "sha256:d8a5f86fbf93e65e9d42de9eb4c1855d195c5e9cdeef4f228093ad6711bd8ee4"},
51
- {file = "zizmor-1.31.1-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:58e878eb2dbd2c6183c105e1ac28c14f7dd1eca44a783f1fe2a69647d012c410"},
52
- {file = "zizmor-1.31.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c5ccb17fd820bb1ddc63cc9a715e97c063025487e585f640389a86d9dfc97cda"},
53
- {file = "zizmor-1.31.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:385732e55ca152a013b0863213b67be32f94157775354b8ad23cc9c5d70cdc82"},
54
- {file = "zizmor-1.31.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:e7fdf82d31cc67eb1d5030bf2372b25ee2a1c3ad05017e18da70ed138c4accd6"},
55
- {file = "zizmor-1.31.1-py3-none-win32.whl", hash = "sha256:d1d2cdc23e7b11f2d6cbda0df3bee62ee7993a60647650f51c316ccd33365469"},
56
- {file = "zizmor-1.31.1-py3-none-win_amd64.whl", hash = "sha256:3b35b393e8d437e275c7e399047c9892ccc290f3fc5e6aeb9f65a5d3b2a470e0"},
57
- {file = "zizmor-1.31.1.tar.gz", hash = "sha256:eb9c8a3e2c1080810fdb68bc36717b2a9d61283bb98e3a48689f5a852fc48e9f"},
58
- ]
package/pdm.toml DELETED
@@ -1,2 +0,0 @@
1
- [strategy]
2
- save = "exact"
@@ -1,10 +0,0 @@
1
- savePrefix: ""
2
- allowBuilds:
3
- esbuild: true
4
- unrs-resolver: true
5
- minimumReleaseAgeExclude:
6
- - "@alextheman/*"
7
- - alex-c-line
8
- - "alextheman231/github-actions/*"
9
- overrides:
10
- typescript: 6.0.3
package/pyproject.toml DELETED
@@ -1,30 +0,0 @@
1
- [project]
2
- name = "configs"
3
- version = "0.1.0"
4
- description = "Default template for PDM package"
5
- readme = "README.md"
6
- license = "MIT"
7
- requires-python = "==3.14.*"
8
- dependencies = []
9
- [[project.authors]]
10
- name = "AlexMan123456"
11
- email = "alex.man03888@gmail.com"
12
-
13
- [dependency-groups]
14
- dev = [
15
- "pyproject-fmt==2.30.6",
16
- "zizmor==1.31.1",
17
- ]
18
-
19
- [tool.pdm]
20
- distribution = false
21
- [tool.pdm.scripts]
22
- format = { composite = [ "format-pyproject" ] }
23
- format-pyproject = { shell = "pyproject-fmt pyproject.toml || true" }
24
- lint = { composite = [ "lint-zizmor", "lint-pyproject" ] }
25
- lint-pyproject = "pyproject-fmt --check pyproject.toml"
26
- lint-zizmor = "zizmor ."
27
-
28
- [tool.pyproject-fmt]
29
- generate_python_version_classifiers = false
30
- table_format = "long"
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "src/oxlint";
2
- export * from "src/oxfmt";
@@ -1,13 +0,0 @@
1
- import type { OxfmtConfig } from "oxfmt";
2
-
3
- import sortImports from "src/oxfmt/sortImports";
4
-
5
- const oxfmtConfigBase: OxfmtConfig = {
6
- ignorePatterns: ["dist/**", "pnpm-lock.yaml"],
7
- sortImports,
8
- sortPackageJson: {
9
- sortScripts: true,
10
- },
11
- };
12
-
13
- export default oxfmtConfigBase;
@@ -1,2 +0,0 @@
1
- export { default as oxfmtConfigBase } from "src/oxfmt/configBase";
2
- export { default as sortImports } from "src/oxfmt/sortImports";
@@ -1,40 +0,0 @@
1
- import type { SortImportsUserConfig } from "oxfmt";
2
-
3
- const sortImports: SortImportsUserConfig = {
4
- customGroups: [
5
- {
6
- elementNamePattern: ["**/*.json"],
7
- groupName: "json",
8
- },
9
- {
10
- elementNamePattern: ["tests/**"],
11
- groupName: "type-tests",
12
- selector: "type",
13
- },
14
- {
15
- elementNamePattern: ["tests/**"],
16
- groupName: "value-tests",
17
- },
18
- ],
19
- groups: [
20
- "type-builtin",
21
- "type-external",
22
- "type-tests",
23
- "type-internal",
24
- "value-external",
25
- "value-builtin",
26
- "value-tests",
27
- "value-internal",
28
- "json",
29
- ],
30
- ignoreCase: true,
31
- internalPattern: ["src/"],
32
- newlinesBetween: true,
33
- order: "asc",
34
- partitionByComment: false,
35
- partitionByNewLine: false,
36
- specialCharacters: "keep",
37
- type: "alphabetical",
38
- };
39
-
40
- export default sortImports;
@@ -1,134 +0,0 @@
1
- import type { OxlintConfig } from "oxlint";
2
-
3
- const oxlintConfigBase: OxlintConfig = {
4
- categories: {
5
- correctness: "error",
6
- suspicious: "error",
7
- },
8
- options: {
9
- reportUnusedDisableDirectives: "error",
10
- typeAware: true,
11
- typeCheck: true,
12
- },
13
- overrides: [
14
- {
15
- files: ["**/deprecated/**"],
16
- rules: {
17
- "typescript/no-deprecated": "off",
18
- },
19
- },
20
- {
21
- files: ["*.config.{js,ts}", "configs/**/*.{ts}"],
22
- rules: {
23
- "sort-keys": [
24
- "error",
25
- "asc",
26
- {
27
- natural: true,
28
- },
29
- ],
30
- },
31
- },
32
- ],
33
- plugins: ["eslint", "typescript", "unicorn", "import", "node", "vitest"],
34
- rules: {
35
- "arrow-body-style": ["error", "always"],
36
- "capitalized-comments": "off",
37
- eqeqeq: "error",
38
- "func-style": ["error", "declaration"],
39
- "import/no-named-as-default": "off",
40
- "import/no-namespace": "error",
41
- "no-console": ["error", { allow: ["warn", "error", "info", "table"] }],
42
- "no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
43
- "no-lonely-if": "error",
44
- "no-magic-numbers": "off",
45
- "no-new": "off",
46
- "no-restricted-imports": [
47
- "error",
48
- {
49
- patterns: [
50
- {
51
- group: ["node_modules"],
52
- message: "Do not import directly from node_modules.",
53
- },
54
- {
55
- group: ["./", "../"],
56
- message:
57
- "Relative imports are not allowed. Please use imports relative to the project root instead.",
58
- },
59
- ],
60
- },
61
- ],
62
- "no-shadow": "off",
63
- "no-underscore-dangle": "off",
64
- "no-unused-vars": [
65
- "error",
66
- {
67
- argsIgnorePattern: "^_",
68
- caughtErrorsIgnorePattern: "^_",
69
- destructuredArrayIgnorePattern: "^_",
70
- varsIgnorePattern: "^_",
71
- },
72
- ],
73
- "node/no-sync": "error",
74
- "typescript/adjacent-overload-signatures": "off",
75
- "typescript/array-type": ["error", { default: "generic" }],
76
- "typescript/ban-ts-comment": [
77
- "error",
78
- {
79
- "ts-check": "allow-with-description",
80
- "ts-expect-error": "allow-with-description",
81
- "ts-ignore": "allow-with-description",
82
- "ts-nocheck": "allow-with-description",
83
- },
84
- ],
85
- "typescript/ban-types": "error",
86
- "typescript/consistent-type-assertions": ["error", { assertionStyle: "as" }],
87
- "typescript/consistent-type-definitions": "off",
88
- "typescript/consistent-type-exports": "error",
89
- "typescript/consistent-type-imports": ["error", { fixStyle: "separate-type-imports" }],
90
- "typescript/dot-notation": "error",
91
- "typescript/no-deprecated": "warn",
92
- "typescript/no-for-in-array": "off",
93
- "typescript/no-require-imports": "error",
94
- "typescript/no-unnecessary-template-expression": "error",
95
- "typescript/no-unnecessary-type-assertion": "error",
96
- "typescript/no-unnecessary-type-parameters": "off",
97
- "typescript/no-unsafe-type-assertion": "off", // I would like to re-enable this at some point, however we do this in a lot of places and a lot of them are hard to avoid. As such, I will disable for now and see if we can avoid type assertions wherever we are currently doing them.
98
- "typescript/prefer-function-type": "error",
99
- "typescript/restrict-template-expressions": [
100
- "error",
101
- {
102
- allow: [
103
- {
104
- from: "file",
105
- name: "VersionNumber",
106
- },
107
- ],
108
- },
109
- ],
110
- "unicorn/no-instanceof-array": "error",
111
- "unicorn/no-process-exit": "error",
112
- "unicorn/no-typeof-undefined": "error",
113
- "vitest/consistent-each-for": [
114
- "error",
115
- {
116
- describe: "each",
117
- test: "each",
118
- },
119
- ],
120
- "vitest/consistent-test-it": ["error", { fn: "test" }],
121
- "vitest/consistent-vitest-vi": ["error", { fn: "vitest" }],
122
- "vitest/expect-expect": "off",
123
- "vitest/no-conditional-expect": "off",
124
- "vitest/no-focused-tests": "error",
125
- "vitest/no-import-node-test": "error",
126
- "vitest/no-importing-vitest-globals": "off",
127
- "vitest/no-test-prefixes": "error",
128
- "vitest/prefer-describe-function-title": "off",
129
- "vitest/prefer-importing-vitest-globals": "error",
130
- "vitest/require-mock-type-parameters": "off",
131
- },
132
- };
133
-
134
- export default oxlintConfigBase;
@@ -1 +0,0 @@
1
- export { default as oxlintConfigBase } from "src/oxlint/configBase";
package/tsconfig.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES6",
4
- "useDefineForClassFields": true,
5
- "lib": ["ES2024"],
6
- "types": ["node"],
7
- "module": "ESNext",
8
- "skipLibCheck": true,
9
- "rootDir": ".",
10
- "paths": {
11
- "src/*": ["./src/*"],
12
- "configs/*": ["./configs/*"],
13
- "package.json": ["./package.json"],
14
- "tsconfig.json": ["./tsconfig.json"]
15
- },
16
- "esModuleInterop": true,
17
-
18
- "moduleResolution": "bundler",
19
- "resolveJsonModule": true,
20
- "isolatedModules": true,
21
- "outDir": "dist",
22
-
23
- "strict": true,
24
- "noUnusedLocals": true,
25
- "noUnusedParameters": true,
26
- "noFallthroughCasesInSwitch": true,
27
- "declaration": true
28
- },
29
- "include": ["src", "configs"]
30
- }
package/tsdown.config.ts DELETED
@@ -1,13 +0,0 @@
1
- import type { UserConfig } from "tsdown";
2
-
3
- const config: Array<UserConfig> = [
4
- {
5
- clean: true,
6
- dts: true,
7
- entry: ["src/index.ts"],
8
- fixedExtension: false,
9
- format: ["esm", "cjs"],
10
- },
11
- ];
12
-
13
- export default config;
@@ -1,15 +0,0 @@
1
- import type { UserConfig } from "tsdown";
2
-
3
- const config: UserConfig = {
4
- clean: true,
5
- deps: {
6
- neverBundle: ["typescript", "zod"],
7
- },
8
- dts: true,
9
- entry: ["configs/alex-c-line/index.ts"],
10
- fixedExtension: false,
11
- format: ["esm"],
12
- outDir: "configs-build",
13
- };
14
-
15
- export default config;