@saasmakers/eslint 0.1.19 → 0.1.20

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.
@@ -3,13 +3,18 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const pluginJs = require('@eslint/js');
6
+ const stylistic = require('@stylistic/eslint-plugin');
6
7
  const unocss = require('@unocss/eslint-config/flat');
8
+ const eslintMergeProcessors = require('eslint-merge-processors');
7
9
  const nodeEslint = require('eslint-plugin-n');
8
10
  const packageJson = require('eslint-plugin-package-json');
9
11
  const perfectionist = require('eslint-plugin-perfectionist');
10
12
  const eslintPluginPnpm = require('eslint-plugin-pnpm');
11
13
  const turbo = require('eslint-plugin-turbo');
12
14
  const unicorn = require('eslint-plugin-unicorn');
15
+ const pluginVue = require('eslint-plugin-vue');
16
+ const vueAccessibility = require('eslint-plugin-vuejs-accessibility');
17
+ const processorVueBlocks = require('eslint-processor-vue-blocks');
13
18
  const tseslint = require('typescript-eslint');
14
19
  const require$$0$1 = require('path');
15
20
  const require$$2 = require('assert');
@@ -26,12 +31,16 @@ require('@typescript-eslint/utils');
26
31
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
27
32
 
28
33
  const pluginJs__default = /*#__PURE__*/_interopDefaultCompat(pluginJs);
34
+ const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
29
35
  const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
30
36
  const nodeEslint__default = /*#__PURE__*/_interopDefaultCompat(nodeEslint);
31
37
  const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
32
38
  const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
33
39
  const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
34
40
  const unicorn__default = /*#__PURE__*/_interopDefaultCompat(unicorn);
41
+ const pluginVue__default = /*#__PURE__*/_interopDefaultCompat(pluginVue);
42
+ const vueAccessibility__default = /*#__PURE__*/_interopDefaultCompat(vueAccessibility);
43
+ const processorVueBlocks__default = /*#__PURE__*/_interopDefaultCompat(processorVueBlocks);
35
44
  const tseslint__default = /*#__PURE__*/_interopDefaultCompat(tseslint);
36
45
  const require$$0__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$0$1);
37
46
  const require$$2__default = /*#__PURE__*/_interopDefaultCompat(require$$2);
@@ -22475,6 +22484,18 @@ const config = [
22475
22484
  "no-undef": "off"
22476
22485
  }
22477
22486
  },
22487
+ // Stylistic
22488
+ stylistic__default.configs.customize({
22489
+ arrowParens: true,
22490
+ blockSpacing: true,
22491
+ braceStyle: "stroustrup",
22492
+ commaDangle: "always-multiline",
22493
+ indent: 2,
22494
+ quoteProps: "consistent-as-needed",
22495
+ quotes: "single",
22496
+ semi: false,
22497
+ severity: "error"
22498
+ }),
22478
22499
  // Plugins
22479
22500
  ...eslintPluginPnpm.configs.json,
22480
22501
  ...eslintPluginPnpm.configs.yaml,
@@ -22544,6 +22565,30 @@ const config = [
22544
22565
  "unicorn/filename-case": "off",
22545
22566
  "unicorn/prevent-abbreviations": "off"
22546
22567
  }
22568
+ },
22569
+ // Vue & Vue Accessibility
22570
+ ...pluginVue__default.configs["flat/recommended"],
22571
+ ...vueAccessibility__default.configs["flat/recommended"],
22572
+ {
22573
+ files: ["**/*.vue"],
22574
+ plugins: {
22575
+ "vue": pluginVue__default,
22576
+ "vuejs-accessibility": vueAccessibility__default
22577
+ },
22578
+ processor: eslintMergeProcessors.mergeProcessors([
22579
+ pluginVue__default.processors[".vue"],
22580
+ processorVueBlocks__default({
22581
+ blocks: {
22582
+ customBlocks: true,
22583
+ script: false,
22584
+ styles: true,
22585
+ template: false
22586
+ }
22587
+ })
22588
+ ]),
22589
+ rules: {
22590
+ "n/no-unsupported-features/node-builtins": "off"
22591
+ }
22547
22592
  }
22548
22593
  ];
22549
22594
 
@@ -1,11 +1,16 @@
1
1
  import pluginJs from '@eslint/js';
2
+ import stylistic from '@stylistic/eslint-plugin';
2
3
  import unocss from '@unocss/eslint-config/flat';
4
+ import { mergeProcessors } from 'eslint-merge-processors';
3
5
  import nodeEslint from 'eslint-plugin-n';
4
6
  import packageJson from 'eslint-plugin-package-json';
5
7
  import perfectionist from 'eslint-plugin-perfectionist';
6
8
  import { configs } from 'eslint-plugin-pnpm';
7
9
  import turbo from 'eslint-plugin-turbo';
8
10
  import unicorn from 'eslint-plugin-unicorn';
11
+ import pluginVue from 'eslint-plugin-vue';
12
+ import vueAccessibility from 'eslint-plugin-vuejs-accessibility';
13
+ import processorVueBlocks from 'eslint-processor-vue-blocks';
9
14
  import tseslint from 'typescript-eslint';
10
15
  import require$$0$1 from 'path';
11
16
  import require$$2 from 'assert';
@@ -22451,6 +22456,18 @@ const config = [
22451
22456
  "no-undef": "off"
22452
22457
  }
22453
22458
  },
22459
+ // Stylistic
22460
+ stylistic.configs.customize({
22461
+ arrowParens: true,
22462
+ blockSpacing: true,
22463
+ braceStyle: "stroustrup",
22464
+ commaDangle: "always-multiline",
22465
+ indent: 2,
22466
+ quoteProps: "consistent-as-needed",
22467
+ quotes: "single",
22468
+ semi: false,
22469
+ severity: "error"
22470
+ }),
22454
22471
  // Plugins
22455
22472
  ...configs.json,
22456
22473
  ...configs.yaml,
@@ -22520,6 +22537,30 @@ const config = [
22520
22537
  "unicorn/filename-case": "off",
22521
22538
  "unicorn/prevent-abbreviations": "off"
22522
22539
  }
22540
+ },
22541
+ // Vue & Vue Accessibility
22542
+ ...pluginVue.configs["flat/recommended"],
22543
+ ...vueAccessibility.configs["flat/recommended"],
22544
+ {
22545
+ files: ["**/*.vue"],
22546
+ plugins: {
22547
+ "vue": pluginVue,
22548
+ "vuejs-accessibility": vueAccessibility
22549
+ },
22550
+ processor: mergeProcessors([
22551
+ pluginVue.processors[".vue"],
22552
+ processorVueBlocks({
22553
+ blocks: {
22554
+ customBlocks: true,
22555
+ script: false,
22556
+ styles: true,
22557
+ template: false
22558
+ }
22559
+ })
22560
+ ]),
22561
+ rules: {
22562
+ "n/no-unsupported-features/node-builtins": "off"
22563
+ }
22523
22564
  }
22524
22565
  ];
22525
22566
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/eslint",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "private": false,
5
5
  "description": "Shared ESLint config and rules for SaaS Makers projects",
6
6
  "repository": {
@@ -33,8 +33,10 @@
33
33
  "dependencies": {
34
34
  "@eslint/js": "9.39.2",
35
35
  "@nuxt/eslint-config": "1.12.1",
36
+ "@stylistic/eslint-plugin": "5.6.1",
36
37
  "@typescript-eslint/utils": "8.51.0",
37
38
  "@unocss/eslint-config": "66.5.12",
39
+ "eslint-merge-processors": "2.0.0",
38
40
  "eslint-plugin-n": "17.23.1",
39
41
  "eslint-plugin-package-json": "0.87.0",
40
42
  "eslint-plugin-perfectionist": "5.1.0",
@@ -43,18 +45,22 @@
43
45
  "eslint-plugin-turbo": "2.7.2",
44
46
  "eslint-plugin-unicorn": "62.0.0",
45
47
  "eslint-plugin-vue": "10.6.2",
48
+ "eslint-plugin-vuejs-accessibility": "2.4.1",
49
+ "eslint-processor-vue-blocks": "2.0.0",
46
50
  "typescript-eslint": "8.51.0",
47
- "@saasmakers/config": "0.1.24"
51
+ "@saasmakers/config": "0.1.25"
48
52
  },
49
53
  "devDependencies": {
50
54
  "@eslint/config-inspector": "1.4.2",
51
55
  "@types/estree": "1.0.8",
52
56
  "eslint": "9.39.2",
57
+ "globals": "16.5.0",
53
58
  "typescript": "5.9.3",
54
59
  "vue-eslint-parser": "10.2.0"
55
60
  },
56
61
  "peerDependencies": {
57
- "eslint": "^9.0.0"
62
+ "eslint": "^9.0.0",
63
+ "globals": "^15.0.0 || ^16.0.0"
58
64
  },
59
65
  "publishConfig": {
60
66
  "access": "public"