@saasmakers/eslint 0.1.69 → 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.
@@ -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,11 +10758,14 @@ 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
10764
  vue: { a11y: true }
10760
10765
  },
10761
10766
  ...storybook__default.configs["flat/recommended"],
10767
+ turbo__default.configs["flat/recommended"],
10768
+ // SaaS Makers
10762
10769
  {
10763
10770
  plugins: { saasmakers: saasmakers__default },
10764
10771
  rules: {
@@ -10800,6 +10807,13 @@ const eslint_config = antfu__default(
10800
10807
  // SaaS Makers
10801
10808
  "saasmakers/ts-sort-tests": "error"
10802
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 } }
10803
10817
  }
10804
10818
  );
10805
10819
 
@@ -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,11 +39,14 @@ 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
45
  vue: { a11y: true }
43
46
  },
44
47
  ...storybook.configs["flat/recommended"],
48
+ turbo.configs["flat/recommended"],
49
+ // SaaS Makers
45
50
  {
46
51
  plugins: { saasmakers },
47
52
  rules: {
@@ -83,6 +88,13 @@ var eslint_config = antfu(
83
88
  // SaaS Makers
84
89
  "saasmakers/ts-sort-tests": "error"
85
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 } }
86
98
  }
87
99
  );
88
100
 
@@ -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,11 +39,14 @@ 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
45
  vue: { a11y: true }
43
46
  },
44
47
  ...storybook.configs["flat/recommended"],
48
+ turbo.configs["flat/recommended"],
49
+ // SaaS Makers
45
50
  {
46
51
  plugins: { saasmakers },
47
52
  rules: {
@@ -83,6 +88,13 @@ var eslint_config = antfu(
83
88
  // SaaS Makers
84
89
  "saasmakers/ts-sort-tests": "error"
85
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 } }
86
98
  }
87
99
  );
88
100
 
@@ -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,11 +39,14 @@ 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
45
  vue: { a11y: true }
43
46
  },
44
47
  ...storybook.configs["flat/recommended"],
48
+ turbo.configs["flat/recommended"],
49
+ // SaaS Makers
45
50
  {
46
51
  plugins: { saasmakers },
47
52
  rules: {
@@ -83,6 +88,13 @@ var eslint_config = antfu(
83
88
  // SaaS Makers
84
89
  "saasmakers/ts-sort-tests": "error"
85
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 } }
86
98
  }
87
99
  );
88
100
 
@@ -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,11 +10733,14 @@ 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
10739
  vue: { a11y: true }
10737
10740
  },
10738
10741
  ...storybook.configs["flat/recommended"],
10742
+ turbo.configs["flat/recommended"],
10743
+ // SaaS Makers
10739
10744
  {
10740
10745
  plugins: { saasmakers },
10741
10746
  rules: {
@@ -10777,6 +10782,13 @@ const eslint_config = antfu(
10777
10782
  // SaaS Makers
10778
10783
  "saasmakers/ts-sort-tests": "error"
10779
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 } }
10780
10792
  }
10781
10793
  );
10782
10794
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasmakers/eslint",
3
3
  "type": "module",
4
- "version": "0.1.69",
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,7 +36,9 @@
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": {