@saasmakers/eslint 0.1.67 → 0.1.69

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.
@@ -10756,15 +10756,11 @@ const eslint_config = antfu__default(
10756
10756
  ],
10757
10757
  typescript: true,
10758
10758
  unocss: true,
10759
- vue: {
10760
- a11y: true
10761
- }
10759
+ vue: { a11y: true }
10762
10760
  },
10763
10761
  ...storybook__default.configs["flat/recommended"],
10764
10762
  {
10765
- plugins: {
10766
- saasmakers: saasmakers__default
10767
- },
10763
+ plugins: { saasmakers: saasmakers__default },
10768
10764
  rules: {
10769
10765
  // Override rules defined by Antfu ESLint config
10770
10766
  // Try to keep the disabled rules to a minimum
@@ -10772,10 +10768,35 @@ const eslint_config = antfu__default(
10772
10768
  "node/prefer-global/process": "off",
10773
10769
  "pnpm/yaml-enforce-settings": "off",
10774
10770
  "ts/no-use-before-define": "off",
10771
+ // ESLint
10772
+ "object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
10773
+ "object-curly-newline": ["error", {
10774
+ ExportDeclaration: {
10775
+ minProperties: 2,
10776
+ multiline: true
10777
+ },
10778
+ ImportDeclaration: "never",
10779
+ ObjectExpression: {
10780
+ minProperties: 2,
10781
+ multiline: true
10782
+ },
10783
+ ObjectPattern: "never"
10784
+ }],
10775
10785
  // Perfectionist
10776
10786
  ...index.configs["recommended-natural"].rules,
10777
- "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
10778
- "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
10787
+ "perfectionist/sort-imports": ["error", {
10788
+ newlinesBetween: 0,
10789
+ type: "natural"
10790
+ }],
10791
+ "perfectionist/sort-modules": ["error", {
10792
+ partitionByComment: true,
10793
+ type: "natural"
10794
+ }],
10795
+ "perfectionist/sort-objects": ["error", {
10796
+ partitionByComment: true,
10797
+ partitionByNewLine: true,
10798
+ type: "natural"
10799
+ }],
10779
10800
  // SaaS Makers
10780
10801
  "saasmakers/ts-sort-tests": "error"
10781
10802
  }
@@ -39,15 +39,11 @@ var eslint_config = antfu(
39
39
  ],
40
40
  typescript: true,
41
41
  unocss: true,
42
- vue: {
43
- a11y: true
44
- }
42
+ vue: { a11y: true }
45
43
  },
46
44
  ...storybook.configs["flat/recommended"],
47
45
  {
48
- plugins: {
49
- saasmakers
50
- },
46
+ plugins: { saasmakers },
51
47
  rules: {
52
48
  // Override rules defined by Antfu ESLint config
53
49
  // Try to keep the disabled rules to a minimum
@@ -55,10 +51,35 @@ var eslint_config = antfu(
55
51
  "node/prefer-global/process": "off",
56
52
  "pnpm/yaml-enforce-settings": "off",
57
53
  "ts/no-use-before-define": "off",
54
+ // ESLint
55
+ "object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
56
+ "object-curly-newline": ["error", {
57
+ ExportDeclaration: {
58
+ minProperties: 2,
59
+ multiline: true
60
+ },
61
+ ImportDeclaration: "never",
62
+ ObjectExpression: {
63
+ minProperties: 2,
64
+ multiline: true
65
+ },
66
+ ObjectPattern: "never"
67
+ }],
58
68
  // Perfectionist
59
69
  ..._default.configs["recommended-natural"].rules,
60
- "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
61
- "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
70
+ "perfectionist/sort-imports": ["error", {
71
+ newlinesBetween: 0,
72
+ type: "natural"
73
+ }],
74
+ "perfectionist/sort-modules": ["error", {
75
+ partitionByComment: true,
76
+ type: "natural"
77
+ }],
78
+ "perfectionist/sort-objects": ["error", {
79
+ partitionByComment: true,
80
+ partitionByNewLine: true,
81
+ type: "natural"
82
+ }],
62
83
  // SaaS Makers
63
84
  "saasmakers/ts-sort-tests": "error"
64
85
  }
@@ -39,15 +39,11 @@ var eslint_config = antfu(
39
39
  ],
40
40
  typescript: true,
41
41
  unocss: true,
42
- vue: {
43
- a11y: true
44
- }
42
+ vue: { a11y: true }
45
43
  },
46
44
  ...storybook.configs["flat/recommended"],
47
45
  {
48
- plugins: {
49
- saasmakers
50
- },
46
+ plugins: { saasmakers },
51
47
  rules: {
52
48
  // Override rules defined by Antfu ESLint config
53
49
  // Try to keep the disabled rules to a minimum
@@ -55,10 +51,35 @@ var eslint_config = antfu(
55
51
  "node/prefer-global/process": "off",
56
52
  "pnpm/yaml-enforce-settings": "off",
57
53
  "ts/no-use-before-define": "off",
54
+ // ESLint
55
+ "object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
56
+ "object-curly-newline": ["error", {
57
+ ExportDeclaration: {
58
+ minProperties: 2,
59
+ multiline: true
60
+ },
61
+ ImportDeclaration: "never",
62
+ ObjectExpression: {
63
+ minProperties: 2,
64
+ multiline: true
65
+ },
66
+ ObjectPattern: "never"
67
+ }],
58
68
  // Perfectionist
59
69
  ..._default.configs["recommended-natural"].rules,
60
- "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
61
- "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
70
+ "perfectionist/sort-imports": ["error", {
71
+ newlinesBetween: 0,
72
+ type: "natural"
73
+ }],
74
+ "perfectionist/sort-modules": ["error", {
75
+ partitionByComment: true,
76
+ type: "natural"
77
+ }],
78
+ "perfectionist/sort-objects": ["error", {
79
+ partitionByComment: true,
80
+ partitionByNewLine: true,
81
+ type: "natural"
82
+ }],
62
83
  // SaaS Makers
63
84
  "saasmakers/ts-sort-tests": "error"
64
85
  }
@@ -39,15 +39,11 @@ var eslint_config = antfu(
39
39
  ],
40
40
  typescript: true,
41
41
  unocss: true,
42
- vue: {
43
- a11y: true
44
- }
42
+ vue: { a11y: true }
45
43
  },
46
44
  ...storybook.configs["flat/recommended"],
47
45
  {
48
- plugins: {
49
- saasmakers
50
- },
46
+ plugins: { saasmakers },
51
47
  rules: {
52
48
  // Override rules defined by Antfu ESLint config
53
49
  // Try to keep the disabled rules to a minimum
@@ -55,10 +51,35 @@ var eslint_config = antfu(
55
51
  "node/prefer-global/process": "off",
56
52
  "pnpm/yaml-enforce-settings": "off",
57
53
  "ts/no-use-before-define": "off",
54
+ // ESLint
55
+ "object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
56
+ "object-curly-newline": ["error", {
57
+ ExportDeclaration: {
58
+ minProperties: 2,
59
+ multiline: true
60
+ },
61
+ ImportDeclaration: "never",
62
+ ObjectExpression: {
63
+ minProperties: 2,
64
+ multiline: true
65
+ },
66
+ ObjectPattern: "never"
67
+ }],
58
68
  // Perfectionist
59
69
  ..._default.configs["recommended-natural"].rules,
60
- "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
61
- "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
70
+ "perfectionist/sort-imports": ["error", {
71
+ newlinesBetween: 0,
72
+ type: "natural"
73
+ }],
74
+ "perfectionist/sort-modules": ["error", {
75
+ partitionByComment: true,
76
+ type: "natural"
77
+ }],
78
+ "perfectionist/sort-objects": ["error", {
79
+ partitionByComment: true,
80
+ partitionByNewLine: true,
81
+ type: "natural"
82
+ }],
62
83
  // SaaS Makers
63
84
  "saasmakers/ts-sort-tests": "error"
64
85
  }
@@ -10733,15 +10733,11 @@ const eslint_config = antfu(
10733
10733
  ],
10734
10734
  typescript: true,
10735
10735
  unocss: true,
10736
- vue: {
10737
- a11y: true
10738
- }
10736
+ vue: { a11y: true }
10739
10737
  },
10740
10738
  ...storybook.configs["flat/recommended"],
10741
10739
  {
10742
- plugins: {
10743
- saasmakers
10744
- },
10740
+ plugins: { saasmakers },
10745
10741
  rules: {
10746
10742
  // Override rules defined by Antfu ESLint config
10747
10743
  // Try to keep the disabled rules to a minimum
@@ -10749,10 +10745,35 @@ const eslint_config = antfu(
10749
10745
  "node/prefer-global/process": "off",
10750
10746
  "pnpm/yaml-enforce-settings": "off",
10751
10747
  "ts/no-use-before-define": "off",
10748
+ // ESLint
10749
+ "object-property-newline": ["error", { allowAllPropertiesOnSameLine: false }],
10750
+ "object-curly-newline": ["error", {
10751
+ ExportDeclaration: {
10752
+ minProperties: 2,
10753
+ multiline: true
10754
+ },
10755
+ ImportDeclaration: "never",
10756
+ ObjectExpression: {
10757
+ minProperties: 2,
10758
+ multiline: true
10759
+ },
10760
+ ObjectPattern: "never"
10761
+ }],
10752
10762
  // Perfectionist
10753
10763
  ...index.configs["recommended-natural"].rules,
10754
- "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
10755
- "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
10764
+ "perfectionist/sort-imports": ["error", {
10765
+ newlinesBetween: 0,
10766
+ type: "natural"
10767
+ }],
10768
+ "perfectionist/sort-modules": ["error", {
10769
+ partitionByComment: true,
10770
+ type: "natural"
10771
+ }],
10772
+ "perfectionist/sort-objects": ["error", {
10773
+ partitionByComment: true,
10774
+ partitionByNewLine: true,
10775
+ type: "natural"
10776
+ }],
10756
10777
  // SaaS Makers
10757
10778
  "saasmakers/ts-sort-tests": "error"
10758
10779
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasmakers/eslint",
3
3
  "type": "module",
4
- "version": "0.1.67",
4
+ "version": "0.1.69",
5
5
  "private": false,
6
6
  "description": "Shared ESLint config and rules for SaaS Makers projects",
7
7
  "author": "SaaS Makers",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@eslint/config-inspector": "1.4.2",
44
- "eslint": "10.0.0",
44
+ "eslint": "10.0.1",
45
45
  "typescript": "5.9.3"
46
46
  },
47
47
  "publishConfig": {