@adbayb/stack 2.40.0 → 3.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.
Files changed (54) hide show
  1. package/README.md +4 -4
  2. package/bin/index.js +2 -4
  3. package/configs/{prettier → oxfmt}/README.md +6 -14
  4. package/configs/oxfmt/index.ts +41 -0
  5. package/configs/{eslint → oxlint}/README.md +4 -4
  6. package/configs/oxlint/index.ts +317 -0
  7. package/configs/typescript/index.json +1 -7
  8. package/dist/configs/oxfmt.d.ts +32 -0
  9. package/dist/configs/oxfmt.js +37 -0
  10. package/dist/configs/oxlint.d.ts +271 -0
  11. package/dist/configs/oxlint.js +323 -0
  12. package/dist/index.js +261 -249
  13. package/package.json +42 -48
  14. package/templates/multi-projects/.github/workflows/continuous_delivery.yml +3 -3
  15. package/templates/multi-projects/.github/workflows/dependency_changelog.yml +1 -1
  16. package/templates/multi-projects/.github/workflows/workflow.yml +3 -3
  17. package/templates/multi-projects/.vscode/extensions.json +1 -1
  18. package/templates/multi-projects/.vscode/settings.json +7 -13
  19. package/templates/multi-projects/libraries/{{projectName}}/package.json +10 -10
  20. package/templates/multi-projects/oxfmt.config.ts +1 -0
  21. package/templates/multi-projects/oxlint.config.ts +1 -0
  22. package/templates/multi-projects/package.json +3 -4
  23. package/templates/multi-projects/pnpm-workspace.yaml +8 -9
  24. package/templates/single-project/.github/workflows/continuous_delivery.yml +3 -3
  25. package/templates/single-project/.github/workflows/dependency_changelog.yml +1 -1
  26. package/templates/single-project/.github/workflows/workflow.yml +3 -3
  27. package/templates/single-project/.vscode/extensions.json +1 -1
  28. package/templates/single-project/.vscode/settings.json +7 -13
  29. package/templates/single-project/oxfmt.config.ts +1 -0
  30. package/templates/single-project/oxlint.config.ts +1 -0
  31. package/templates/single-project/package.json +3 -4
  32. package/templates/single-project/pnpm-workspace.yaml +8 -9
  33. package/templates/single-project/{{projectName}}/package.json +10 -10
  34. package/configs/eslint/constants.js +0 -37
  35. package/configs/eslint/helpers.js +0 -5
  36. package/configs/eslint/index.js +0 -30
  37. package/configs/eslint/presets/dependencies.js +0 -14
  38. package/configs/eslint/presets/eslint.js +0 -133
  39. package/configs/eslint/presets/import.js +0 -65
  40. package/configs/eslint/presets/jsdoc.js +0 -78
  41. package/configs/eslint/presets/markdown.js +0 -1
  42. package/configs/eslint/presets/node.js +0 -51
  43. package/configs/eslint/presets/prettier.js +0 -1
  44. package/configs/eslint/presets/react.js +0 -111
  45. package/configs/eslint/presets/sonar.js +0 -201
  46. package/configs/eslint/presets/stylistic.js +0 -79
  47. package/configs/eslint/presets/test.js +0 -87
  48. package/configs/eslint/presets/typescript.js +0 -198
  49. package/configs/eslint/presets/unicorn.js +0 -257
  50. package/configs/prettier/index.js +0 -25
  51. package/templates/multi-projects/.nvmrc +0 -1
  52. package/templates/multi-projects/eslint.config.js.tmpl +0 -1
  53. package/templates/single-project/.nvmrc +0 -1
  54. package/templates/single-project/eslint.config.js.tmpl +0 -1
package/package.json CHANGED
@@ -1,33 +1,23 @@
1
1
  {
2
2
  "name": "@adbayb/stack",
3
- "version": "2.40.0",
3
+ "version": "3.0.0",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
- "stack",
6
+ "development",
7
7
  "scripts",
8
- "toolchain",
9
- "development"
8
+ "stack",
9
+ "toolchain"
10
10
  ],
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/adbayb/stack.git",
14
- "directory": "applications/stack"
15
- },
16
11
  "license": "MIT",
17
12
  "author": {
18
13
  "name": "Ayoub Adib",
19
14
  "email": "adbayb@gmail.com",
20
15
  "url": "https://twitter.com/adbayb"
21
16
  },
22
- "type": "module",
23
- "exports": {
24
- ".": {
25
- "source": "./src/index.ts",
26
- "default": "./dist/index.js"
27
- },
28
- "./eslint": "./configs/eslint/index.js",
29
- "./prettier": "./configs/prettier/index.js",
30
- "./typescript": "./configs/typescript/index.json"
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/adbayb/stack.git",
20
+ "directory": "applications/stack"
31
21
  },
32
22
  "bin": {
33
23
  "stack": "./bin/index.js"
@@ -38,42 +28,46 @@
38
28
  "dist",
39
29
  "templates"
40
30
  ],
31
+ "type": "module",
32
+ "exports": {
33
+ ".": {
34
+ "source": "./src/index.ts",
35
+ "default": "./dist/index.js"
36
+ },
37
+ "./oxfmt": {
38
+ "source": "./configs/oxfmt/index.ts",
39
+ "types": "./dist/configs/oxfmt.d.ts",
40
+ "default": "./dist/configs/oxfmt.js"
41
+ },
42
+ "./oxlint": {
43
+ "source": "./configs/oxlint/index.ts",
44
+ "types": "./dist/configs/oxlint.d.ts",
45
+ "default": "./dist/configs/oxlint.js"
46
+ },
47
+ "./typescript": "./configs/typescript/index.json"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public",
51
+ "registry": "https://registry.npmjs.org"
52
+ },
41
53
  "dependencies": {
42
54
  "@changesets/changelog-github": "^0.7.0",
43
- "@changesets/cli": "^2.31.0",
44
- "@commitlint/cli": "^21.0.2",
45
- "@commitlint/config-conventional": "^21.0.2",
46
- "@eslint-react/eslint-plugin": "^5.9.1",
47
- "@eslint/compat": "^2.1.0",
55
+ "@changesets/cli": "^2.31.1",
56
+ "@commitlint/cli": "^21.2.1",
57
+ "@commitlint/config-conventional": "^21.2.0",
58
+ "@e18e/eslint-plugin": "^0.6.0",
48
59
  "@stylistic/eslint-plugin": "^5.10.0",
49
- "@vitest/eslint-plugin": "^1.6.20",
50
- "eslint": "^10.5.0",
51
- "eslint-config-prettier": "^10.1.8",
52
- "eslint-import-resolver-typescript": "^4.4.5",
53
- "eslint-plugin-depend": "^1.5.0",
54
- "eslint-plugin-import-x": "^4.16.2",
55
- "eslint-plugin-jsdoc": "^63.0.6",
56
- "eslint-plugin-mdx": "^3.8.1",
57
- "eslint-plugin-n": "^18.1.0",
58
- "eslint-plugin-perfectionist": "^5.9.1",
59
- "eslint-plugin-prettier": "^5.5.6",
60
- "eslint-plugin-sonarjs": "^4.1.0",
61
- "eslint-plugin-unicorn": "^68.0.0",
62
- "globals": "^17.6.0",
63
- "prettier": "^3.8.4",
64
- "prettier-plugin-packagejson": "^3.0.2",
60
+ "eslint-plugin-perfectionist": "^5.10.0",
61
+ "oxfmt": "^0.61.0",
62
+ "oxlint": "^1.76.0",
63
+ "oxlint-tsgolint": "^7.0.2001",
65
64
  "termost": "^1.9.1",
66
- "turbo": "^2.9.18",
67
- "typescript": "^6.0.3",
68
- "typescript-eslint": "^8.61.1"
65
+ "turbo": "^2.10.8",
66
+ "typescript": "^6.0.3"
69
67
  },
70
68
  "devDependencies": {
71
- "@types/node": "24.13.2",
72
- "quickbundle": "3.0.0"
73
- },
74
- "publishConfig": {
75
- "access": "public",
76
- "registry": "https://registry.npmjs.org"
69
+ "@types/node": "24.13.3",
70
+ "quickbundle": "3.1.0"
77
71
  },
78
72
  "scripts": {
79
73
  "build": "quickbundle build",
@@ -19,12 +19,12 @@ jobs:
19
19
  id-token: write
20
20
  pull-requests: write
21
21
  steps:
22
- - uses: actions/checkout@v6
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
23
  - uses: pnpm/action-setup@v6
24
- - uses: actions/setup-node@v6
24
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
25
25
  with:
26
26
  cache: pnpm
27
- node-version-file: ".nvmrc"
27
+ node-version-file: "package.json"
28
28
  - name: Install dependencies
29
29
  run: pnpm install --frozen-lockfile
30
30
  - name: Publish pre-release version(s)
@@ -12,7 +12,7 @@ jobs:
12
12
  if: github.actor == 'renovate[bot]'
13
13
  steps:
14
14
  - name: Checkout
15
- uses: actions/checkout@v6
15
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
16
16
  with:
17
17
  fetch-depth: 2
18
18
  ref: ${{ github.head_ref }}
@@ -9,12 +9,12 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - name: Checkout the code
12
- uses: actions/checkout@v6
12
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
13
13
  - uses: pnpm/action-setup@v6
14
- - uses: actions/setup-node@v6
14
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
15
15
  with:
16
16
  cache: pnpm
17
- node-version-file: ".nvmrc"
17
+ node-version-file: "package.json"
18
18
  - name: Install dependencies
19
19
  run: pnpm install --frozen-lockfile
20
20
  - name: Build
@@ -1,3 +1,3 @@
1
1
  {
2
- "recommendations": ["dbaeumer.vscode-eslint"]
2
+ "recommendations": ["oxc.oxc-vscode"]
3
3
  }
@@ -1,19 +1,13 @@
1
1
  {
2
- "eslint.validate": [
3
- "javascript",
4
- "javascriptreact",
5
- "typescript",
6
- "typescriptreact",
7
- "markdown",
8
- "mdx",
9
- "astro"
10
- ],
2
+ "editor.defaultFormatter": "oxc.oxc-vscode",
3
+ "editor.formatOnSave": true,
11
4
  "editor.codeActionsOnSave": {
12
- "source.fixAll.eslint": "explicit",
13
- "source.fixAll.ts": "explicit",
14
- "source.addMissingImports.ts": "explicit",
5
+ "source.format.oxc": "always",
6
+ "source.fixAll.oxc": "always",
7
+ "source.fixAll.ts": "always",
8
+ "source.addMissingImports.ts": "always",
15
9
  "source.organizeImports": "never",
16
- "source.organizeLinkDefinitions": "explicit",
10
+ "source.organizeLinkDefinitions": "always",
17
11
  "source.removeUnused.ts": "never",
18
12
  "source.removeUnusedImports": "never",
19
13
  "source.sortImports": "never"
@@ -4,15 +4,18 @@
4
4
  "description": "{{projectDescription}}",
5
5
  "homepage": "https://github.com/{{repoId}}/tree/main/{{projectName}}#readme",
6
6
  "bugs": "https://github.com/{{repoId}}/issues",
7
+ "license": "MIT",
8
+ "author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
7
9
  "repository": {
8
10
  "type": "git",
9
11
  "url": "{{projectUrl}}",
10
12
  "directory": "libraries/{{projectName}}"
11
13
  },
12
- "license": "MIT",
13
- "author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
14
- "sideEffects": false,
14
+ "files": [
15
+ "dist"
16
+ ],
15
17
  "type": "module",
18
+ "sideEffects": false,
16
19
  "exports": {
17
20
  "source": "./src/index.ts",
18
21
  "types": "./dist/index.d.ts",
@@ -20,9 +23,10 @@
20
23
  "import": "./dist/index.mjs",
21
24
  "default": "./dist/index.mjs"
22
25
  },
23
- "files": [
24
- "dist"
25
- ],
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "registry": "https://registry.npmjs.org"
29
+ },
26
30
  "scripts": {
27
31
  "build": "pnpm clean && quickbundle build",
28
32
  "clean": "rm -rf dist",
@@ -30,9 +34,5 @@
30
34
  "start": "pnpm watch",
31
35
  "test": "vitest --passWithNoTests --typecheck --reporter=verbose",
32
36
  "watch": "quickbundle watch"
33
- },
34
- "publishConfig": {
35
- "access": "public",
36
- "registry": "https://registry.npmjs.org"
37
37
  }
38
38
  }
@@ -0,0 +1 @@
1
+ export { default } from "@adbayb/stack/oxfmt";
@@ -0,0 +1 @@
1
+ export { default } from "@adbayb/stack/oxlint";
@@ -16,8 +16,6 @@
16
16
  "test": "stack test",
17
17
  "watch": "stack watch"
18
18
  },
19
- "prettier": "@adbayb/stack/prettier",
20
- "packageManager": "pnpm@{{pnpmVersion}}",
21
19
  "devEngines": {
22
20
  "packageManager": {
23
21
  "name": "pnpm",
@@ -26,8 +24,9 @@
26
24
  },
27
25
  "runtime": {
28
26
  "name": "node",
29
- "version": ">=24.0.0",
27
+ "version": "{{nodeVersion}}",
30
28
  "onFail": "error"
31
29
  }
32
- }
30
+ },
31
+ "packageManager": "pnpm@{{pnpmVersion}}"
33
32
  }
@@ -1,20 +1,19 @@
1
- allowBuilds:
2
- esbuild: true
3
- unrs-resolver: true
4
- minimumReleaseAgeExclude:
5
- - "@adbayb/*"
6
1
  packages:
7
2
  - "applications/*"
8
3
  - "examples/*"
9
4
  - "libraries/*"
10
5
  - "tools/*"
6
+ saveExact: true
7
+ verifyDepsBeforeRun: "warn"
8
+ update:
9
+ githubActions: true
10
+ minimumReleaseAgeExclude:
11
+ - "@adbayb/*"
11
12
  publicHoistPattern:
12
13
  - "*changesets*"
13
14
  - "*commitlint*"
14
- - "*eslint*"
15
- - "*prettier*"
15
+ - "*oxfmt*"
16
+ - "*oxlint*"
16
17
  - "*turbo*"
17
18
  - "*typescript*"
18
19
  - "*types*"
19
- saveExact: true
20
- verifyDepsBeforeRun: "warn"
@@ -19,12 +19,12 @@ jobs:
19
19
  id-token: write
20
20
  pull-requests: write
21
21
  steps:
22
- - uses: actions/checkout@v6
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
23
  - uses: pnpm/action-setup@v6
24
- - uses: actions/setup-node@v6
24
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
25
25
  with:
26
26
  cache: pnpm
27
- node-version-file: ".nvmrc"
27
+ node-version-file: "package.json"
28
28
  - name: Install dependencies
29
29
  run: pnpm install --frozen-lockfile
30
30
  - name: Publish pre-release version(s)
@@ -12,7 +12,7 @@ jobs:
12
12
  if: github.actor == 'renovate[bot]'
13
13
  steps:
14
14
  - name: Checkout
15
- uses: actions/checkout@v6
15
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
16
16
  with:
17
17
  fetch-depth: 2
18
18
  ref: ${{ github.head_ref }}
@@ -9,12 +9,12 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - name: Checkout the code
12
- uses: actions/checkout@v6
12
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
13
13
  - uses: pnpm/action-setup@v6
14
- - uses: actions/setup-node@v6
14
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
15
15
  with:
16
16
  cache: pnpm
17
- node-version-file: ".nvmrc"
17
+ node-version-file: "package.json"
18
18
  - name: Install dependencies
19
19
  run: pnpm install --frozen-lockfile
20
20
  - name: Build
@@ -1,3 +1,3 @@
1
1
  {
2
- "recommendations": ["dbaeumer.vscode-eslint"]
2
+ "recommendations": ["oxc.oxc-vscode"]
3
3
  }
@@ -1,19 +1,13 @@
1
1
  {
2
- "eslint.validate": [
3
- "javascript",
4
- "javascriptreact",
5
- "typescript",
6
- "typescriptreact",
7
- "markdown",
8
- "mdx",
9
- "astro"
10
- ],
2
+ "editor.defaultFormatter": "oxc.oxc-vscode",
3
+ "editor.formatOnSave": true,
11
4
  "editor.codeActionsOnSave": {
12
- "source.fixAll.eslint": "explicit",
13
- "source.fixAll.ts": "explicit",
14
- "source.addMissingImports.ts": "explicit",
5
+ "source.format.oxc": "always",
6
+ "source.fixAll.oxc": "always",
7
+ "source.fixAll.ts": "always",
8
+ "source.addMissingImports.ts": "always",
15
9
  "source.organizeImports": "never",
16
- "source.organizeLinkDefinitions": "explicit",
10
+ "source.organizeLinkDefinitions": "always",
17
11
  "source.removeUnused.ts": "never",
18
12
  "source.removeUnusedImports": "never",
19
13
  "source.sortImports": "never"
@@ -0,0 +1 @@
1
+ export { default } from "@adbayb/stack/oxfmt";
@@ -0,0 +1 @@
1
+ export { default } from "@adbayb/stack/oxlint";
@@ -16,8 +16,6 @@
16
16
  "test": "stack test",
17
17
  "watch": "stack watch"
18
18
  },
19
- "prettier": "@adbayb/stack/prettier",
20
- "packageManager": "pnpm@{{pnpmVersion}}",
21
19
  "devEngines": {
22
20
  "packageManager": {
23
21
  "name": "pnpm",
@@ -26,8 +24,9 @@
26
24
  },
27
25
  "runtime": {
28
26
  "name": "node",
29
- "version": ">=24.0.0",
27
+ "version": "{{nodeVersion}}",
30
28
  "onFail": "error"
31
29
  }
32
- }
30
+ },
31
+ "packageManager": "pnpm@{{pnpmVersion}}"
33
32
  }
@@ -1,19 +1,18 @@
1
- allowBuilds:
2
- esbuild: true
3
- unrs-resolver: true
4
- minimumReleaseAgeExclude:
5
- - "@adbayb/*"
6
1
  packages:
7
2
  - "examples/*"
8
3
  - "tools/*"
9
4
  - "{{projectName}}"
5
+ saveExact: true
6
+ verifyDepsBeforeRun: "warn"
7
+ update:
8
+ githubActions: true
9
+ minimumReleaseAgeExclude:
10
+ - "@adbayb/*"
10
11
  publicHoistPattern:
11
12
  - "*changesets*"
12
13
  - "*commitlint*"
13
- - "*eslint*"
14
- - "*prettier*"
14
+ - "*oxfmt*"
15
+ - "*oxlint*"
15
16
  - "*turbo*"
16
17
  - "*typescript*"
17
18
  - "*types*"
18
- saveExact: true
19
- verifyDepsBeforeRun: "warn"
@@ -4,15 +4,18 @@
4
4
  "description": "{{projectDescription}}",
5
5
  "homepage": "https://github.com/{{repoId}}/tree/main/{{projectName}}#readme",
6
6
  "bugs": "https://github.com/{{repoId}}/issues",
7
+ "license": "MIT",
8
+ "author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
7
9
  "repository": {
8
10
  "type": "git",
9
11
  "url": "{{projectUrl}}",
10
12
  "directory": "{{projectName}}"
11
13
  },
12
- "license": "MIT",
13
- "author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
14
- "sideEffects": false,
14
+ "files": [
15
+ "dist"
16
+ ],
15
17
  "type": "module",
18
+ "sideEffects": false,
16
19
  "exports": {
17
20
  "source": "./src/index.ts",
18
21
  "types": "./dist/index.d.ts",
@@ -20,9 +23,10 @@
20
23
  "import": "./dist/index.mjs",
21
24
  "default": "./dist/index.mjs"
22
25
  },
23
- "files": [
24
- "dist"
25
- ],
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "registry": "https://registry.npmjs.org"
29
+ },
26
30
  "scripts": {
27
31
  "build": "pnpm clean && quickbundle build",
28
32
  "clean": "rm -rf dist",
@@ -30,9 +34,5 @@
30
34
  "start": "pnpm watch",
31
35
  "test": "vitest --passWithNoTests --typecheck --reporter=verbose",
32
36
  "watch": "quickbundle watch"
33
- },
34
- "publishConfig": {
35
- "access": "public",
36
- "registry": "https://registry.npmjs.org"
37
37
  }
38
38
  }
@@ -1,37 +0,0 @@
1
- const JAVASCRIPT_EXTENSIONS = ["js", "jsx", "cjs", "mjs", "mjsx"];
2
- const TYPESCRIPT_EXTENSIONS = ["ts", "tsx", "cts", "mts", "mtsx"];
3
-
4
- const JAVASCRIPT_LIKE_EXTENSIONS = [
5
- ...JAVASCRIPT_EXTENSIONS,
6
- ...TYPESCRIPT_EXTENSIONS,
7
- ];
8
-
9
- const JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING =
10
- JAVASCRIPT_LIKE_EXTENSIONS.join(",");
11
-
12
- export const JAVASCRIPT_FILES = [`**/*.{${JAVASCRIPT_EXTENSIONS.join(",")}}`];
13
-
14
- export const TYPESCRIPT_FILES = [`**/*.{${TYPESCRIPT_EXTENSIONS.join(",")}}`];
15
-
16
- export const JAVASCRIPT_LIKE_FILES = [
17
- `**/*.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
18
- ];
19
-
20
- export const TEST_LIKE_FILES = [
21
- `**/{test,test-d}.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
22
- `**/*.{test,test-d}.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
23
- ];
24
-
25
- export const RELAXED_LIKE_FILES = [
26
- ...TEST_LIKE_FILES,
27
- "**/?(.)config?(s)/**",
28
- "**/examples/**",
29
- "**/scripts/**",
30
- "**/tools/**",
31
- `**/config?(s).{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
32
- `**/*.config?(s).{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
33
- `**/stories.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
34
- `**/*.stories.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
35
- ];
36
-
37
- export const CWD = process.cwd();
@@ -1,5 +0,0 @@
1
- import { createRequire } from "node:module";
2
-
3
- export const require = createRequire(import.meta.url);
4
-
5
- export { defineConfig as createConfig } from "eslint/config";
@@ -1,30 +0,0 @@
1
- import { createConfig } from "./helpers.js";
2
- import { config as dependenciesConfig } from "./presets/dependencies.js";
3
- import { config as eslintConfig } from "./presets/eslint.js";
4
- import { config as importConfig } from "./presets/import.js";
5
- import { config as jsdocConfig } from "./presets/jsdoc.js";
6
- import { config as markdownConfig } from "./presets/markdown.js";
7
- import { config as nodeConfig } from "./presets/node.js";
8
- import { prettierConfig } from "./presets/prettier.js";
9
- import { config as reactConfig } from "./presets/react.js";
10
- import { config as sonarConfig } from "./presets/sonar.js";
11
- import { config as stylisticConfig } from "./presets/stylistic.js";
12
- import { config as testConfig } from "./presets/test.js";
13
- import { config as typescriptConfig } from "./presets/typescript.js";
14
- import { config as unicornConfig } from "./presets/unicorn.js";
15
-
16
- export default createConfig(
17
- eslintConfig,
18
- typescriptConfig,
19
- prettierConfig,
20
- importConfig,
21
- jsdocConfig,
22
- markdownConfig,
23
- nodeConfig,
24
- reactConfig,
25
- sonarConfig,
26
- stylisticConfig,
27
- testConfig,
28
- unicornConfig,
29
- dependenciesConfig,
30
- );
@@ -1,14 +0,0 @@
1
- import dependPlugin from "eslint-plugin-depend";
2
-
3
- import { JAVASCRIPT_LIKE_FILES } from "../constants.js";
4
- import { createConfig } from "../helpers.js";
5
-
6
- export const config = createConfig({
7
- files: JAVASCRIPT_LIKE_FILES,
8
- plugins: {
9
- depend: dependPlugin,
10
- },
11
- rules: {
12
- "depend/ban-dependencies": "error",
13
- },
14
- });