@saasmakers/eslint 0.1.27 → 0.1.28

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.
@@ -7,6 +7,7 @@ const stylistic = require('@stylistic/eslint-plugin');
7
7
  const unocss = require('@unocss/eslint-config/flat');
8
8
  const eslintMergeProcessors = require('eslint-merge-processors');
9
9
  const nodeEslint = require('eslint-plugin-n');
10
+ const noOnlyTests = require('eslint-plugin-no-only-tests');
10
11
  const packageJson = require('eslint-plugin-package-json');
11
12
  const perfectionist = require('eslint-plugin-perfectionist');
12
13
  const eslintPluginPnpm = require('eslint-plugin-pnpm');
@@ -36,6 +37,7 @@ const pluginJs__default = /*#__PURE__*/_interopDefaultCompat(pluginJs);
36
37
  const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
37
38
  const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
38
39
  const nodeEslint__default = /*#__PURE__*/_interopDefaultCompat(nodeEslint);
40
+ const noOnlyTests__default = /*#__PURE__*/_interopDefaultCompat(noOnlyTests);
39
41
  const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
40
42
  const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
41
43
  const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
@@ -22521,6 +22523,40 @@ const config = [
22521
22523
  },
22522
22524
  settings: { n: { version: "22.21.1" } }
22523
22525
  },
22526
+ // No Only Tests
22527
+ {
22528
+ files: [
22529
+ "**/*.spec.ts",
22530
+ "**/*.test.ts",
22531
+ "**/tests/**/*.ts",
22532
+ "**/*.stories.ts"
22533
+ ],
22534
+ plugins: {
22535
+ "no-only-tests": noOnlyTests__default
22536
+ },
22537
+ rules: {
22538
+ "no-only-tests/no-only-tests": "error"
22539
+ }
22540
+ },
22541
+ // No Unused Imports
22542
+ {
22543
+ plugins: {
22544
+ "unused-imports": unusedImports__default
22545
+ },
22546
+ rules: {
22547
+ "@typescript-eslint/no-unused-vars": "off",
22548
+ "unused-imports/no-unused-imports": "error",
22549
+ "unused-imports/no-unused-vars": [
22550
+ "error",
22551
+ {
22552
+ args: "after-used",
22553
+ argsIgnorePattern: "^_",
22554
+ vars: "all",
22555
+ varsIgnorePattern: "^_"
22556
+ }
22557
+ ]
22558
+ }
22559
+ },
22524
22560
  // Package JSON
22525
22561
  packageJson__default.configs["recommended-publishable"],
22526
22562
  packageJson__default.configs.stylistic,
@@ -22572,25 +22608,6 @@ const config = [
22572
22608
  "unicorn/prevent-abbreviations": "off"
22573
22609
  }
22574
22610
  },
22575
- // Unused Imports
22576
- {
22577
- plugins: {
22578
- "unused-imports": unusedImports__default
22579
- },
22580
- rules: {
22581
- "@typescript-eslint/no-unused-vars": "off",
22582
- "unused-imports/no-unused-imports": "error",
22583
- "unused-imports/no-unused-vars": [
22584
- "error",
22585
- {
22586
- args: "after-used",
22587
- argsIgnorePattern: "^_",
22588
- vars: "all",
22589
- varsIgnorePattern: "^_"
22590
- }
22591
- ]
22592
- }
22593
- },
22594
22611
  // Vue & Vue Accessibility
22595
22612
  ...pluginVue__default.configs["flat/recommended"],
22596
22613
  ...vueAccessibility__default.configs["flat/recommended"],
@@ -3,6 +3,7 @@ import stylistic from '@stylistic/eslint-plugin';
3
3
  import unocss from '@unocss/eslint-config/flat';
4
4
  import { mergeProcessors } from 'eslint-merge-processors';
5
5
  import nodeEslint from 'eslint-plugin-n';
6
+ import noOnlyTests from 'eslint-plugin-no-only-tests';
6
7
  import packageJson from 'eslint-plugin-package-json';
7
8
  import perfectionist from 'eslint-plugin-perfectionist';
8
9
  import { configs } from 'eslint-plugin-pnpm';
@@ -22491,6 +22492,40 @@ const config = [
22491
22492
  },
22492
22493
  settings: { n: { version: "22.21.1" } }
22493
22494
  },
22495
+ // No Only Tests
22496
+ {
22497
+ files: [
22498
+ "**/*.spec.ts",
22499
+ "**/*.test.ts",
22500
+ "**/tests/**/*.ts",
22501
+ "**/*.stories.ts"
22502
+ ],
22503
+ plugins: {
22504
+ "no-only-tests": noOnlyTests
22505
+ },
22506
+ rules: {
22507
+ "no-only-tests/no-only-tests": "error"
22508
+ }
22509
+ },
22510
+ // No Unused Imports
22511
+ {
22512
+ plugins: {
22513
+ "unused-imports": unusedImports
22514
+ },
22515
+ rules: {
22516
+ "@typescript-eslint/no-unused-vars": "off",
22517
+ "unused-imports/no-unused-imports": "error",
22518
+ "unused-imports/no-unused-vars": [
22519
+ "error",
22520
+ {
22521
+ args: "after-used",
22522
+ argsIgnorePattern: "^_",
22523
+ vars: "all",
22524
+ varsIgnorePattern: "^_"
22525
+ }
22526
+ ]
22527
+ }
22528
+ },
22494
22529
  // Package JSON
22495
22530
  packageJson.configs["recommended-publishable"],
22496
22531
  packageJson.configs.stylistic,
@@ -22542,25 +22577,6 @@ const config = [
22542
22577
  "unicorn/prevent-abbreviations": "off"
22543
22578
  }
22544
22579
  },
22545
- // Unused Imports
22546
- {
22547
- plugins: {
22548
- "unused-imports": unusedImports
22549
- },
22550
- rules: {
22551
- "@typescript-eslint/no-unused-vars": "off",
22552
- "unused-imports/no-unused-imports": "error",
22553
- "unused-imports/no-unused-vars": [
22554
- "error",
22555
- {
22556
- args: "after-used",
22557
- argsIgnorePattern: "^_",
22558
- vars: "all",
22559
- varsIgnorePattern: "^_"
22560
- }
22561
- ]
22562
- }
22563
- },
22564
22580
  // Vue & Vue Accessibility
22565
22581
  ...pluginVue.configs["flat/recommended"],
22566
22582
  ...vueAccessibility.configs["flat/recommended"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/eslint",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "private": false,
5
5
  "description": "Shared ESLint config and rules for SaaS Makers projects",
6
6
  "repository": {
@@ -38,6 +38,7 @@
38
38
  "@unocss/eslint-config": "66.5.12",
39
39
  "eslint-merge-processors": "2.0.0",
40
40
  "eslint-plugin-n": "17.23.1",
41
+ "eslint-plugin-no-only-tests": "3.3.0",
41
42
  "eslint-plugin-package-json": "0.87.0",
42
43
  "eslint-plugin-perfectionist": "5.1.0",
43
44
  "eslint-plugin-pnpm": "1.4.3",