@saasmakers/eslint 0.1.26 → 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,11 +7,14 @@ 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');
14
+ const storybook = require('eslint-plugin-storybook');
13
15
  const turbo = require('eslint-plugin-turbo');
14
16
  const unicorn = require('eslint-plugin-unicorn');
17
+ const unusedImports = require('eslint-plugin-unused-imports');
15
18
  const pluginVue = require('eslint-plugin-vue');
16
19
  const vueAccessibility = require('eslint-plugin-vuejs-accessibility');
17
20
  const processorVueBlocks = require('eslint-processor-vue-blocks');
@@ -34,10 +37,13 @@ const pluginJs__default = /*#__PURE__*/_interopDefaultCompat(pluginJs);
34
37
  const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
35
38
  const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
36
39
  const nodeEslint__default = /*#__PURE__*/_interopDefaultCompat(nodeEslint);
40
+ const noOnlyTests__default = /*#__PURE__*/_interopDefaultCompat(noOnlyTests);
37
41
  const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
38
42
  const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
43
+ const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
39
44
  const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
40
45
  const unicorn__default = /*#__PURE__*/_interopDefaultCompat(unicorn);
46
+ const unusedImports__default = /*#__PURE__*/_interopDefaultCompat(unusedImports);
41
47
  const pluginVue__default = /*#__PURE__*/_interopDefaultCompat(pluginVue);
42
48
  const vueAccessibility__default = /*#__PURE__*/_interopDefaultCompat(vueAccessibility);
43
49
  const processorVueBlocks__default = /*#__PURE__*/_interopDefaultCompat(processorVueBlocks);
@@ -22500,8 +22506,9 @@ const config = [
22500
22506
  // Plugins
22501
22507
  ...eslintPluginPnpm.configs.json,
22502
22508
  ...eslintPluginPnpm.configs.yaml,
22503
- unocss__default,
22509
+ ...storybook__default.configs["flat/recommended"],
22504
22510
  turbo__default.configs["flat/recommended"],
22511
+ unocss__default,
22505
22512
  // Node
22506
22513
  nodeEslint__default.configs["flat/recommended"],
22507
22514
  {
@@ -22516,6 +22523,40 @@ const config = [
22516
22523
  },
22517
22524
  settings: { n: { version: "22.21.1" } }
22518
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
+ },
22519
22560
  // Package JSON
22520
22561
  packageJson__default.configs["recommended-publishable"],
22521
22562
  packageJson__default.configs.stylistic,
@@ -3,11 +3,14 @@ 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';
10
+ import storybook from 'eslint-plugin-storybook';
9
11
  import turbo from 'eslint-plugin-turbo';
10
12
  import unicorn from 'eslint-plugin-unicorn';
13
+ import unusedImports from 'eslint-plugin-unused-imports';
11
14
  import pluginVue from 'eslint-plugin-vue';
12
15
  import vueAccessibility from 'eslint-plugin-vuejs-accessibility';
13
16
  import processorVueBlocks from 'eslint-processor-vue-blocks';
@@ -22472,8 +22475,9 @@ const config = [
22472
22475
  // Plugins
22473
22476
  ...configs.json,
22474
22477
  ...configs.yaml,
22475
- unocss,
22478
+ ...storybook.configs["flat/recommended"],
22476
22479
  turbo.configs["flat/recommended"],
22480
+ unocss,
22477
22481
  // Node
22478
22482
  nodeEslint.configs["flat/recommended"],
22479
22483
  {
@@ -22488,6 +22492,40 @@ const config = [
22488
22492
  },
22489
22493
  settings: { n: { version: "22.21.1" } }
22490
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
+ },
22491
22529
  // Package JSON
22492
22530
  packageJson.configs["recommended-publishable"],
22493
22531
  packageJson.configs.stylistic,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/eslint",
3
- "version": "0.1.26",
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,12 +38,14 @@
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",
44
45
  "eslint-plugin-storybook": "9.1.16",
45
46
  "eslint-plugin-turbo": "2.7.2",
46
47
  "eslint-plugin-unicorn": "62.0.0",
48
+ "eslint-plugin-unused-imports": "4.3.0",
47
49
  "eslint-plugin-vue": "10.6.2",
48
50
  "eslint-plugin-vuejs-accessibility": "2.4.1",
49
51
  "eslint-processor-vue-blocks": "2.0.0",