@saasmakers/eslint 0.1.16 → 0.1.18
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 +20 -4
- package/dist/eslint.config.mjs +19 -4
- package/package.json +14 -10
package/dist/eslint.config.cjs
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./shared/eslint.NxlGRwZa.cjs');
|
|
6
6
|
const unocss = require('@unocss/eslint-config/flat');
|
|
7
|
+
const packageJson = require('eslint-plugin-package-json');
|
|
7
8
|
const perfectionist = require('eslint-plugin-perfectionist');
|
|
9
|
+
const eslintPluginPnpm = require('eslint-plugin-pnpm');
|
|
8
10
|
const turbo = require('eslint-plugin-turbo');
|
|
9
11
|
const tseslint = require('typescript-eslint');
|
|
10
12
|
const require$$0$2 = require('path');
|
|
@@ -21,6 +23,7 @@ require('eslint/use-at-your-own-risk');
|
|
|
21
23
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
22
24
|
|
|
23
25
|
const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
|
|
26
|
+
const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
|
|
24
27
|
const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
|
|
25
28
|
const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
|
|
26
29
|
const tseslint__default = /*#__PURE__*/_interopDefaultCompat(tseslint);
|
|
@@ -22405,7 +22408,7 @@ var vueEslintParserExports = requireVueEslintParser();
|
|
|
22405
22408
|
const parserVue = /*@__PURE__*/index.getDefaultExportFromCjs(vueEslintParserExports);
|
|
22406
22409
|
|
|
22407
22410
|
const config = [
|
|
22408
|
-
// Global ignores
|
|
22411
|
+
// Global ignores
|
|
22409
22412
|
{
|
|
22410
22413
|
ignores: [
|
|
22411
22414
|
"**/.nuxt",
|
|
@@ -22421,7 +22424,7 @@ const config = [
|
|
|
22421
22424
|
"node_modules"
|
|
22422
22425
|
]
|
|
22423
22426
|
},
|
|
22424
|
-
// JavaScript & TypeScript
|
|
22427
|
+
// JavaScript & TypeScript
|
|
22425
22428
|
pluginJs.configs.recommended,
|
|
22426
22429
|
...tseslint__default.configs.strict,
|
|
22427
22430
|
...tseslint__default.configs.stylistic,
|
|
@@ -22451,18 +22454,31 @@ const config = [
|
|
|
22451
22454
|
}
|
|
22452
22455
|
},
|
|
22453
22456
|
// Plugins
|
|
22457
|
+
...eslintPluginPnpm.configs.json,
|
|
22458
|
+
...eslintPluginPnpm.configs.yaml,
|
|
22454
22459
|
unocss__default,
|
|
22455
22460
|
turbo__default.configs["flat/recommended"],
|
|
22456
|
-
//
|
|
22461
|
+
// Package JSON
|
|
22462
|
+
packageJson__default.configs["recommended-publishable"],
|
|
22463
|
+
packageJson__default.configs.stylistic,
|
|
22464
|
+
{
|
|
22465
|
+
files: ["package.json"],
|
|
22466
|
+
rules: {
|
|
22467
|
+
"package-json/require-exports": "off",
|
|
22468
|
+
"package-json/require-files": "off"
|
|
22469
|
+
}
|
|
22470
|
+
},
|
|
22471
|
+
// Perfectionst
|
|
22457
22472
|
perfectionist__default.configs["recommended-natural"],
|
|
22458
22473
|
{
|
|
22474
|
+
files: ["**/*.{ts,mts,tsx,vue}"],
|
|
22459
22475
|
rules: {
|
|
22460
22476
|
"perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
|
|
22461
22477
|
"perfectionist/sort-modules": ["error", { partitionByComment: true, type: "natural" }],
|
|
22462
22478
|
"perfectionist/sort-objects": ["error", { partitionByNewLine: true, type: "natural" }]
|
|
22463
22479
|
}
|
|
22464
22480
|
},
|
|
22465
|
-
// SaaS Makers
|
|
22481
|
+
// SaaS Makers
|
|
22466
22482
|
{
|
|
22467
22483
|
plugins: {
|
|
22468
22484
|
saasmakers: index.saasmakers
|
package/dist/eslint.config.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { g as getAugmentedNamespace, a as getDefaultExportFromCjs, r as requireEslintVisitorKeys, s as saasmakers } from './shared/eslint.poN7Ld_I.mjs';
|
|
2
2
|
import unocss from '@unocss/eslint-config/flat';
|
|
3
|
+
import packageJson from 'eslint-plugin-package-json';
|
|
3
4
|
import perfectionist from 'eslint-plugin-perfectionist';
|
|
5
|
+
import { configs } from 'eslint-plugin-pnpm';
|
|
4
6
|
import turbo from 'eslint-plugin-turbo';
|
|
5
7
|
import tseslint from 'typescript-eslint';
|
|
6
8
|
import require$$0$2 from 'path';
|
|
@@ -22385,7 +22387,7 @@ var vueEslintParserExports = requireVueEslintParser();
|
|
|
22385
22387
|
const parserVue = /*@__PURE__*/getDefaultExportFromCjs(vueEslintParserExports);
|
|
22386
22388
|
|
|
22387
22389
|
const config = [
|
|
22388
|
-
// Global ignores
|
|
22390
|
+
// Global ignores
|
|
22389
22391
|
{
|
|
22390
22392
|
ignores: [
|
|
22391
22393
|
"**/.nuxt",
|
|
@@ -22401,7 +22403,7 @@ const config = [
|
|
|
22401
22403
|
"node_modules"
|
|
22402
22404
|
]
|
|
22403
22405
|
},
|
|
22404
|
-
// JavaScript & TypeScript
|
|
22406
|
+
// JavaScript & TypeScript
|
|
22405
22407
|
pluginJs.configs.recommended,
|
|
22406
22408
|
...tseslint.configs.strict,
|
|
22407
22409
|
...tseslint.configs.stylistic,
|
|
@@ -22431,18 +22433,31 @@ const config = [
|
|
|
22431
22433
|
}
|
|
22432
22434
|
},
|
|
22433
22435
|
// Plugins
|
|
22436
|
+
...configs.json,
|
|
22437
|
+
...configs.yaml,
|
|
22434
22438
|
unocss,
|
|
22435
22439
|
turbo.configs["flat/recommended"],
|
|
22436
|
-
//
|
|
22440
|
+
// Package JSON
|
|
22441
|
+
packageJson.configs["recommended-publishable"],
|
|
22442
|
+
packageJson.configs.stylistic,
|
|
22443
|
+
{
|
|
22444
|
+
files: ["package.json"],
|
|
22445
|
+
rules: {
|
|
22446
|
+
"package-json/require-exports": "off",
|
|
22447
|
+
"package-json/require-files": "off"
|
|
22448
|
+
}
|
|
22449
|
+
},
|
|
22450
|
+
// Perfectionst
|
|
22437
22451
|
perfectionist.configs["recommended-natural"],
|
|
22438
22452
|
{
|
|
22453
|
+
files: ["**/*.{ts,mts,tsx,vue}"],
|
|
22439
22454
|
rules: {
|
|
22440
22455
|
"perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
|
|
22441
22456
|
"perfectionist/sort-modules": ["error", { partitionByComment: true, type: "natural" }],
|
|
22442
22457
|
"perfectionist/sort-objects": ["error", { partitionByNewLine: true, type: "natural" }]
|
|
22443
22458
|
}
|
|
22444
22459
|
},
|
|
22445
|
-
// SaaS Makers
|
|
22460
|
+
// SaaS Makers
|
|
22446
22461
|
{
|
|
22447
22462
|
plugins: {
|
|
22448
22463
|
saasmakers
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/eslint",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.1.16",
|
|
3
|
+
"version": "0.1.18",
|
|
5
4
|
"private": false,
|
|
6
5
|
"description": "Shared ESLint config and rules for SaaS Makers projects",
|
|
7
|
-
"license": "MIT",
|
|
8
6
|
"repository": {
|
|
9
7
|
"type": "git",
|
|
10
8
|
"url": "git+https://github.com/saasmakers/saasmakers-turborepo.git",
|
|
11
9
|
"directory": "packages/eslint"
|
|
12
10
|
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "SaaS Makers",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"type": "module",
|
|
13
15
|
"exports": {
|
|
14
16
|
".": {
|
|
15
17
|
"types": "./dist/index.d.ts",
|
|
@@ -25,24 +27,20 @@
|
|
|
25
27
|
"main": "dist/index.cjs",
|
|
26
28
|
"module": "./dist/index.mjs",
|
|
27
29
|
"types": "dist/index.d.ts",
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"access": "public"
|
|
30
|
-
},
|
|
31
30
|
"files": [
|
|
32
31
|
"dist"
|
|
33
32
|
],
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"eslint": "^9.0.0"
|
|
36
|
-
},
|
|
37
33
|
"dependencies": {
|
|
38
34
|
"@nuxt/eslint-config": "1.12.1",
|
|
39
35
|
"@unocss/eslint-config": "66.5.12",
|
|
36
|
+
"eslint-plugin-package-json": "0.87.0",
|
|
40
37
|
"eslint-plugin-perfectionist": "5.1.0",
|
|
38
|
+
"eslint-plugin-pnpm": "1.4.3",
|
|
41
39
|
"eslint-plugin-storybook": "9.1.16",
|
|
42
40
|
"eslint-plugin-turbo": "2.7.2",
|
|
43
41
|
"eslint-plugin-vue": "10.6.2",
|
|
44
42
|
"typescript-eslint": "8.51.0",
|
|
45
|
-
"@saasmakers/config": "0.1.
|
|
43
|
+
"@saasmakers/config": "0.1.23"
|
|
46
44
|
},
|
|
47
45
|
"devDependencies": {
|
|
48
46
|
"@eslint/config-inspector": "1.4.2",
|
|
@@ -51,6 +49,12 @@
|
|
|
51
49
|
"typescript": "5.9.3",
|
|
52
50
|
"vue-eslint-parser": "10.2.0"
|
|
53
51
|
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"eslint": "^9.0.0"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
54
58
|
"scripts": {
|
|
55
59
|
"build": "unbuild",
|
|
56
60
|
"build:inspector": "pnpm build && pnpm dlx @eslint/config-inspector build",
|