@saasmakers/eslint 0.1.34 → 0.1.36

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 nuxt = require('@nuxt/eslint-plugin');
7
7
  const stylistic = require('@stylistic/eslint-plugin');
8
8
  const unocss = require('@unocss/eslint-config/flat');
9
9
  const eslintMergeProcessors = require('eslint-merge-processors');
10
+ const jsonc = require('eslint-plugin-jsonc');
10
11
  const nodeEslint = require('eslint-plugin-n');
11
12
  const noOnlyTests = require('eslint-plugin-no-only-tests');
13
+ const noSecrets = require('eslint-plugin-no-secrets');
12
14
  const packageJson = require('eslint-plugin-package-json');
13
15
  const perfectionist = require('eslint-plugin-perfectionist');
14
16
  const eslintPluginPnpm = require('eslint-plugin-pnpm');
17
+ const sonarjs = require('eslint-plugin-sonarjs');
15
18
  const storybook = require('eslint-plugin-storybook');
16
19
  const turbo = require('eslint-plugin-turbo');
17
20
  const unicorn = require('eslint-plugin-unicorn');
@@ -19,6 +22,7 @@ const unusedImports = require('eslint-plugin-unused-imports');
19
22
  const pluginVue = require('eslint-plugin-vue');
20
23
  const vueAccessibility = require('eslint-plugin-vuejs-accessibility');
21
24
  const processorVueBlocks = require('eslint-processor-vue-blocks');
25
+ const jsoncParser = require('jsonc-eslint-parser');
22
26
  const tseslint = require('typescript-eslint');
23
27
  const require$$0$1 = require('path');
24
28
  const require$$2 = require('assert');
@@ -38,10 +42,13 @@ const pluginJs__default = /*#__PURE__*/_interopDefaultCompat(pluginJs);
38
42
  const nuxt__default = /*#__PURE__*/_interopDefaultCompat(nuxt);
39
43
  const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
40
44
  const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
45
+ const jsonc__default = /*#__PURE__*/_interopDefaultCompat(jsonc);
41
46
  const nodeEslint__default = /*#__PURE__*/_interopDefaultCompat(nodeEslint);
42
47
  const noOnlyTests__default = /*#__PURE__*/_interopDefaultCompat(noOnlyTests);
48
+ const noSecrets__default = /*#__PURE__*/_interopDefaultCompat(noSecrets);
43
49
  const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
44
50
  const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
51
+ const sonarjs__default = /*#__PURE__*/_interopDefaultCompat(sonarjs);
45
52
  const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
46
53
  const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
47
54
  const unicorn__default = /*#__PURE__*/_interopDefaultCompat(unicorn);
@@ -49,6 +56,7 @@ const unusedImports__default = /*#__PURE__*/_interopDefaultCompat(unusedImports)
49
56
  const pluginVue__default = /*#__PURE__*/_interopDefaultCompat(pluginVue);
50
57
  const vueAccessibility__default = /*#__PURE__*/_interopDefaultCompat(vueAccessibility);
51
58
  const processorVueBlocks__default = /*#__PURE__*/_interopDefaultCompat(processorVueBlocks);
59
+ const jsoncParser__default = /*#__PURE__*/_interopDefaultCompat(jsoncParser);
52
60
  const tseslint__default = /*#__PURE__*/_interopDefaultCompat(tseslint);
53
61
  const require$$0__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$0$1);
54
62
  const require$$2__default = /*#__PURE__*/_interopDefaultCompat(require$$2);
@@ -22494,6 +22502,20 @@ const config = [
22494
22502
  "no-undef": "off"
22495
22503
  }
22496
22504
  },
22505
+ // JSON
22506
+ ...jsonc__default.configs["flat/recommended-with-jsonc"],
22507
+ {
22508
+ files: ["**/*.json", "**/*.jsonc", "**/*.json5"],
22509
+ languageOptions: {
22510
+ parser: jsoncParser__default
22511
+ },
22512
+ plugins: {
22513
+ "no-secrets": noSecrets__default
22514
+ },
22515
+ rules: {
22516
+ "no-secrets/no-secrets": ["error", { additionalDelimiters: ["(?=[A-Z][a-z])"], tolerance: 4.1 }]
22517
+ }
22518
+ },
22497
22519
  // Stylistic
22498
22520
  stylistic__default.configs.customize({
22499
22521
  arrowParens: true,
@@ -22511,6 +22533,7 @@ const config = [
22511
22533
  ...eslintPluginPnpm.configs.yaml,
22512
22534
  ...storybook__default.configs["flat/recommended"],
22513
22535
  // sortClassMembers.configs['flat/recommended'],
22536
+ sonarjs__default.configs.recommended,
22514
22537
  turbo__default.configs["flat/recommended"],
22515
22538
  unocss__default,
22516
22539
  // Node
@@ -22542,6 +22565,16 @@ const config = [
22542
22565
  "no-only-tests/no-only-tests": "error"
22543
22566
  }
22544
22567
  },
22568
+ // No Secrets
22569
+ {
22570
+ files: ["**/*.{js,mjs,ts,mts,vue}"],
22571
+ plugins: {
22572
+ "no-secrets": noSecrets__default
22573
+ },
22574
+ rules: {
22575
+ "no-secrets/no-secrets": ["error", { additionalDelimiters: ["(?=[A-Z][a-z])"], tolerance: 4.1 }]
22576
+ }
22577
+ },
22545
22578
  // No Unused Imports
22546
22579
  {
22547
22580
  plugins: {
@@ -22611,9 +22644,7 @@ const config = [
22611
22644
  "saasmakers/vue-i18n-unused-strings": "error",
22612
22645
  "saasmakers/vue-script-format-computed": "error",
22613
22646
  "saasmakers/vue-script-format-emits": "error",
22614
- "saasmakers/vue-script-format-props": "error",
22615
22647
  "saasmakers/vue-script-order": "error",
22616
- "saasmakers/vue-template-format-classes": "error",
22617
22648
  "saasmakers/vue-template-format-props": "error",
22618
22649
  "saasmakers/vue-template-remove-comments": "error",
22619
22650
  "saasmakers/vue-template-remove-true-attributes": "error"
@@ -3,11 +3,14 @@ import nuxt from '@nuxt/eslint-plugin';
3
3
  import stylistic from '@stylistic/eslint-plugin';
4
4
  import unocss from '@unocss/eslint-config/flat';
5
5
  import { mergeProcessors } from 'eslint-merge-processors';
6
+ import jsonc from 'eslint-plugin-jsonc';
6
7
  import nodeEslint from 'eslint-plugin-n';
7
8
  import noOnlyTests from 'eslint-plugin-no-only-tests';
9
+ import noSecrets from 'eslint-plugin-no-secrets';
8
10
  import packageJson from 'eslint-plugin-package-json';
9
11
  import perfectionist from 'eslint-plugin-perfectionist';
10
12
  import { configs } from 'eslint-plugin-pnpm';
13
+ import sonarjs from 'eslint-plugin-sonarjs';
11
14
  import storybook from 'eslint-plugin-storybook';
12
15
  import turbo from 'eslint-plugin-turbo';
13
16
  import unicorn from 'eslint-plugin-unicorn';
@@ -15,6 +18,7 @@ import unusedImports from 'eslint-plugin-unused-imports';
15
18
  import pluginVue from 'eslint-plugin-vue';
16
19
  import vueAccessibility from 'eslint-plugin-vuejs-accessibility';
17
20
  import processorVueBlocks from 'eslint-processor-vue-blocks';
21
+ import jsoncParser from 'jsonc-eslint-parser';
18
22
  import tseslint from 'typescript-eslint';
19
23
  import require$$0$1 from 'path';
20
24
  import require$$2 from 'assert';
@@ -22462,6 +22466,20 @@ const config = [
22462
22466
  "no-undef": "off"
22463
22467
  }
22464
22468
  },
22469
+ // JSON
22470
+ ...jsonc.configs["flat/recommended-with-jsonc"],
22471
+ {
22472
+ files: ["**/*.json", "**/*.jsonc", "**/*.json5"],
22473
+ languageOptions: {
22474
+ parser: jsoncParser
22475
+ },
22476
+ plugins: {
22477
+ "no-secrets": noSecrets
22478
+ },
22479
+ rules: {
22480
+ "no-secrets/no-secrets": ["error", { additionalDelimiters: ["(?=[A-Z][a-z])"], tolerance: 4.1 }]
22481
+ }
22482
+ },
22465
22483
  // Stylistic
22466
22484
  stylistic.configs.customize({
22467
22485
  arrowParens: true,
@@ -22479,6 +22497,7 @@ const config = [
22479
22497
  ...configs.yaml,
22480
22498
  ...storybook.configs["flat/recommended"],
22481
22499
  // sortClassMembers.configs['flat/recommended'],
22500
+ sonarjs.configs.recommended,
22482
22501
  turbo.configs["flat/recommended"],
22483
22502
  unocss,
22484
22503
  // Node
@@ -22510,6 +22529,16 @@ const config = [
22510
22529
  "no-only-tests/no-only-tests": "error"
22511
22530
  }
22512
22531
  },
22532
+ // No Secrets
22533
+ {
22534
+ files: ["**/*.{js,mjs,ts,mts,vue}"],
22535
+ plugins: {
22536
+ "no-secrets": noSecrets
22537
+ },
22538
+ rules: {
22539
+ "no-secrets/no-secrets": ["error", { additionalDelimiters: ["(?=[A-Z][a-z])"], tolerance: 4.1 }]
22540
+ }
22541
+ },
22513
22542
  // No Unused Imports
22514
22543
  {
22515
22544
  plugins: {
@@ -22579,9 +22608,7 @@ const config = [
22579
22608
  "saasmakers/vue-i18n-unused-strings": "error",
22580
22609
  "saasmakers/vue-script-format-computed": "error",
22581
22610
  "saasmakers/vue-script-format-emits": "error",
22582
- "saasmakers/vue-script-format-props": "error",
22583
22611
  "saasmakers/vue-script-order": "error",
22584
- "saasmakers/vue-template-format-classes": "error",
22585
22612
  "saasmakers/vue-template-format-props": "error",
22586
22613
  "saasmakers/vue-template-remove-comments": "error",
22587
22614
  "saasmakers/vue-template-remove-true-attributes": "error"