@saasmakers/eslint 0.1.71 → 0.1.73

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.
@@ -3,6 +3,7 @@
3
3
  const antfu = require('@antfu/eslint-config');
4
4
  const saasmakers = require('@saasmakers/eslint');
5
5
  const vitest = require('@vitest/eslint-plugin');
6
+ const packageJson = require('eslint-plugin-package-json');
6
7
  const index$1 = require('./shared/eslint.DhFjwkxh.cjs');
7
8
  const path = require('node:path');
8
9
  const fs = require('node:fs');
@@ -30,6 +31,7 @@ function _interopNamespaceCompat(e) {
30
31
  const antfu__default = /*#__PURE__*/_interopDefaultCompat(antfu);
31
32
  const saasmakers__default = /*#__PURE__*/_interopDefaultCompat(saasmakers);
32
33
  const vitest__default = /*#__PURE__*/_interopDefaultCompat(vitest);
34
+ const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
33
35
  const path__namespace = /*#__PURE__*/_interopNamespaceCompat(path);
34
36
  const fs__namespace = /*#__PURE__*/_interopNamespaceCompat(fs);
35
37
  const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
@@ -10765,6 +10767,13 @@ const eslint_config = antfu__default(
10765
10767
  },
10766
10768
  ...storybook__default.configs["flat/recommended"],
10767
10769
  turbo__default.configs["flat/recommended"],
10770
+ // Package.json
10771
+ packageJson__default.configs.recommended,
10772
+ packageJson__default.configs.stylistic,
10773
+ {
10774
+ files: ["**/package.json"],
10775
+ rules: { "jsonc/sort-keys": "off" }
10776
+ },
10768
10777
  // SaaS Makers
10769
10778
  {
10770
10779
  plugins: { saasmakers: saasmakers__default },
@@ -10812,7 +10821,12 @@ const eslint_config = antfu__default(
10812
10821
  {
10813
10822
  files: ["**/*.test.ts"],
10814
10823
  ...vitest__default.configs.all,
10815
- languageOptions: { globals: { ...vitest__default.environments.env.globals } }
10824
+ languageOptions: { globals: { ...vitest__default.environments.env.globals } },
10825
+ rules: {
10826
+ "vitest/no-hooks": "off",
10827
+ "vitest/prefer-describe-function-title": "off",
10828
+ "vitest/prefer-expect-assertions": "off"
10829
+ }
10816
10830
  }
10817
10831
  );
10818
10832
 
@@ -1,6 +1,7 @@
1
1
  import antfu from '@antfu/eslint-config';
2
2
  import saasmakers from '@saasmakers/eslint';
3
3
  import vitest from '@vitest/eslint-plugin';
4
+ import packageJson from 'eslint-plugin-package-json';
4
5
  import { Linter, ESLint } from 'eslint';
5
6
  import storybook from 'eslint-plugin-storybook';
6
7
  import turbo from 'eslint-plugin-turbo';
@@ -46,6 +47,13 @@ var eslint_config = antfu(
46
47
  },
47
48
  ...storybook.configs["flat/recommended"],
48
49
  turbo.configs["flat/recommended"],
50
+ // Package.json
51
+ packageJson.configs.recommended,
52
+ packageJson.configs.stylistic,
53
+ {
54
+ files: ["**/package.json"],
55
+ rules: { "jsonc/sort-keys": "off" }
56
+ },
49
57
  // SaaS Makers
50
58
  {
51
59
  plugins: { saasmakers },
@@ -93,7 +101,12 @@ var eslint_config = antfu(
93
101
  {
94
102
  files: ["**/*.test.ts"],
95
103
  ...vitest.configs.all,
96
- languageOptions: { globals: { ...vitest.environments.env.globals } }
104
+ languageOptions: { globals: { ...vitest.environments.env.globals } },
105
+ rules: {
106
+ "vitest/no-hooks": "off",
107
+ "vitest/prefer-describe-function-title": "off",
108
+ "vitest/prefer-expect-assertions": "off"
109
+ }
97
110
  }
98
111
  );
99
112
 
@@ -1,6 +1,7 @@
1
1
  import antfu from '@antfu/eslint-config';
2
2
  import saasmakers from '@saasmakers/eslint';
3
3
  import vitest from '@vitest/eslint-plugin';
4
+ import packageJson from 'eslint-plugin-package-json';
4
5
  import { Linter, ESLint } from 'eslint';
5
6
  import storybook from 'eslint-plugin-storybook';
6
7
  import turbo from 'eslint-plugin-turbo';
@@ -46,6 +47,13 @@ var eslint_config = antfu(
46
47
  },
47
48
  ...storybook.configs["flat/recommended"],
48
49
  turbo.configs["flat/recommended"],
50
+ // Package.json
51
+ packageJson.configs.recommended,
52
+ packageJson.configs.stylistic,
53
+ {
54
+ files: ["**/package.json"],
55
+ rules: { "jsonc/sort-keys": "off" }
56
+ },
49
57
  // SaaS Makers
50
58
  {
51
59
  plugins: { saasmakers },
@@ -93,7 +101,12 @@ var eslint_config = antfu(
93
101
  {
94
102
  files: ["**/*.test.ts"],
95
103
  ...vitest.configs.all,
96
- languageOptions: { globals: { ...vitest.environments.env.globals } }
104
+ languageOptions: { globals: { ...vitest.environments.env.globals } },
105
+ rules: {
106
+ "vitest/no-hooks": "off",
107
+ "vitest/prefer-describe-function-title": "off",
108
+ "vitest/prefer-expect-assertions": "off"
109
+ }
97
110
  }
98
111
  );
99
112
 
@@ -1,6 +1,7 @@
1
1
  import antfu from '@antfu/eslint-config';
2
2
  import saasmakers from '@saasmakers/eslint';
3
3
  import vitest from '@vitest/eslint-plugin';
4
+ import packageJson from 'eslint-plugin-package-json';
4
5
  import { Linter, ESLint } from 'eslint';
5
6
  import storybook from 'eslint-plugin-storybook';
6
7
  import turbo from 'eslint-plugin-turbo';
@@ -46,6 +47,13 @@ var eslint_config = antfu(
46
47
  },
47
48
  ...storybook.configs["flat/recommended"],
48
49
  turbo.configs["flat/recommended"],
50
+ // Package.json
51
+ packageJson.configs.recommended,
52
+ packageJson.configs.stylistic,
53
+ {
54
+ files: ["**/package.json"],
55
+ rules: { "jsonc/sort-keys": "off" }
56
+ },
49
57
  // SaaS Makers
50
58
  {
51
59
  plugins: { saasmakers },
@@ -93,7 +101,12 @@ var eslint_config = antfu(
93
101
  {
94
102
  files: ["**/*.test.ts"],
95
103
  ...vitest.configs.all,
96
- languageOptions: { globals: { ...vitest.environments.env.globals } }
104
+ languageOptions: { globals: { ...vitest.environments.env.globals } },
105
+ rules: {
106
+ "vitest/no-hooks": "off",
107
+ "vitest/prefer-describe-function-title": "off",
108
+ "vitest/prefer-expect-assertions": "off"
109
+ }
97
110
  }
98
111
  );
99
112
 
@@ -1,6 +1,7 @@
1
1
  import antfu from '@antfu/eslint-config';
2
2
  import saasmakers from '@saasmakers/eslint';
3
3
  import vitest from '@vitest/eslint-plugin';
4
+ import packageJson from 'eslint-plugin-package-json';
4
5
  import { d as distExports } from './shared/eslint.CohBuu1-.mjs';
5
6
  import * as path from 'node:path';
6
7
  import * as fs from 'node:fs';
@@ -10740,6 +10741,13 @@ const eslint_config = antfu(
10740
10741
  },
10741
10742
  ...storybook.configs["flat/recommended"],
10742
10743
  turbo.configs["flat/recommended"],
10744
+ // Package.json
10745
+ packageJson.configs.recommended,
10746
+ packageJson.configs.stylistic,
10747
+ {
10748
+ files: ["**/package.json"],
10749
+ rules: { "jsonc/sort-keys": "off" }
10750
+ },
10743
10751
  // SaaS Makers
10744
10752
  {
10745
10753
  plugins: { saasmakers },
@@ -10787,7 +10795,12 @@ const eslint_config = antfu(
10787
10795
  {
10788
10796
  files: ["**/*.test.ts"],
10789
10797
  ...vitest.configs.all,
10790
- languageOptions: { globals: { ...vitest.environments.env.globals } }
10798
+ languageOptions: { globals: { ...vitest.environments.env.globals } },
10799
+ rules: {
10800
+ "vitest/no-hooks": "off",
10801
+ "vitest/prefer-describe-function-title": "off",
10802
+ "vitest/prefer-expect-assertions": "off"
10803
+ }
10791
10804
  }
10792
10805
  );
10793
10806
 
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@saasmakers/eslint",
3
- "type": "module",
4
- "version": "0.1.71",
3
+ "version": "0.1.73",
5
4
  "private": false,
6
5
  "description": "Shared ESLint config and rules for SaaS Makers projects",
7
- "author": "SaaS Makers",
8
- "license": "MIT",
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "git+https://github.com/saasmakers/saasmakers-turborepo.git",
12
9
  "directory": "packages/eslint"
13
10
  },
11
+ "license": "MIT",
12
+ "author": "SaaS Makers",
14
13
  "sideEffects": false,
14
+ "type": "module",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/index.d.ts",
@@ -30,13 +30,11 @@
30
30
  "files": [
31
31
  "dist"
32
32
  ],
33
- "peerDependencies": {
34
- "eslint": "^10.0.0"
35
- },
36
33
  "dependencies": {
37
34
  "@antfu/eslint-config": "7.4.3",
38
35
  "@unocss/eslint-plugin": "66.6.0",
39
36
  "@vitest/eslint-plugin": "1.6.9",
37
+ "eslint-plugin-package-json": "0.31.0",
40
38
  "eslint-plugin-storybook": "10.2.8",
41
39
  "eslint-plugin-turbo": "2.8.10",
42
40
  "typescript-eslint": "8.55.0"
@@ -46,6 +44,9 @@
46
44
  "eslint": "10.0.1",
47
45
  "typescript": "5.9.3"
48
46
  },
47
+ "peerDependencies": {
48
+ "eslint": "^10.0.0"
49
+ },
49
50
  "publishConfig": {
50
51
  "access": "public"
51
52
  },