@saasmakers/eslint 0.1.73 → 0.2.1
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/dist/eslint.config.cjs +51 -0
- package/dist/eslint.config.d.cts +50 -0
- package/dist/eslint.config.d.mts +50 -0
- package/dist/eslint.config.d.ts +50 -0
- package/dist/eslint.config.mjs +50 -0
- package/package.json +2 -6
package/dist/eslint.config.cjs
CHANGED
|
@@ -10,6 +10,7 @@ const fs = require('node:fs');
|
|
|
10
10
|
const node_module = require('node:module');
|
|
11
11
|
const storybook = require('eslint-plugin-storybook');
|
|
12
12
|
const turbo = require('eslint-plugin-turbo');
|
|
13
|
+
const zod = require('eslint-plugin-zod');
|
|
13
14
|
require('eslint');
|
|
14
15
|
require('eslint/use-at-your-own-risk');
|
|
15
16
|
|
|
@@ -36,6 +37,7 @@ const path__namespace = /*#__PURE__*/_interopNamespaceCompat(path);
|
|
|
36
37
|
const fs__namespace = /*#__PURE__*/_interopNamespaceCompat(fs);
|
|
37
38
|
const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
|
|
38
39
|
const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
|
|
40
|
+
const zod__default = /*#__PURE__*/_interopDefaultCompat(zod);
|
|
39
41
|
|
|
40
42
|
const name = 'eslint-plugin-perfectionist';
|
|
41
43
|
const version = '5.5.0';
|
|
@@ -10767,6 +10769,55 @@ const eslint_config = antfu__default(
|
|
|
10767
10769
|
},
|
|
10768
10770
|
...storybook__default.configs["flat/recommended"],
|
|
10769
10771
|
turbo__default.configs["flat/recommended"],
|
|
10772
|
+
zod__default.configs.recommended,
|
|
10773
|
+
...yml.configs.recommended,
|
|
10774
|
+
// Docker Compose
|
|
10775
|
+
{
|
|
10776
|
+
files: ["**/*.compose.yml", "**/docker-compose.yml"],
|
|
10777
|
+
rules: {
|
|
10778
|
+
"yaml/sort-keys": [
|
|
10779
|
+
"error",
|
|
10780
|
+
{
|
|
10781
|
+
order: ["name", "services", "volumes", "networks"],
|
|
10782
|
+
pathPattern: "^$"
|
|
10783
|
+
},
|
|
10784
|
+
{
|
|
10785
|
+
order: [
|
|
10786
|
+
"image",
|
|
10787
|
+
"build",
|
|
10788
|
+
"restart",
|
|
10789
|
+
"command",
|
|
10790
|
+
"entrypoint",
|
|
10791
|
+
"env_file",
|
|
10792
|
+
"environment",
|
|
10793
|
+
"depends_on",
|
|
10794
|
+
"ports",
|
|
10795
|
+
"volumes",
|
|
10796
|
+
"healthcheck",
|
|
10797
|
+
"networks",
|
|
10798
|
+
"labels"
|
|
10799
|
+
],
|
|
10800
|
+
pathPattern: "^services\\.[\\w-]+$"
|
|
10801
|
+
},
|
|
10802
|
+
{
|
|
10803
|
+
order: ["context", "dockerfile", "args", "target"],
|
|
10804
|
+
pathPattern: "^services\\.[\\w-]+\\.build$"
|
|
10805
|
+
},
|
|
10806
|
+
{
|
|
10807
|
+
order: ["condition"],
|
|
10808
|
+
pathPattern: "^services\\.[\\w-]+\\.depends_on\\.[\\w-]+$"
|
|
10809
|
+
},
|
|
10810
|
+
{
|
|
10811
|
+
order: ["test", "interval", "timeout", "retries", "start_period"],
|
|
10812
|
+
pathPattern: "^services\\.[\\w-]+\\.healthcheck$"
|
|
10813
|
+
},
|
|
10814
|
+
{
|
|
10815
|
+
order: ["name", "external", "driver"],
|
|
10816
|
+
pathPattern: "^volumes\\.[\\w-]+$"
|
|
10817
|
+
}
|
|
10818
|
+
]
|
|
10819
|
+
}
|
|
10820
|
+
},
|
|
10770
10821
|
// Package.json
|
|
10771
10822
|
packageJson__default.configs.recommended,
|
|
10772
10823
|
packageJson__default.configs.stylistic,
|
package/dist/eslint.config.d.cts
CHANGED
|
@@ -5,6 +5,7 @@ import packageJson from 'eslint-plugin-package-json';
|
|
|
5
5
|
import { Linter, ESLint } from 'eslint';
|
|
6
6
|
import storybook from 'eslint-plugin-storybook';
|
|
7
7
|
import turbo from 'eslint-plugin-turbo';
|
|
8
|
+
import zod from 'eslint-plugin-zod';
|
|
8
9
|
|
|
9
10
|
interface PluginConfigs extends Record<
|
|
10
11
|
string,
|
|
@@ -47,6 +48,55 @@ var eslint_config = antfu(
|
|
|
47
48
|
},
|
|
48
49
|
...storybook.configs["flat/recommended"],
|
|
49
50
|
turbo.configs["flat/recommended"],
|
|
51
|
+
zod.configs.recommended,
|
|
52
|
+
...yml.configs.recommended,
|
|
53
|
+
// Docker Compose
|
|
54
|
+
{
|
|
55
|
+
files: ["**/*.compose.yml", "**/docker-compose.yml"],
|
|
56
|
+
rules: {
|
|
57
|
+
"yaml/sort-keys": [
|
|
58
|
+
"error",
|
|
59
|
+
{
|
|
60
|
+
order: ["name", "services", "volumes", "networks"],
|
|
61
|
+
pathPattern: "^$"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
order: [
|
|
65
|
+
"image",
|
|
66
|
+
"build",
|
|
67
|
+
"restart",
|
|
68
|
+
"command",
|
|
69
|
+
"entrypoint",
|
|
70
|
+
"env_file",
|
|
71
|
+
"environment",
|
|
72
|
+
"depends_on",
|
|
73
|
+
"ports",
|
|
74
|
+
"volumes",
|
|
75
|
+
"healthcheck",
|
|
76
|
+
"networks",
|
|
77
|
+
"labels"
|
|
78
|
+
],
|
|
79
|
+
pathPattern: "^services\\.[\\w-]+$"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
order: ["context", "dockerfile", "args", "target"],
|
|
83
|
+
pathPattern: "^services\\.[\\w-]+\\.build$"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
order: ["condition"],
|
|
87
|
+
pathPattern: "^services\\.[\\w-]+\\.depends_on\\.[\\w-]+$"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
order: ["test", "interval", "timeout", "retries", "start_period"],
|
|
91
|
+
pathPattern: "^services\\.[\\w-]+\\.healthcheck$"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
order: ["name", "external", "driver"],
|
|
95
|
+
pathPattern: "^volumes\\.[\\w-]+$"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
50
100
|
// Package.json
|
|
51
101
|
packageJson.configs.recommended,
|
|
52
102
|
packageJson.configs.stylistic,
|
package/dist/eslint.config.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import packageJson from 'eslint-plugin-package-json';
|
|
|
5
5
|
import { Linter, ESLint } from 'eslint';
|
|
6
6
|
import storybook from 'eslint-plugin-storybook';
|
|
7
7
|
import turbo from 'eslint-plugin-turbo';
|
|
8
|
+
import zod from 'eslint-plugin-zod';
|
|
8
9
|
|
|
9
10
|
interface PluginConfigs extends Record<
|
|
10
11
|
string,
|
|
@@ -47,6 +48,55 @@ var eslint_config = antfu(
|
|
|
47
48
|
},
|
|
48
49
|
...storybook.configs["flat/recommended"],
|
|
49
50
|
turbo.configs["flat/recommended"],
|
|
51
|
+
zod.configs.recommended,
|
|
52
|
+
...yml.configs.recommended,
|
|
53
|
+
// Docker Compose
|
|
54
|
+
{
|
|
55
|
+
files: ["**/*.compose.yml", "**/docker-compose.yml"],
|
|
56
|
+
rules: {
|
|
57
|
+
"yaml/sort-keys": [
|
|
58
|
+
"error",
|
|
59
|
+
{
|
|
60
|
+
order: ["name", "services", "volumes", "networks"],
|
|
61
|
+
pathPattern: "^$"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
order: [
|
|
65
|
+
"image",
|
|
66
|
+
"build",
|
|
67
|
+
"restart",
|
|
68
|
+
"command",
|
|
69
|
+
"entrypoint",
|
|
70
|
+
"env_file",
|
|
71
|
+
"environment",
|
|
72
|
+
"depends_on",
|
|
73
|
+
"ports",
|
|
74
|
+
"volumes",
|
|
75
|
+
"healthcheck",
|
|
76
|
+
"networks",
|
|
77
|
+
"labels"
|
|
78
|
+
],
|
|
79
|
+
pathPattern: "^services\\.[\\w-]+$"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
order: ["context", "dockerfile", "args", "target"],
|
|
83
|
+
pathPattern: "^services\\.[\\w-]+\\.build$"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
order: ["condition"],
|
|
87
|
+
pathPattern: "^services\\.[\\w-]+\\.depends_on\\.[\\w-]+$"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
order: ["test", "interval", "timeout", "retries", "start_period"],
|
|
91
|
+
pathPattern: "^services\\.[\\w-]+\\.healthcheck$"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
order: ["name", "external", "driver"],
|
|
95
|
+
pathPattern: "^volumes\\.[\\w-]+$"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
50
100
|
// Package.json
|
|
51
101
|
packageJson.configs.recommended,
|
|
52
102
|
packageJson.configs.stylistic,
|
package/dist/eslint.config.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import packageJson from 'eslint-plugin-package-json';
|
|
|
5
5
|
import { Linter, ESLint } from 'eslint';
|
|
6
6
|
import storybook from 'eslint-plugin-storybook';
|
|
7
7
|
import turbo from 'eslint-plugin-turbo';
|
|
8
|
+
import zod from 'eslint-plugin-zod';
|
|
8
9
|
|
|
9
10
|
interface PluginConfigs extends Record<
|
|
10
11
|
string,
|
|
@@ -47,6 +48,55 @@ var eslint_config = antfu(
|
|
|
47
48
|
},
|
|
48
49
|
...storybook.configs["flat/recommended"],
|
|
49
50
|
turbo.configs["flat/recommended"],
|
|
51
|
+
zod.configs.recommended,
|
|
52
|
+
...yml.configs.recommended,
|
|
53
|
+
// Docker Compose
|
|
54
|
+
{
|
|
55
|
+
files: ["**/*.compose.yml", "**/docker-compose.yml"],
|
|
56
|
+
rules: {
|
|
57
|
+
"yaml/sort-keys": [
|
|
58
|
+
"error",
|
|
59
|
+
{
|
|
60
|
+
order: ["name", "services", "volumes", "networks"],
|
|
61
|
+
pathPattern: "^$"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
order: [
|
|
65
|
+
"image",
|
|
66
|
+
"build",
|
|
67
|
+
"restart",
|
|
68
|
+
"command",
|
|
69
|
+
"entrypoint",
|
|
70
|
+
"env_file",
|
|
71
|
+
"environment",
|
|
72
|
+
"depends_on",
|
|
73
|
+
"ports",
|
|
74
|
+
"volumes",
|
|
75
|
+
"healthcheck",
|
|
76
|
+
"networks",
|
|
77
|
+
"labels"
|
|
78
|
+
],
|
|
79
|
+
pathPattern: "^services\\.[\\w-]+$"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
order: ["context", "dockerfile", "args", "target"],
|
|
83
|
+
pathPattern: "^services\\.[\\w-]+\\.build$"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
order: ["condition"],
|
|
87
|
+
pathPattern: "^services\\.[\\w-]+\\.depends_on\\.[\\w-]+$"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
order: ["test", "interval", "timeout", "retries", "start_period"],
|
|
91
|
+
pathPattern: "^services\\.[\\w-]+\\.healthcheck$"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
order: ["name", "external", "driver"],
|
|
95
|
+
pathPattern: "^volumes\\.[\\w-]+$"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
50
100
|
// Package.json
|
|
51
101
|
packageJson.configs.recommended,
|
|
52
102
|
packageJson.configs.stylistic,
|
package/dist/eslint.config.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import * as fs from 'node:fs';
|
|
|
8
8
|
import { createRequire, builtinModules } from 'node:module';
|
|
9
9
|
import storybook from 'eslint-plugin-storybook';
|
|
10
10
|
import turbo from 'eslint-plugin-turbo';
|
|
11
|
+
import zod from 'eslint-plugin-zod';
|
|
11
12
|
import 'eslint';
|
|
12
13
|
import 'eslint/use-at-your-own-risk';
|
|
13
14
|
|
|
@@ -10741,6 +10742,55 @@ const eslint_config = antfu(
|
|
|
10741
10742
|
},
|
|
10742
10743
|
...storybook.configs["flat/recommended"],
|
|
10743
10744
|
turbo.configs["flat/recommended"],
|
|
10745
|
+
zod.configs.recommended,
|
|
10746
|
+
...yml.configs.recommended,
|
|
10747
|
+
// Docker Compose
|
|
10748
|
+
{
|
|
10749
|
+
files: ["**/*.compose.yml", "**/docker-compose.yml"],
|
|
10750
|
+
rules: {
|
|
10751
|
+
"yaml/sort-keys": [
|
|
10752
|
+
"error",
|
|
10753
|
+
{
|
|
10754
|
+
order: ["name", "services", "volumes", "networks"],
|
|
10755
|
+
pathPattern: "^$"
|
|
10756
|
+
},
|
|
10757
|
+
{
|
|
10758
|
+
order: [
|
|
10759
|
+
"image",
|
|
10760
|
+
"build",
|
|
10761
|
+
"restart",
|
|
10762
|
+
"command",
|
|
10763
|
+
"entrypoint",
|
|
10764
|
+
"env_file",
|
|
10765
|
+
"environment",
|
|
10766
|
+
"depends_on",
|
|
10767
|
+
"ports",
|
|
10768
|
+
"volumes",
|
|
10769
|
+
"healthcheck",
|
|
10770
|
+
"networks",
|
|
10771
|
+
"labels"
|
|
10772
|
+
],
|
|
10773
|
+
pathPattern: "^services\\.[\\w-]+$"
|
|
10774
|
+
},
|
|
10775
|
+
{
|
|
10776
|
+
order: ["context", "dockerfile", "args", "target"],
|
|
10777
|
+
pathPattern: "^services\\.[\\w-]+\\.build$"
|
|
10778
|
+
},
|
|
10779
|
+
{
|
|
10780
|
+
order: ["condition"],
|
|
10781
|
+
pathPattern: "^services\\.[\\w-]+\\.depends_on\\.[\\w-]+$"
|
|
10782
|
+
},
|
|
10783
|
+
{
|
|
10784
|
+
order: ["test", "interval", "timeout", "retries", "start_period"],
|
|
10785
|
+
pathPattern: "^services\\.[\\w-]+\\.healthcheck$"
|
|
10786
|
+
},
|
|
10787
|
+
{
|
|
10788
|
+
order: ["name", "external", "driver"],
|
|
10789
|
+
pathPattern: "^volumes\\.[\\w-]+$"
|
|
10790
|
+
}
|
|
10791
|
+
]
|
|
10792
|
+
}
|
|
10793
|
+
},
|
|
10744
10794
|
// Package.json
|
|
10745
10795
|
packageJson.configs.recommended,
|
|
10746
10796
|
packageJson.configs.stylistic,
|
package/package.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/eslint",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared ESLint config and rules for SaaS Makers projects",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/saasmakers/saasmakers-turborepo.git",
|
|
9
|
-
"directory": "packages/eslint"
|
|
10
|
-
},
|
|
11
6
|
"license": "MIT",
|
|
12
7
|
"author": "SaaS Makers",
|
|
13
8
|
"sideEffects": false,
|
|
@@ -37,6 +32,7 @@
|
|
|
37
32
|
"eslint-plugin-package-json": "0.31.0",
|
|
38
33
|
"eslint-plugin-storybook": "10.2.8",
|
|
39
34
|
"eslint-plugin-turbo": "2.8.10",
|
|
35
|
+
"eslint-plugin-zod": "3.4.0",
|
|
40
36
|
"typescript-eslint": "8.55.0"
|
|
41
37
|
},
|
|
42
38
|
"devDependencies": {
|