@saasmakers/eslint 0.1.27 → 0.1.29
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 +39 -19
- package/dist/eslint.config.mjs +37 -19
- package/package.json +3 -1
package/dist/eslint.config.cjs
CHANGED
|
@@ -7,9 +7,11 @@ 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 sortClassMembers = require('eslint-plugin-sort-class-members');
|
|
13
15
|
const storybook = require('eslint-plugin-storybook');
|
|
14
16
|
const turbo = require('eslint-plugin-turbo');
|
|
15
17
|
const unicorn = require('eslint-plugin-unicorn');
|
|
@@ -36,8 +38,10 @@ const pluginJs__default = /*#__PURE__*/_interopDefaultCompat(pluginJs);
|
|
|
36
38
|
const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
|
|
37
39
|
const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
|
|
38
40
|
const nodeEslint__default = /*#__PURE__*/_interopDefaultCompat(nodeEslint);
|
|
41
|
+
const noOnlyTests__default = /*#__PURE__*/_interopDefaultCompat(noOnlyTests);
|
|
39
42
|
const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
|
|
40
43
|
const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
|
|
44
|
+
const sortClassMembers__default = /*#__PURE__*/_interopDefaultCompat(sortClassMembers);
|
|
41
45
|
const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
|
|
42
46
|
const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
|
|
43
47
|
const unicorn__default = /*#__PURE__*/_interopDefaultCompat(unicorn);
|
|
@@ -22505,6 +22509,7 @@ const config = [
|
|
|
22505
22509
|
...eslintPluginPnpm.configs.json,
|
|
22506
22510
|
...eslintPluginPnpm.configs.yaml,
|
|
22507
22511
|
...storybook__default.configs["flat/recommended"],
|
|
22512
|
+
sortClassMembers__default.configs["flat/recommended"],
|
|
22508
22513
|
turbo__default.configs["flat/recommended"],
|
|
22509
22514
|
unocss__default,
|
|
22510
22515
|
// Node
|
|
@@ -22521,6 +22526,40 @@ const config = [
|
|
|
22521
22526
|
},
|
|
22522
22527
|
settings: { n: { version: "22.21.1" } }
|
|
22523
22528
|
},
|
|
22529
|
+
// No Only Tests
|
|
22530
|
+
{
|
|
22531
|
+
files: [
|
|
22532
|
+
"**/*.spec.ts",
|
|
22533
|
+
"**/*.test.ts",
|
|
22534
|
+
"**/tests/**/*.ts",
|
|
22535
|
+
"**/*.stories.ts"
|
|
22536
|
+
],
|
|
22537
|
+
plugins: {
|
|
22538
|
+
"no-only-tests": noOnlyTests__default
|
|
22539
|
+
},
|
|
22540
|
+
rules: {
|
|
22541
|
+
"no-only-tests/no-only-tests": "error"
|
|
22542
|
+
}
|
|
22543
|
+
},
|
|
22544
|
+
// No Unused Imports
|
|
22545
|
+
{
|
|
22546
|
+
plugins: {
|
|
22547
|
+
"unused-imports": unusedImports__default
|
|
22548
|
+
},
|
|
22549
|
+
rules: {
|
|
22550
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
22551
|
+
"unused-imports/no-unused-imports": "error",
|
|
22552
|
+
"unused-imports/no-unused-vars": [
|
|
22553
|
+
"error",
|
|
22554
|
+
{
|
|
22555
|
+
args: "after-used",
|
|
22556
|
+
argsIgnorePattern: "^_",
|
|
22557
|
+
vars: "all",
|
|
22558
|
+
varsIgnorePattern: "^_"
|
|
22559
|
+
}
|
|
22560
|
+
]
|
|
22561
|
+
}
|
|
22562
|
+
},
|
|
22524
22563
|
// Package JSON
|
|
22525
22564
|
packageJson__default.configs["recommended-publishable"],
|
|
22526
22565
|
packageJson__default.configs.stylistic,
|
|
@@ -22572,25 +22611,6 @@ const config = [
|
|
|
22572
22611
|
"unicorn/prevent-abbreviations": "off"
|
|
22573
22612
|
}
|
|
22574
22613
|
},
|
|
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
|
-
},
|
|
22594
22614
|
// Vue & Vue Accessibility
|
|
22595
22615
|
...pluginVue__default.configs["flat/recommended"],
|
|
22596
22616
|
...vueAccessibility__default.configs["flat/recommended"],
|
package/dist/eslint.config.mjs
CHANGED
|
@@ -3,9 +3,11 @@ 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 sortClassMembers from 'eslint-plugin-sort-class-members';
|
|
9
11
|
import storybook from 'eslint-plugin-storybook';
|
|
10
12
|
import turbo from 'eslint-plugin-turbo';
|
|
11
13
|
import unicorn from 'eslint-plugin-unicorn';
|
|
@@ -22475,6 +22477,7 @@ const config = [
|
|
|
22475
22477
|
...configs.json,
|
|
22476
22478
|
...configs.yaml,
|
|
22477
22479
|
...storybook.configs["flat/recommended"],
|
|
22480
|
+
sortClassMembers.configs["flat/recommended"],
|
|
22478
22481
|
turbo.configs["flat/recommended"],
|
|
22479
22482
|
unocss,
|
|
22480
22483
|
// Node
|
|
@@ -22491,6 +22494,40 @@ const config = [
|
|
|
22491
22494
|
},
|
|
22492
22495
|
settings: { n: { version: "22.21.1" } }
|
|
22493
22496
|
},
|
|
22497
|
+
// No Only Tests
|
|
22498
|
+
{
|
|
22499
|
+
files: [
|
|
22500
|
+
"**/*.spec.ts",
|
|
22501
|
+
"**/*.test.ts",
|
|
22502
|
+
"**/tests/**/*.ts",
|
|
22503
|
+
"**/*.stories.ts"
|
|
22504
|
+
],
|
|
22505
|
+
plugins: {
|
|
22506
|
+
"no-only-tests": noOnlyTests
|
|
22507
|
+
},
|
|
22508
|
+
rules: {
|
|
22509
|
+
"no-only-tests/no-only-tests": "error"
|
|
22510
|
+
}
|
|
22511
|
+
},
|
|
22512
|
+
// No Unused Imports
|
|
22513
|
+
{
|
|
22514
|
+
plugins: {
|
|
22515
|
+
"unused-imports": unusedImports
|
|
22516
|
+
},
|
|
22517
|
+
rules: {
|
|
22518
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
22519
|
+
"unused-imports/no-unused-imports": "error",
|
|
22520
|
+
"unused-imports/no-unused-vars": [
|
|
22521
|
+
"error",
|
|
22522
|
+
{
|
|
22523
|
+
args: "after-used",
|
|
22524
|
+
argsIgnorePattern: "^_",
|
|
22525
|
+
vars: "all",
|
|
22526
|
+
varsIgnorePattern: "^_"
|
|
22527
|
+
}
|
|
22528
|
+
]
|
|
22529
|
+
}
|
|
22530
|
+
},
|
|
22494
22531
|
// Package JSON
|
|
22495
22532
|
packageJson.configs["recommended-publishable"],
|
|
22496
22533
|
packageJson.configs.stylistic,
|
|
@@ -22542,25 +22579,6 @@ const config = [
|
|
|
22542
22579
|
"unicorn/prevent-abbreviations": "off"
|
|
22543
22580
|
}
|
|
22544
22581
|
},
|
|
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
|
-
},
|
|
22564
22582
|
// Vue & Vue Accessibility
|
|
22565
22583
|
...pluginVue.configs["flat/recommended"],
|
|
22566
22584
|
...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.29",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared ESLint config and rules for SaaS Makers projects",
|
|
6
6
|
"repository": {
|
|
@@ -38,9 +38,11 @@
|
|
|
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",
|
|
45
|
+
"eslint-plugin-sort-class-members": "1.21.0",
|
|
44
46
|
"eslint-plugin-storybook": "9.1.16",
|
|
45
47
|
"eslint-plugin-turbo": "2.7.2",
|
|
46
48
|
"eslint-plugin-unicorn": "62.0.0",
|