@storm-software/eslint 0.148.2 → 0.148.4
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/README.md +2 -1
- package/dist/{chunk-CA7PWCVJ.js → chunk-DKJ6VCEL.js} +2 -2
- package/dist/{chunk-SRHSKJB5.js → chunk-EJ2FSS2J.js} +39 -12
- package/dist/{chunk-HTYZKOBI.js → chunk-G4SCUHQO.js} +1 -1
- package/dist/preset.js +12 -11
- package/dist/utils/banner-plugin.js +3 -3
- package/dist/utils/constants.js +1 -1
- package/dist/utils/get-file-banner.js +2 -2
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.js +1 -5
- package/package.json +1 -1
- package/dist/chunk-NXBMVNV2.js +0 -48
- package/dist/utils/ignores.d.ts +0 -3
- package/dist/utils/ignores.js +0 -7
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
+
|
|
43
44
|
## Table of Contents
|
|
44
45
|
|
|
45
46
|
- [Storm Base ESLint Package](#storm-base-eslint-package)
|
|
@@ -91,30 +91,57 @@ var GLOB_ALL_SRC = [
|
|
|
91
91
|
GLOB_HTML
|
|
92
92
|
];
|
|
93
93
|
var GLOB_EXCLUDE = [
|
|
94
|
-
"
|
|
95
|
-
"**/
|
|
96
|
-
"**/
|
|
97
|
-
"**/
|
|
98
|
-
"**/
|
|
94
|
+
"**/.git/**",
|
|
95
|
+
"**/node_modules/**",
|
|
96
|
+
"**/src/generators/**/files/**/*",
|
|
97
|
+
"**/dist/**",
|
|
98
|
+
"**/tmp/**",
|
|
99
|
+
"**/coverage/**",
|
|
100
|
+
"**/bench/**",
|
|
101
|
+
"**/__test__/**",
|
|
102
|
+
"**/__mocks__/**",
|
|
103
|
+
"**/__generated__/**",
|
|
104
|
+
"**/.wrangler/**",
|
|
105
|
+
"**/.docusaurus/**",
|
|
106
|
+
"**/.tamagui/**",
|
|
107
|
+
"**/tamagui.css",
|
|
108
|
+
"**/.nx/**",
|
|
109
|
+
"**/.next/**",
|
|
110
|
+
"**/.storm/**",
|
|
111
|
+
"**/workbox*.js",
|
|
112
|
+
"**/sw*.js",
|
|
113
|
+
"**/service-worker.js",
|
|
114
|
+
"**/fallback*.js",
|
|
115
|
+
"**/ios/**",
|
|
116
|
+
"**/.android/**",
|
|
117
|
+
"**/.DS_Store/**",
|
|
118
|
+
"**/Thumbs.db/**",
|
|
119
|
+
"**/.cspellcache",
|
|
120
|
+
"**/package-lock.*",
|
|
121
|
+
"**/npm-lock.*",
|
|
122
|
+
"**/pnpm-lock.*",
|
|
99
123
|
"**/bun.lockb",
|
|
100
|
-
"
|
|
101
|
-
"
|
|
124
|
+
"**/cargo.lock",
|
|
125
|
+
"**/next-env.d.ts",
|
|
126
|
+
"**/CODEOWNERS",
|
|
127
|
+
"**/yarn.lock",
|
|
128
|
+
"**/jest.config.js",
|
|
129
|
+
"**/jest.setup.js",
|
|
130
|
+
"**/jest.config.ts",
|
|
131
|
+
"**/jest.setup.ts",
|
|
132
|
+
"**/jest.config.json",
|
|
133
|
+
"**/jest.setup.json",
|
|
102
134
|
"**/output",
|
|
103
|
-
"**/coverage",
|
|
104
135
|
"**/temp",
|
|
105
136
|
"**/.temp",
|
|
106
|
-
"**/tmp",
|
|
107
|
-
"**/.tmp",
|
|
108
137
|
"**/.history",
|
|
109
138
|
"**/.vitepress/cache",
|
|
110
139
|
"**/.nuxt",
|
|
111
|
-
"**/.next",
|
|
112
140
|
"**/.svelte-kit",
|
|
113
141
|
"**/.vercel",
|
|
114
142
|
"**/.changeset",
|
|
115
143
|
"**/.idea",
|
|
116
144
|
"**/.cache",
|
|
117
|
-
"**/.output",
|
|
118
145
|
"**/.vite-inspect",
|
|
119
146
|
"**/.yarn",
|
|
120
147
|
"**/CHANGELOG*.md",
|
package/dist/preset.js
CHANGED
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
} from "./chunk-D3EN5HD2.js";
|
|
12
12
|
import {
|
|
13
13
|
banner_plugin_default
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-DKJ6VCEL.js";
|
|
15
|
+
import "./chunk-G4SCUHQO.js";
|
|
16
16
|
import {
|
|
17
17
|
GLOB_ASTRO,
|
|
18
18
|
GLOB_ASTRO_TS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
GLOB_TSX,
|
|
40
40
|
GLOB_XML,
|
|
41
41
|
GLOB_YAML
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EJ2FSS2J.js";
|
|
43
43
|
import {
|
|
44
44
|
findWorkspaceRoot
|
|
45
45
|
} from "./chunk-7JRBTALJ.js";
|
|
@@ -789,12 +789,13 @@ async function graphql(options = {}) {
|
|
|
789
789
|
__name(graphql, "graphql");
|
|
790
790
|
|
|
791
791
|
// src/configs/ignores.ts
|
|
792
|
-
import defu2 from "defu";
|
|
793
|
-
import { DEFAULT_IGNORES } from "src/utils/ignores";
|
|
794
792
|
async function ignores(userIgnores = []) {
|
|
795
793
|
return [
|
|
796
794
|
{
|
|
797
|
-
ignores:
|
|
795
|
+
ignores: [
|
|
796
|
+
...GLOB_EXCLUDE,
|
|
797
|
+
...userIgnores
|
|
798
|
+
],
|
|
798
799
|
name: "storm/ignores"
|
|
799
800
|
}
|
|
800
801
|
];
|
|
@@ -1545,7 +1546,7 @@ async function imports(options = {}) {
|
|
|
1545
1546
|
__name(imports, "imports");
|
|
1546
1547
|
|
|
1547
1548
|
// src/configs/javascript.ts
|
|
1548
|
-
import
|
|
1549
|
+
import defu2 from "defu";
|
|
1549
1550
|
import globalsLib from "globals";
|
|
1550
1551
|
async function javascript(options = {}) {
|
|
1551
1552
|
const { lineEndings = "unix", overrides = {}, repositoryName, globals = {} } = options;
|
|
@@ -1554,7 +1555,7 @@ async function javascript(options = {}) {
|
|
|
1554
1555
|
name: "storm/javascript/setup",
|
|
1555
1556
|
languageOptions: {
|
|
1556
1557
|
ecmaVersion: 2022,
|
|
1557
|
-
globals:
|
|
1558
|
+
globals: defu2(globals, {
|
|
1558
1559
|
...globalsLib.browser,
|
|
1559
1560
|
...globalsLib.es2021,
|
|
1560
1561
|
...globalsLib.node,
|
|
@@ -3226,7 +3227,7 @@ async function node() {
|
|
|
3226
3227
|
__name(node, "node");
|
|
3227
3228
|
|
|
3228
3229
|
// src/configs/nx.ts
|
|
3229
|
-
import
|
|
3230
|
+
import defu3 from "defu";
|
|
3230
3231
|
async function nx(options = {}) {
|
|
3231
3232
|
const { depsCheck = false, depsCheckSeverity = "error", moduleBoundaries, ignoredDependencies = [], ignoredFiles = [], checkObsoleteDependencies = true } = options;
|
|
3232
3233
|
return [
|
|
@@ -3254,7 +3255,7 @@ async function nx(options = {}) {
|
|
|
3254
3255
|
rules: depsCheck !== false ? {
|
|
3255
3256
|
"@nx/dependency-checks": [
|
|
3256
3257
|
depsCheckSeverity,
|
|
3257
|
-
|
|
3258
|
+
defu3(depsCheck, {
|
|
3258
3259
|
buildTargets: [
|
|
3259
3260
|
"build-base",
|
|
3260
3261
|
"build"
|
|
@@ -3282,7 +3283,7 @@ async function nx(options = {}) {
|
|
|
3282
3283
|
rules: moduleBoundaries !== false ? {
|
|
3283
3284
|
"@nx/enforce-module-boundaries": [
|
|
3284
3285
|
"error",
|
|
3285
|
-
|
|
3286
|
+
defu3(moduleBoundaries ?? {}, {
|
|
3286
3287
|
enforceBuildableLibDependency: false,
|
|
3287
3288
|
checkDynamicDependenciesExceptions: [
|
|
3288
3289
|
".*"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
banner_plugin_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-DKJ6VCEL.js";
|
|
4
|
+
import "../chunk-G4SCUHQO.js";
|
|
5
|
+
import "../chunk-EJ2FSS2J.js";
|
|
6
6
|
import "../chunk-SHUYVCID.js";
|
|
7
7
|
export {
|
|
8
8
|
banner_plugin_default as default
|
package/dist/utils/constants.js
CHANGED
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { formatConfig } from './format-config.js';
|
|
2
|
-
export { DEFAULT_IGNORES } from './ignores.js';
|
|
3
1
|
export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML } from './constants.js';
|
|
2
|
+
export { formatConfig } from './format-config.js';
|
|
4
3
|
import 'eslint';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_IGNORES
|
|
3
|
-
} from "../chunk-NXBMVNV2.js";
|
|
4
1
|
import {
|
|
5
2
|
ACRONYMS_LIST,
|
|
6
3
|
GLOB_ALL_SRC,
|
|
@@ -36,14 +33,13 @@ import {
|
|
|
36
33
|
GLOB_VUE,
|
|
37
34
|
GLOB_XML,
|
|
38
35
|
GLOB_YAML
|
|
39
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-EJ2FSS2J.js";
|
|
40
37
|
import {
|
|
41
38
|
formatConfig
|
|
42
39
|
} from "../chunk-FTXILLLE.js";
|
|
43
40
|
import "../chunk-SHUYVCID.js";
|
|
44
41
|
export {
|
|
45
42
|
ACRONYMS_LIST,
|
|
46
|
-
DEFAULT_IGNORES,
|
|
47
43
|
GLOB_ALL_SRC,
|
|
48
44
|
GLOB_ASTRO,
|
|
49
45
|
GLOB_ASTRO_TS,
|
package/package.json
CHANGED
package/dist/chunk-NXBMVNV2.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// src/utils/ignores.ts
|
|
2
|
-
var DEFAULT_IGNORES = [
|
|
3
|
-
"**/.git/**",
|
|
4
|
-
"**/node_modules/**",
|
|
5
|
-
"**/src/generators/**/files/**/*",
|
|
6
|
-
"**/dist/**",
|
|
7
|
-
"**/tmp/**",
|
|
8
|
-
"**/coverage/**",
|
|
9
|
-
"**/bench/**",
|
|
10
|
-
"**/__test__/**",
|
|
11
|
-
"**/__mocks__/**",
|
|
12
|
-
"**/__generated__/**",
|
|
13
|
-
"**/.wrangler/**",
|
|
14
|
-
"**/.docusaurus/**",
|
|
15
|
-
"**/.tamagui/**",
|
|
16
|
-
"**/tamagui.css",
|
|
17
|
-
"**/.nx/**",
|
|
18
|
-
"**/.next/**",
|
|
19
|
-
"**/.storm/**",
|
|
20
|
-
"**/workbox*.js",
|
|
21
|
-
"**/sw*.js",
|
|
22
|
-
"**/service-worker.js",
|
|
23
|
-
"**/fallback*.js",
|
|
24
|
-
"**/ios/**",
|
|
25
|
-
"**/.android/**",
|
|
26
|
-
"**/.DS_Store/**",
|
|
27
|
-
"**/Thumbs.db/**",
|
|
28
|
-
"**/.cspellcache",
|
|
29
|
-
"**/package-lock.*",
|
|
30
|
-
"**/npm-lock.*",
|
|
31
|
-
"**/pnpm-lock.*",
|
|
32
|
-
"**/pnpm-lock.*",
|
|
33
|
-
"**/bun.lockb",
|
|
34
|
-
"**/cargo.lock",
|
|
35
|
-
"**/next-env.d.ts",
|
|
36
|
-
"**/CODEOWNERS",
|
|
37
|
-
"**/yarn.lock",
|
|
38
|
-
"**/jest.config.js",
|
|
39
|
-
"**/jest.setup.js",
|
|
40
|
-
"**/jest.config.ts",
|
|
41
|
-
"**/jest.setup.ts",
|
|
42
|
-
"**/jest.config.json",
|
|
43
|
-
"**/jest.setup.json"
|
|
44
|
-
];
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
DEFAULT_IGNORES
|
|
48
|
-
};
|
package/dist/utils/ignores.d.ts
DELETED