@saasmakers/eslint 0.1.25 → 0.1.27
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.
- package/dist/eslint.config.cjs +26 -1
- package/dist/eslint.config.mjs +24 -1
- package/package.json +2 -1
package/dist/eslint.config.cjs
CHANGED
|
@@ -10,8 +10,10 @@ const nodeEslint = require('eslint-plugin-n');
|
|
|
10
10
|
const packageJson = require('eslint-plugin-package-json');
|
|
11
11
|
const perfectionist = require('eslint-plugin-perfectionist');
|
|
12
12
|
const eslintPluginPnpm = require('eslint-plugin-pnpm');
|
|
13
|
+
const storybook = require('eslint-plugin-storybook');
|
|
13
14
|
const turbo = require('eslint-plugin-turbo');
|
|
14
15
|
const unicorn = require('eslint-plugin-unicorn');
|
|
16
|
+
const unusedImports = require('eslint-plugin-unused-imports');
|
|
15
17
|
const pluginVue = require('eslint-plugin-vue');
|
|
16
18
|
const vueAccessibility = require('eslint-plugin-vuejs-accessibility');
|
|
17
19
|
const processorVueBlocks = require('eslint-processor-vue-blocks');
|
|
@@ -36,8 +38,10 @@ const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
|
|
|
36
38
|
const nodeEslint__default = /*#__PURE__*/_interopDefaultCompat(nodeEslint);
|
|
37
39
|
const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
|
|
38
40
|
const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
|
|
41
|
+
const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
|
|
39
42
|
const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
|
|
40
43
|
const unicorn__default = /*#__PURE__*/_interopDefaultCompat(unicorn);
|
|
44
|
+
const unusedImports__default = /*#__PURE__*/_interopDefaultCompat(unusedImports);
|
|
41
45
|
const pluginVue__default = /*#__PURE__*/_interopDefaultCompat(pluginVue);
|
|
42
46
|
const vueAccessibility__default = /*#__PURE__*/_interopDefaultCompat(vueAccessibility);
|
|
43
47
|
const processorVueBlocks__default = /*#__PURE__*/_interopDefaultCompat(processorVueBlocks);
|
|
@@ -22477,6 +22481,7 @@ const config = [
|
|
|
22477
22481
|
}
|
|
22478
22482
|
},
|
|
22479
22483
|
rules: {
|
|
22484
|
+
"@typescript-eslint/no-empty-object-type": "off",
|
|
22480
22485
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
22481
22486
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
|
|
22482
22487
|
"array-bracket-newline": ["error", { minItems: 3, multiline: true }],
|
|
@@ -22499,8 +22504,9 @@ const config = [
|
|
|
22499
22504
|
// Plugins
|
|
22500
22505
|
...eslintPluginPnpm.configs.json,
|
|
22501
22506
|
...eslintPluginPnpm.configs.yaml,
|
|
22502
|
-
|
|
22507
|
+
...storybook__default.configs["flat/recommended"],
|
|
22503
22508
|
turbo__default.configs["flat/recommended"],
|
|
22509
|
+
unocss__default,
|
|
22504
22510
|
// Node
|
|
22505
22511
|
nodeEslint__default.configs["flat/recommended"],
|
|
22506
22512
|
{
|
|
@@ -22566,6 +22572,25 @@ const config = [
|
|
|
22566
22572
|
"unicorn/prevent-abbreviations": "off"
|
|
22567
22573
|
}
|
|
22568
22574
|
},
|
|
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
|
+
},
|
|
22569
22594
|
// Vue & Vue Accessibility
|
|
22570
22595
|
...pluginVue__default.configs["flat/recommended"],
|
|
22571
22596
|
...vueAccessibility__default.configs["flat/recommended"],
|
package/dist/eslint.config.mjs
CHANGED
|
@@ -6,8 +6,10 @@ import nodeEslint from 'eslint-plugin-n';
|
|
|
6
6
|
import packageJson from 'eslint-plugin-package-json';
|
|
7
7
|
import perfectionist from 'eslint-plugin-perfectionist';
|
|
8
8
|
import { configs } from 'eslint-plugin-pnpm';
|
|
9
|
+
import storybook from 'eslint-plugin-storybook';
|
|
9
10
|
import turbo from 'eslint-plugin-turbo';
|
|
10
11
|
import unicorn from 'eslint-plugin-unicorn';
|
|
12
|
+
import unusedImports from 'eslint-plugin-unused-imports';
|
|
11
13
|
import pluginVue from 'eslint-plugin-vue';
|
|
12
14
|
import vueAccessibility from 'eslint-plugin-vuejs-accessibility';
|
|
13
15
|
import processorVueBlocks from 'eslint-processor-vue-blocks';
|
|
@@ -22449,6 +22451,7 @@ const config = [
|
|
|
22449
22451
|
}
|
|
22450
22452
|
},
|
|
22451
22453
|
rules: {
|
|
22454
|
+
"@typescript-eslint/no-empty-object-type": "off",
|
|
22452
22455
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
22453
22456
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
|
|
22454
22457
|
"array-bracket-newline": ["error", { minItems: 3, multiline: true }],
|
|
@@ -22471,8 +22474,9 @@ const config = [
|
|
|
22471
22474
|
// Plugins
|
|
22472
22475
|
...configs.json,
|
|
22473
22476
|
...configs.yaml,
|
|
22474
|
-
|
|
22477
|
+
...storybook.configs["flat/recommended"],
|
|
22475
22478
|
turbo.configs["flat/recommended"],
|
|
22479
|
+
unocss,
|
|
22476
22480
|
// Node
|
|
22477
22481
|
nodeEslint.configs["flat/recommended"],
|
|
22478
22482
|
{
|
|
@@ -22538,6 +22542,25 @@ const config = [
|
|
|
22538
22542
|
"unicorn/prevent-abbreviations": "off"
|
|
22539
22543
|
}
|
|
22540
22544
|
},
|
|
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
|
+
},
|
|
22541
22564
|
// Vue & Vue Accessibility
|
|
22542
22565
|
...pluginVue.configs["flat/recommended"],
|
|
22543
22566
|
...vueAccessibility.configs["flat/recommended"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/eslint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared ESLint config and rules for SaaS Makers projects",
|
|
6
6
|
"repository": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"eslint-plugin-storybook": "9.1.16",
|
|
45
45
|
"eslint-plugin-turbo": "2.7.2",
|
|
46
46
|
"eslint-plugin-unicorn": "62.0.0",
|
|
47
|
+
"eslint-plugin-unused-imports": "4.3.0",
|
|
47
48
|
"eslint-plugin-vue": "10.6.2",
|
|
48
49
|
"eslint-plugin-vuejs-accessibility": "2.4.1",
|
|
49
50
|
"eslint-processor-vue-blocks": "2.0.0",
|