@saasmakers/eslint 0.1.68 → 0.1.70
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 +43 -9
- package/dist/eslint.config.d.cts +41 -9
- package/dist/eslint.config.d.mts +41 -9
- package/dist/eslint.config.d.ts +41 -9
- package/dist/eslint.config.mjs +41 -9
- package/package.json +4 -2
package/dist/eslint.config.cjs
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
const antfu = require('@antfu/eslint-config');
|
|
4
4
|
const saasmakers = require('@saasmakers/eslint');
|
|
5
|
+
const vitest = require('@vitest/eslint-plugin');
|
|
5
6
|
const index$1 = require('./shared/eslint.DhFjwkxh.cjs');
|
|
6
7
|
const path = require('node:path');
|
|
7
8
|
const fs = require('node:fs');
|
|
8
9
|
const node_module = require('node:module');
|
|
9
10
|
const storybook = require('eslint-plugin-storybook');
|
|
11
|
+
const turbo = require('eslint-plugin-turbo');
|
|
10
12
|
require('eslint');
|
|
11
13
|
require('eslint/use-at-your-own-risk');
|
|
12
14
|
|
|
@@ -27,9 +29,11 @@ function _interopNamespaceCompat(e) {
|
|
|
27
29
|
|
|
28
30
|
const antfu__default = /*#__PURE__*/_interopDefaultCompat(antfu);
|
|
29
31
|
const saasmakers__default = /*#__PURE__*/_interopDefaultCompat(saasmakers);
|
|
32
|
+
const vitest__default = /*#__PURE__*/_interopDefaultCompat(vitest);
|
|
30
33
|
const path__namespace = /*#__PURE__*/_interopNamespaceCompat(path);
|
|
31
34
|
const fs__namespace = /*#__PURE__*/_interopNamespaceCompat(fs);
|
|
32
35
|
const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
|
|
36
|
+
const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
|
|
33
37
|
|
|
34
38
|
const name = 'eslint-plugin-perfectionist';
|
|
35
39
|
const version = '5.5.0';
|
|
@@ -10754,17 +10758,16 @@ const eslint_config = antfu__default(
|
|
|
10754
10758
|
"**/ios",
|
|
10755
10759
|
"node_modules"
|
|
10756
10760
|
],
|
|
10761
|
+
test: false,
|
|
10757
10762
|
typescript: true,
|
|
10758
10763
|
unocss: true,
|
|
10759
|
-
vue: {
|
|
10760
|
-
a11y: true
|
|
10761
|
-
}
|
|
10764
|
+
vue: { a11y: true }
|
|
10762
10765
|
},
|
|
10763
10766
|
...storybook__default.configs["flat/recommended"],
|
|
10767
|
+
turbo__default.configs["flat/recommended"],
|
|
10768
|
+
// SaaS Makers
|
|
10764
10769
|
{
|
|
10765
|
-
plugins: {
|
|
10766
|
-
saasmakers: saasmakers__default
|
|
10767
|
-
},
|
|
10770
|
+
plugins: { saasmakers: saasmakers__default },
|
|
10768
10771
|
rules: {
|
|
10769
10772
|
// Override rules defined by Antfu ESLint config
|
|
10770
10773
|
// Try to keep the disabled rules to a minimum
|
|
@@ -10772,14 +10775,45 @@ const eslint_config = antfu__default(
|
|
|
10772
10775
|
"node/prefer-global/process": "off",
|
|
10773
10776
|
"pnpm/yaml-enforce-settings": "off",
|
|
10774
10777
|
"ts/no-use-before-define": "off",
|
|
10778
|
+
// ESLint
|
|
10779
|
+
"object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
|
|
10780
|
+
"object-curly-newline": ["error", {
|
|
10781
|
+
ExportDeclaration: {
|
|
10782
|
+
minProperties: 2,
|
|
10783
|
+
multiline: true
|
|
10784
|
+
},
|
|
10785
|
+
ImportDeclaration: "never",
|
|
10786
|
+
ObjectExpression: {
|
|
10787
|
+
minProperties: 2,
|
|
10788
|
+
multiline: true
|
|
10789
|
+
},
|
|
10790
|
+
ObjectPattern: "never"
|
|
10791
|
+
}],
|
|
10775
10792
|
// Perfectionist
|
|
10776
10793
|
...index.configs["recommended-natural"].rules,
|
|
10777
|
-
"perfectionist/sort-imports": ["error", {
|
|
10778
|
-
|
|
10779
|
-
|
|
10794
|
+
"perfectionist/sort-imports": ["error", {
|
|
10795
|
+
newlinesBetween: 0,
|
|
10796
|
+
type: "natural"
|
|
10797
|
+
}],
|
|
10798
|
+
"perfectionist/sort-modules": ["error", {
|
|
10799
|
+
partitionByComment: true,
|
|
10800
|
+
type: "natural"
|
|
10801
|
+
}],
|
|
10802
|
+
"perfectionist/sort-objects": ["error", {
|
|
10803
|
+
partitionByComment: true,
|
|
10804
|
+
partitionByNewLine: true,
|
|
10805
|
+
type: "natural"
|
|
10806
|
+
}],
|
|
10780
10807
|
// SaaS Makers
|
|
10781
10808
|
"saasmakers/ts-sort-tests": "error"
|
|
10782
10809
|
}
|
|
10810
|
+
},
|
|
10811
|
+
// Vitest
|
|
10812
|
+
{
|
|
10813
|
+
files: ["**/*.test.ts"],
|
|
10814
|
+
...vitest__default.configs.all,
|
|
10815
|
+
languageOptions: { globals: { ...vitest__default.environments.env.globals } },
|
|
10816
|
+
settings: { vitest: { typecheck: true } }
|
|
10783
10817
|
}
|
|
10784
10818
|
);
|
|
10785
10819
|
|
package/dist/eslint.config.d.cts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
2
|
import saasmakers from '@saasmakers/eslint';
|
|
3
|
+
import vitest from '@vitest/eslint-plugin';
|
|
3
4
|
import { Linter, ESLint } from 'eslint';
|
|
4
5
|
import storybook from 'eslint-plugin-storybook';
|
|
6
|
+
import turbo from 'eslint-plugin-turbo';
|
|
5
7
|
|
|
6
8
|
interface PluginConfigs extends Record<
|
|
7
9
|
string,
|
|
@@ -37,17 +39,16 @@ var eslint_config = antfu(
|
|
|
37
39
|
"**/ios",
|
|
38
40
|
"node_modules"
|
|
39
41
|
],
|
|
42
|
+
test: false,
|
|
40
43
|
typescript: true,
|
|
41
44
|
unocss: true,
|
|
42
|
-
vue: {
|
|
43
|
-
a11y: true
|
|
44
|
-
}
|
|
45
|
+
vue: { a11y: true }
|
|
45
46
|
},
|
|
46
47
|
...storybook.configs["flat/recommended"],
|
|
48
|
+
turbo.configs["flat/recommended"],
|
|
49
|
+
// SaaS Makers
|
|
47
50
|
{
|
|
48
|
-
plugins: {
|
|
49
|
-
saasmakers
|
|
50
|
-
},
|
|
51
|
+
plugins: { saasmakers },
|
|
51
52
|
rules: {
|
|
52
53
|
// Override rules defined by Antfu ESLint config
|
|
53
54
|
// Try to keep the disabled rules to a minimum
|
|
@@ -55,14 +56,45 @@ var eslint_config = antfu(
|
|
|
55
56
|
"node/prefer-global/process": "off",
|
|
56
57
|
"pnpm/yaml-enforce-settings": "off",
|
|
57
58
|
"ts/no-use-before-define": "off",
|
|
59
|
+
// ESLint
|
|
60
|
+
"object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
|
|
61
|
+
"object-curly-newline": ["error", {
|
|
62
|
+
ExportDeclaration: {
|
|
63
|
+
minProperties: 2,
|
|
64
|
+
multiline: true
|
|
65
|
+
},
|
|
66
|
+
ImportDeclaration: "never",
|
|
67
|
+
ObjectExpression: {
|
|
68
|
+
minProperties: 2,
|
|
69
|
+
multiline: true
|
|
70
|
+
},
|
|
71
|
+
ObjectPattern: "never"
|
|
72
|
+
}],
|
|
58
73
|
// Perfectionist
|
|
59
74
|
..._default.configs["recommended-natural"].rules,
|
|
60
|
-
"perfectionist/sort-imports": ["error", {
|
|
61
|
-
|
|
62
|
-
|
|
75
|
+
"perfectionist/sort-imports": ["error", {
|
|
76
|
+
newlinesBetween: 0,
|
|
77
|
+
type: "natural"
|
|
78
|
+
}],
|
|
79
|
+
"perfectionist/sort-modules": ["error", {
|
|
80
|
+
partitionByComment: true,
|
|
81
|
+
type: "natural"
|
|
82
|
+
}],
|
|
83
|
+
"perfectionist/sort-objects": ["error", {
|
|
84
|
+
partitionByComment: true,
|
|
85
|
+
partitionByNewLine: true,
|
|
86
|
+
type: "natural"
|
|
87
|
+
}],
|
|
63
88
|
// SaaS Makers
|
|
64
89
|
"saasmakers/ts-sort-tests": "error"
|
|
65
90
|
}
|
|
91
|
+
},
|
|
92
|
+
// Vitest
|
|
93
|
+
{
|
|
94
|
+
files: ["**/*.test.ts"],
|
|
95
|
+
...vitest.configs.all,
|
|
96
|
+
languageOptions: { globals: { ...vitest.environments.env.globals } },
|
|
97
|
+
settings: { vitest: { typecheck: true } }
|
|
66
98
|
}
|
|
67
99
|
);
|
|
68
100
|
|
package/dist/eslint.config.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
2
|
import saasmakers from '@saasmakers/eslint';
|
|
3
|
+
import vitest from '@vitest/eslint-plugin';
|
|
3
4
|
import { Linter, ESLint } from 'eslint';
|
|
4
5
|
import storybook from 'eslint-plugin-storybook';
|
|
6
|
+
import turbo from 'eslint-plugin-turbo';
|
|
5
7
|
|
|
6
8
|
interface PluginConfigs extends Record<
|
|
7
9
|
string,
|
|
@@ -37,17 +39,16 @@ var eslint_config = antfu(
|
|
|
37
39
|
"**/ios",
|
|
38
40
|
"node_modules"
|
|
39
41
|
],
|
|
42
|
+
test: false,
|
|
40
43
|
typescript: true,
|
|
41
44
|
unocss: true,
|
|
42
|
-
vue: {
|
|
43
|
-
a11y: true
|
|
44
|
-
}
|
|
45
|
+
vue: { a11y: true }
|
|
45
46
|
},
|
|
46
47
|
...storybook.configs["flat/recommended"],
|
|
48
|
+
turbo.configs["flat/recommended"],
|
|
49
|
+
// SaaS Makers
|
|
47
50
|
{
|
|
48
|
-
plugins: {
|
|
49
|
-
saasmakers
|
|
50
|
-
},
|
|
51
|
+
plugins: { saasmakers },
|
|
51
52
|
rules: {
|
|
52
53
|
// Override rules defined by Antfu ESLint config
|
|
53
54
|
// Try to keep the disabled rules to a minimum
|
|
@@ -55,14 +56,45 @@ var eslint_config = antfu(
|
|
|
55
56
|
"node/prefer-global/process": "off",
|
|
56
57
|
"pnpm/yaml-enforce-settings": "off",
|
|
57
58
|
"ts/no-use-before-define": "off",
|
|
59
|
+
// ESLint
|
|
60
|
+
"object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
|
|
61
|
+
"object-curly-newline": ["error", {
|
|
62
|
+
ExportDeclaration: {
|
|
63
|
+
minProperties: 2,
|
|
64
|
+
multiline: true
|
|
65
|
+
},
|
|
66
|
+
ImportDeclaration: "never",
|
|
67
|
+
ObjectExpression: {
|
|
68
|
+
minProperties: 2,
|
|
69
|
+
multiline: true
|
|
70
|
+
},
|
|
71
|
+
ObjectPattern: "never"
|
|
72
|
+
}],
|
|
58
73
|
// Perfectionist
|
|
59
74
|
..._default.configs["recommended-natural"].rules,
|
|
60
|
-
"perfectionist/sort-imports": ["error", {
|
|
61
|
-
|
|
62
|
-
|
|
75
|
+
"perfectionist/sort-imports": ["error", {
|
|
76
|
+
newlinesBetween: 0,
|
|
77
|
+
type: "natural"
|
|
78
|
+
}],
|
|
79
|
+
"perfectionist/sort-modules": ["error", {
|
|
80
|
+
partitionByComment: true,
|
|
81
|
+
type: "natural"
|
|
82
|
+
}],
|
|
83
|
+
"perfectionist/sort-objects": ["error", {
|
|
84
|
+
partitionByComment: true,
|
|
85
|
+
partitionByNewLine: true,
|
|
86
|
+
type: "natural"
|
|
87
|
+
}],
|
|
63
88
|
// SaaS Makers
|
|
64
89
|
"saasmakers/ts-sort-tests": "error"
|
|
65
90
|
}
|
|
91
|
+
},
|
|
92
|
+
// Vitest
|
|
93
|
+
{
|
|
94
|
+
files: ["**/*.test.ts"],
|
|
95
|
+
...vitest.configs.all,
|
|
96
|
+
languageOptions: { globals: { ...vitest.environments.env.globals } },
|
|
97
|
+
settings: { vitest: { typecheck: true } }
|
|
66
98
|
}
|
|
67
99
|
);
|
|
68
100
|
|
package/dist/eslint.config.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
2
|
import saasmakers from '@saasmakers/eslint';
|
|
3
|
+
import vitest from '@vitest/eslint-plugin';
|
|
3
4
|
import { Linter, ESLint } from 'eslint';
|
|
4
5
|
import storybook from 'eslint-plugin-storybook';
|
|
6
|
+
import turbo from 'eslint-plugin-turbo';
|
|
5
7
|
|
|
6
8
|
interface PluginConfigs extends Record<
|
|
7
9
|
string,
|
|
@@ -37,17 +39,16 @@ var eslint_config = antfu(
|
|
|
37
39
|
"**/ios",
|
|
38
40
|
"node_modules"
|
|
39
41
|
],
|
|
42
|
+
test: false,
|
|
40
43
|
typescript: true,
|
|
41
44
|
unocss: true,
|
|
42
|
-
vue: {
|
|
43
|
-
a11y: true
|
|
44
|
-
}
|
|
45
|
+
vue: { a11y: true }
|
|
45
46
|
},
|
|
46
47
|
...storybook.configs["flat/recommended"],
|
|
48
|
+
turbo.configs["flat/recommended"],
|
|
49
|
+
// SaaS Makers
|
|
47
50
|
{
|
|
48
|
-
plugins: {
|
|
49
|
-
saasmakers
|
|
50
|
-
},
|
|
51
|
+
plugins: { saasmakers },
|
|
51
52
|
rules: {
|
|
52
53
|
// Override rules defined by Antfu ESLint config
|
|
53
54
|
// Try to keep the disabled rules to a minimum
|
|
@@ -55,14 +56,45 @@ var eslint_config = antfu(
|
|
|
55
56
|
"node/prefer-global/process": "off",
|
|
56
57
|
"pnpm/yaml-enforce-settings": "off",
|
|
57
58
|
"ts/no-use-before-define": "off",
|
|
59
|
+
// ESLint
|
|
60
|
+
"object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
|
|
61
|
+
"object-curly-newline": ["error", {
|
|
62
|
+
ExportDeclaration: {
|
|
63
|
+
minProperties: 2,
|
|
64
|
+
multiline: true
|
|
65
|
+
},
|
|
66
|
+
ImportDeclaration: "never",
|
|
67
|
+
ObjectExpression: {
|
|
68
|
+
minProperties: 2,
|
|
69
|
+
multiline: true
|
|
70
|
+
},
|
|
71
|
+
ObjectPattern: "never"
|
|
72
|
+
}],
|
|
58
73
|
// Perfectionist
|
|
59
74
|
..._default.configs["recommended-natural"].rules,
|
|
60
|
-
"perfectionist/sort-imports": ["error", {
|
|
61
|
-
|
|
62
|
-
|
|
75
|
+
"perfectionist/sort-imports": ["error", {
|
|
76
|
+
newlinesBetween: 0,
|
|
77
|
+
type: "natural"
|
|
78
|
+
}],
|
|
79
|
+
"perfectionist/sort-modules": ["error", {
|
|
80
|
+
partitionByComment: true,
|
|
81
|
+
type: "natural"
|
|
82
|
+
}],
|
|
83
|
+
"perfectionist/sort-objects": ["error", {
|
|
84
|
+
partitionByComment: true,
|
|
85
|
+
partitionByNewLine: true,
|
|
86
|
+
type: "natural"
|
|
87
|
+
}],
|
|
63
88
|
// SaaS Makers
|
|
64
89
|
"saasmakers/ts-sort-tests": "error"
|
|
65
90
|
}
|
|
91
|
+
},
|
|
92
|
+
// Vitest
|
|
93
|
+
{
|
|
94
|
+
files: ["**/*.test.ts"],
|
|
95
|
+
...vitest.configs.all,
|
|
96
|
+
languageOptions: { globals: { ...vitest.environments.env.globals } },
|
|
97
|
+
settings: { vitest: { typecheck: true } }
|
|
66
98
|
}
|
|
67
99
|
);
|
|
68
100
|
|
package/dist/eslint.config.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
2
|
import saasmakers from '@saasmakers/eslint';
|
|
3
|
+
import vitest from '@vitest/eslint-plugin';
|
|
3
4
|
import { d as distExports } from './shared/eslint.CohBuu1-.mjs';
|
|
4
5
|
import * as path from 'node:path';
|
|
5
6
|
import * as fs from 'node:fs';
|
|
6
7
|
import { createRequire, builtinModules } from 'node:module';
|
|
7
8
|
import storybook from 'eslint-plugin-storybook';
|
|
9
|
+
import turbo from 'eslint-plugin-turbo';
|
|
8
10
|
import 'eslint';
|
|
9
11
|
import 'eslint/use-at-your-own-risk';
|
|
10
12
|
|
|
@@ -10731,17 +10733,16 @@ const eslint_config = antfu(
|
|
|
10731
10733
|
"**/ios",
|
|
10732
10734
|
"node_modules"
|
|
10733
10735
|
],
|
|
10736
|
+
test: false,
|
|
10734
10737
|
typescript: true,
|
|
10735
10738
|
unocss: true,
|
|
10736
|
-
vue: {
|
|
10737
|
-
a11y: true
|
|
10738
|
-
}
|
|
10739
|
+
vue: { a11y: true }
|
|
10739
10740
|
},
|
|
10740
10741
|
...storybook.configs["flat/recommended"],
|
|
10742
|
+
turbo.configs["flat/recommended"],
|
|
10743
|
+
// SaaS Makers
|
|
10741
10744
|
{
|
|
10742
|
-
plugins: {
|
|
10743
|
-
saasmakers
|
|
10744
|
-
},
|
|
10745
|
+
plugins: { saasmakers },
|
|
10745
10746
|
rules: {
|
|
10746
10747
|
// Override rules defined by Antfu ESLint config
|
|
10747
10748
|
// Try to keep the disabled rules to a minimum
|
|
@@ -10749,14 +10750,45 @@ const eslint_config = antfu(
|
|
|
10749
10750
|
"node/prefer-global/process": "off",
|
|
10750
10751
|
"pnpm/yaml-enforce-settings": "off",
|
|
10751
10752
|
"ts/no-use-before-define": "off",
|
|
10753
|
+
// ESLint
|
|
10754
|
+
"object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
|
|
10755
|
+
"object-curly-newline": ["error", {
|
|
10756
|
+
ExportDeclaration: {
|
|
10757
|
+
minProperties: 2,
|
|
10758
|
+
multiline: true
|
|
10759
|
+
},
|
|
10760
|
+
ImportDeclaration: "never",
|
|
10761
|
+
ObjectExpression: {
|
|
10762
|
+
minProperties: 2,
|
|
10763
|
+
multiline: true
|
|
10764
|
+
},
|
|
10765
|
+
ObjectPattern: "never"
|
|
10766
|
+
}],
|
|
10752
10767
|
// Perfectionist
|
|
10753
10768
|
...index.configs["recommended-natural"].rules,
|
|
10754
|
-
"perfectionist/sort-imports": ["error", {
|
|
10755
|
-
|
|
10756
|
-
|
|
10769
|
+
"perfectionist/sort-imports": ["error", {
|
|
10770
|
+
newlinesBetween: 0,
|
|
10771
|
+
type: "natural"
|
|
10772
|
+
}],
|
|
10773
|
+
"perfectionist/sort-modules": ["error", {
|
|
10774
|
+
partitionByComment: true,
|
|
10775
|
+
type: "natural"
|
|
10776
|
+
}],
|
|
10777
|
+
"perfectionist/sort-objects": ["error", {
|
|
10778
|
+
partitionByComment: true,
|
|
10779
|
+
partitionByNewLine: true,
|
|
10780
|
+
type: "natural"
|
|
10781
|
+
}],
|
|
10757
10782
|
// SaaS Makers
|
|
10758
10783
|
"saasmakers/ts-sort-tests": "error"
|
|
10759
10784
|
}
|
|
10785
|
+
},
|
|
10786
|
+
// Vitest
|
|
10787
|
+
{
|
|
10788
|
+
files: ["**/*.test.ts"],
|
|
10789
|
+
...vitest.configs.all,
|
|
10790
|
+
languageOptions: { globals: { ...vitest.environments.env.globals } },
|
|
10791
|
+
settings: { vitest: { typecheck: true } }
|
|
10760
10792
|
}
|
|
10761
10793
|
);
|
|
10762
10794
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.70",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Shared ESLint config and rules for SaaS Makers projects",
|
|
7
7
|
"author": "SaaS Makers",
|
|
@@ -36,12 +36,14 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@antfu/eslint-config": "7.4.3",
|
|
38
38
|
"@unocss/eslint-plugin": "66.6.0",
|
|
39
|
+
"@vitest/eslint-plugin": "1.6.9",
|
|
39
40
|
"eslint-plugin-storybook": "10.2.8",
|
|
41
|
+
"eslint-plugin-turbo": "2.8.10",
|
|
40
42
|
"typescript-eslint": "8.55.0"
|
|
41
43
|
},
|
|
42
44
|
"devDependencies": {
|
|
43
45
|
"@eslint/config-inspector": "1.4.2",
|
|
44
|
-
"eslint": "10.0.
|
|
46
|
+
"eslint": "10.0.1",
|
|
45
47
|
"typescript": "5.9.3"
|
|
46
48
|
},
|
|
47
49
|
"publishConfig": {
|