@saasmakers/eslint 0.1.34 → 0.1.35

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,8 +7,10 @@ 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');
@@ -19,6 +21,7 @@ const unusedImports = require('eslint-plugin-unused-imports');
19
21
  const pluginVue = require('eslint-plugin-vue');
20
22
  const vueAccessibility = require('eslint-plugin-vuejs-accessibility');
21
23
  const processorVueBlocks = require('eslint-processor-vue-blocks');
24
+ const jsoncParser = require('jsonc-eslint-parser');
22
25
  const tseslint = require('typescript-eslint');
23
26
  const require$$0$1 = require('path');
24
27
  const require$$2 = require('assert');
@@ -38,8 +41,10 @@ const pluginJs__default = /*#__PURE__*/_interopDefaultCompat(pluginJs);
38
41
  const nuxt__default = /*#__PURE__*/_interopDefaultCompat(nuxt);
39
42
  const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
40
43
  const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
44
+ const jsonc__default = /*#__PURE__*/_interopDefaultCompat(jsonc);
41
45
  const nodeEslint__default = /*#__PURE__*/_interopDefaultCompat(nodeEslint);
42
46
  const noOnlyTests__default = /*#__PURE__*/_interopDefaultCompat(noOnlyTests);
47
+ const noSecrets__default = /*#__PURE__*/_interopDefaultCompat(noSecrets);
43
48
  const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
44
49
  const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
45
50
  const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
@@ -49,6 +54,7 @@ const unusedImports__default = /*#__PURE__*/_interopDefaultCompat(unusedImports)
49
54
  const pluginVue__default = /*#__PURE__*/_interopDefaultCompat(pluginVue);
50
55
  const vueAccessibility__default = /*#__PURE__*/_interopDefaultCompat(vueAccessibility);
51
56
  const processorVueBlocks__default = /*#__PURE__*/_interopDefaultCompat(processorVueBlocks);
57
+ const jsoncParser__default = /*#__PURE__*/_interopDefaultCompat(jsoncParser);
52
58
  const tseslint__default = /*#__PURE__*/_interopDefaultCompat(tseslint);
53
59
  const require$$0__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$0$1);
54
60
  const require$$2__default = /*#__PURE__*/_interopDefaultCompat(require$$2);
@@ -22494,6 +22500,20 @@ const config = [
22494
22500
  "no-undef": "off"
22495
22501
  }
22496
22502
  },
22503
+ // JSON
22504
+ ...jsonc__default.configs["flat/recommended-with-jsonc"],
22505
+ {
22506
+ files: ["**/*.json", "**/*.jsonc", "**/*.json5"],
22507
+ languageOptions: {
22508
+ parser: jsoncParser__default
22509
+ },
22510
+ plugins: {
22511
+ "no-secrets": noSecrets__default
22512
+ },
22513
+ rules: {
22514
+ "no-secrets/no-secrets": ["error", { additionalDelimiters: ["(?=[A-Z][a-z])"], tolerance: 4.1 }]
22515
+ }
22516
+ },
22497
22517
  // Stylistic
22498
22518
  stylistic__default.configs.customize({
22499
22519
  arrowParens: true,
@@ -22542,6 +22562,16 @@ const config = [
22542
22562
  "no-only-tests/no-only-tests": "error"
22543
22563
  }
22544
22564
  },
22565
+ // No Secrets
22566
+ {
22567
+ files: ["**/*.{js,mjs,ts,mts,vue}"],
22568
+ plugins: {
22569
+ "no-secrets": noSecrets__default
22570
+ },
22571
+ rules: {
22572
+ "no-secrets/no-secrets": ["error", { additionalDelimiters: ["(?=[A-Z][a-z])"], tolerance: 4.1 }]
22573
+ }
22574
+ },
22545
22575
  // No Unused Imports
22546
22576
  {
22547
22577
  plugins: {
@@ -3,8 +3,10 @@ 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';
@@ -15,6 +17,7 @@ import unusedImports from 'eslint-plugin-unused-imports';
15
17
  import pluginVue from 'eslint-plugin-vue';
16
18
  import vueAccessibility from 'eslint-plugin-vuejs-accessibility';
17
19
  import processorVueBlocks from 'eslint-processor-vue-blocks';
20
+ import jsoncParser from 'jsonc-eslint-parser';
18
21
  import tseslint from 'typescript-eslint';
19
22
  import require$$0$1 from 'path';
20
23
  import require$$2 from 'assert';
@@ -22462,6 +22465,20 @@ const config = [
22462
22465
  "no-undef": "off"
22463
22466
  }
22464
22467
  },
22468
+ // JSON
22469
+ ...jsonc.configs["flat/recommended-with-jsonc"],
22470
+ {
22471
+ files: ["**/*.json", "**/*.jsonc", "**/*.json5"],
22472
+ languageOptions: {
22473
+ parser: jsoncParser
22474
+ },
22475
+ plugins: {
22476
+ "no-secrets": noSecrets
22477
+ },
22478
+ rules: {
22479
+ "no-secrets/no-secrets": ["error", { additionalDelimiters: ["(?=[A-Z][a-z])"], tolerance: 4.1 }]
22480
+ }
22481
+ },
22465
22482
  // Stylistic
22466
22483
  stylistic.configs.customize({
22467
22484
  arrowParens: true,
@@ -22510,6 +22527,16 @@ const config = [
22510
22527
  "no-only-tests/no-only-tests": "error"
22511
22528
  }
22512
22529
  },
22530
+ // No Secrets
22531
+ {
22532
+ files: ["**/*.{js,mjs,ts,mts,vue}"],
22533
+ plugins: {
22534
+ "no-secrets": noSecrets
22535
+ },
22536
+ rules: {
22537
+ "no-secrets/no-secrets": ["error", { additionalDelimiters: ["(?=[A-Z][a-z])"], tolerance: 4.1 }]
22538
+ }
22539
+ },
22513
22540
  // No Unused Imports
22514
22541
  {
22515
22542
  plugins: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/eslint",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "private": false,
5
5
  "description": "Shared ESLint config and rules for SaaS Makers projects",
6
6
  "repository": {
@@ -37,8 +37,10 @@
37
37
  "@typescript-eslint/utils": "8.51.0",
38
38
  "@unocss/eslint-config": "66.5.12",
39
39
  "eslint-merge-processors": "2.0.0",
40
+ "eslint-plugin-jsonc": "2.21.0",
40
41
  "eslint-plugin-n": "17.23.1",
41
42
  "eslint-plugin-no-only-tests": "3.3.0",
43
+ "eslint-plugin-no-secrets": "2.2.1",
42
44
  "eslint-plugin-package-json": "0.87.0",
43
45
  "eslint-plugin-perfectionist": "5.1.0",
44
46
  "eslint-plugin-pnpm": "1.4.3",
@@ -50,6 +52,7 @@
50
52
  "eslint-plugin-vue": "10.6.2",
51
53
  "eslint-plugin-vuejs-accessibility": "2.4.1",
52
54
  "eslint-processor-vue-blocks": "2.0.0",
55
+ "jsonc-eslint-parser": "2.4.2",
53
56
  "typescript-eslint": "8.51.0",
54
57
  "@saasmakers/config": "0.1.25"
55
58
  },