@storm-software/linting-tools 1.115.0 → 1.115.1

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 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
- [![Version](https://img.shields.io/badge/version-1.114.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.115.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -0,0 +1,23 @@
1
+ templates:
2
+ - ./**/template.yaml
3
+ - ./**/template.yml
4
+ - ./resources/**/*.yaml
5
+ - ./resources/**/*.yml
6
+ - ./**/example-global-iam.yaml
7
+ - ./**/example-global-iam.yml
8
+ - ./**/global.yaml
9
+ - ./**/global.yml
10
+ - ./**/regional.yaml
11
+ - ./**/regional.yml
12
+ ignore_templates:
13
+ - ./**/appspec.yml
14
+ - ./**/appspec.yaml
15
+ - ./**/buildspec.yml
16
+ - ./**/buildspec.yaml
17
+ - ./**/params/*.yml
18
+ - ./**/params/*.yaml
19
+ include_checks:
20
+ - I
21
+ ignore_checks:
22
+ - W3002
23
+ - W3045
@@ -0,0 +1,438 @@
1
+ /** @type {import('dependency-cruiser').IConfiguration} */
2
+ export default {
3
+ forbidden: [
4
+ /* rules from the 'recommended' preset: */
5
+ {
6
+ name: "no-circular",
7
+ severity: "warn",
8
+ comment:
9
+ "This dependency is part of a circular relationship. You might want to revise " +
10
+ "your solution (i.e. use dependency inversion, make sure the modules have a single responsibility) ",
11
+ from: {},
12
+ to: {
13
+ circular: true,
14
+ },
15
+ },
16
+ {
17
+ name: "no-orphans",
18
+ comment:
19
+ "This is an orphan module - it's likely not used (anymore?). Either use it or " +
20
+ "remove it. If it's logical this module is an orphan (i.e. it's a config file), " +
21
+ "add an exception for it in your dependency-cruiser configuration. By default " +
22
+ "this rule does not scrutinize dot-files (e.g. .eslintrc.js), TypeScript declaration " +
23
+ "files (.d.ts), tsconfig.json and some of the babel and webpack configs.",
24
+ severity: "warn",
25
+ from: {
26
+ orphan: true,
27
+ pathNot: [
28
+ "(^|/)\\.[^/]+\\.(js|cjs|mjs|ts|json)$", // dot files
29
+ "\\.d\\.ts$", // TypeScript declaration files
30
+ "(^|/)tsconfig\\.json$", // TypeScript config
31
+ "(^|/)(babel|webpack)\\.config\\.(js|cjs|mjs|ts|json)$", // other configs
32
+ ],
33
+ },
34
+ to: {},
35
+ },
36
+ {
37
+ name: "no-deprecated-core",
38
+ comment:
39
+ "A module depends on a node core module that has been deprecated. Find an alternative - these are " +
40
+ "bound to exist - node doesn't deprecate lightly.",
41
+ severity: "warn",
42
+ from: {},
43
+ to: {
44
+ dependencyTypes: ["core"],
45
+ path: [
46
+ "^(v8/tools/codemap)$",
47
+ "^(v8/tools/consarray)$",
48
+ "^(v8/tools/csvparser)$",
49
+ "^(v8/tools/logreader)$",
50
+ "^(v8/tools/profile_view)$",
51
+ "^(v8/tools/profile)$",
52
+ "^(v8/tools/SourceMap)$",
53
+ "^(v8/tools/splaytree)$",
54
+ "^(v8/tools/tickprocessor-driver)$",
55
+ "^(v8/tools/tickprocessor)$",
56
+ "^(node-inspect/lib/_inspect)$",
57
+ "^(node-inspect/lib/internal/inspect_client)$",
58
+ "^(node-inspect/lib/internal/inspect_repl)$",
59
+ "^(async_hooks)$",
60
+ "^(punycode)$",
61
+ "^(domain)$",
62
+ "^(constants)$",
63
+ "^(sys)$",
64
+ "^(_linklist)$",
65
+ "^(_stream_wrap)$",
66
+ ],
67
+ },
68
+ },
69
+ {
70
+ name: "not-to-deprecated",
71
+ comment:
72
+ "This module uses a (version of an) npm module that has been deprecated. Either upgrade to a later " +
73
+ "version of that module, or find an alternative. Deprecated modules are a security risk.",
74
+ severity: "warn",
75
+ from: {},
76
+ to: {
77
+ dependencyTypes: ["deprecated"],
78
+ },
79
+ },
80
+ {
81
+ name: "no-non-package-json",
82
+ severity: "error",
83
+ comment:
84
+ "This module depends on an npm package that isn't in the 'dependencies' section of your package.json. " +
85
+ "That's problematic as the package either (1) won't be available on live (2 - worse) will be " +
86
+ "available on live with an non-guaranteed version. Fix it by adding the package to the dependencies " +
87
+ "in your package.json.",
88
+ from: {},
89
+ to: {
90
+ dependencyTypes: ["npm-no-pkg", "npm-unknown"],
91
+ },
92
+ },
93
+ {
94
+ name: "not-to-unresolvable",
95
+ comment:
96
+ "This module depends on a module that cannot be found ('resolved to disk'). If it's an npm " +
97
+ "module: add it to your package.json. In all other cases you likely already know what to do.",
98
+ severity: "error",
99
+ from: {},
100
+ to: {
101
+ couldNotResolve: true,
102
+ },
103
+ },
104
+ {
105
+ name: "no-duplicate-dep-types",
106
+ comment:
107
+ "Likely this module depends on an external ('npm') package that occurs more than once " +
108
+ "in your package.json i.e. bot as a devDependencies and in dependencies. This will cause " +
109
+ "maintenance problems later on.",
110
+ severity: "warn",
111
+ from: {},
112
+ to: {
113
+ moreThanOneDependencyType: true,
114
+ // as it's pretty common to have a type import be a type only import
115
+ // _and_ (e.g.) a devDependency - don't consider type-only dependency
116
+ // types for this rule
117
+ dependencyTypesNot: ["type-only"],
118
+ },
119
+ },
120
+
121
+ /* rules you might want to tweak for your specific situation: */
122
+ {
123
+ name: "not-to-spec",
124
+ comment:
125
+ "This module depends on a spec (test) file. The sole responsibility of a spec file is to test code. " +
126
+ "If there's something in a spec that's of use to other modules, it doesn't have that single " +
127
+ "responsibility anymore. Factor it out into (e.g.) a separate utility/ helper or a mock.",
128
+ severity: "error",
129
+ from: {},
130
+ to: {
131
+ path: "\\.(spec|test)\\.(js|mjs|cjs|ts|ls|coffee|litcoffee|coffee\\.md)$",
132
+ },
133
+ },
134
+ {
135
+ name: "not-to-dev-dep",
136
+ severity: "error",
137
+ comment:
138
+ "This module depends on an npm package from the 'devDependencies' section of your " +
139
+ "package.json. It looks like something that ships to production, though. To prevent problems " +
140
+ "with npm packages that aren't there on production declare it (only!) in the 'dependencies'" +
141
+ "section of your package.json. If this module is development only - add it to the " +
142
+ "from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration",
143
+ from: {
144
+ path: "^(src)",
145
+ pathNot:
146
+ "\\.(spec|test)\\.(js|mjs|cjs|ts|ls|coffee|litcoffee|coffee\\.md)$",
147
+ },
148
+ to: {
149
+ dependencyTypes: ["npm-dev"],
150
+ },
151
+ },
152
+ {
153
+ name: "optional-deps-used",
154
+ severity: "info",
155
+ comment:
156
+ "This module depends on an npm package that is declared as an optional dependency " +
157
+ "in your package.json. As this makes sense in limited situations only, it's flagged here. " +
158
+ "If you're using an optional dependency here by design - add an exception to your" +
159
+ "dependency-cruiser configuration.",
160
+ from: {},
161
+ to: {
162
+ dependencyTypes: ["npm-optional"],
163
+ },
164
+ },
165
+ {
166
+ name: "peer-deps-used",
167
+ comment:
168
+ "This module depends on an npm package that is declared as a peer dependency " +
169
+ "in your package.json. This makes sense if your package is e.g. a plugin, but in " +
170
+ "other cases - maybe not so much. If the use of a peer dependency is intentional " +
171
+ "add an exception to your dependency-cruiser configuration.",
172
+ severity: "warn",
173
+ from: {},
174
+ to: {
175
+ dependencyTypes: ["npm-peer"],
176
+ },
177
+ },
178
+ ],
179
+ options: {
180
+ /* conditions specifying which files not to follow further when encountered:
181
+ - path: a regular expression to match
182
+ - dependencyTypes: see https://github.com/sverweij/dependency-cruiser/blob/main/doc/rules-reference.md#dependencytypes-and-dependencytypesnot
183
+ for a complete list
184
+ */
185
+ doNotFollow: {
186
+ path: "node_modules",
187
+ },
188
+
189
+ /* conditions specifying which dependencies to exclude
190
+ - path: a regular expression to match
191
+ - dynamic: a boolean indicating whether to ignore dynamic (true) or static (false) dependencies.
192
+ leave out if you want to exclude neither (recommended!)
193
+ */
194
+ // exclude : {
195
+ // path: '',
196
+ // dynamic: true
197
+ // },
198
+
199
+ /* pattern specifying which files to include (regular expression)
200
+ dependency-cruiser will skip everything not matching this pattern
201
+ */
202
+ // includeOnly : '',
203
+
204
+ /* dependency-cruiser will include modules matching against the focus
205
+ regular expression in its output, as well as their neighbours (direct
206
+ dependencies and dependents)
207
+ */
208
+ // focus : '',
209
+
210
+ /* list of module systems to cruise */
211
+ // moduleSystems: ['amd', 'cjs', 'es6', 'tsd'],
212
+
213
+ /* prefix for links in html and svg output (e.g. 'https://github.com/you/yourrepo/blob/develop/'
214
+ to open it on your online repo or `vscode://file/${process.cwd()}/` to
215
+ open it in visual studio code),
216
+ */
217
+ // prefix: '',
218
+
219
+ /* false (the default): ignore dependencies that only exist before typescript-to-javascript compilation
220
+ true: also detect dependencies that only exist before typescript-to-javascript compilation
221
+ "specify": for each dependency identify whether it only exists before compilation or also after
222
+ */
223
+ tsPreCompilationDeps: true,
224
+
225
+ /*
226
+ list of extensions to scan that aren't javascript or compile-to-javascript.
227
+ Empty by default. Only put extensions in here that you want to take into
228
+ account that are _not_ parsable.
229
+ */
230
+ // extraExtensionsToScan: [".json", ".jpg", ".png", ".svg", ".webp"],
231
+
232
+ /* if true combines the package.jsons found from the module up to the base
233
+ folder the cruise is initiated from. Useful for how (some) mono-repos
234
+ manage dependencies & dependency definitions.
235
+ */
236
+ // combinedDependencies: false,
237
+
238
+ /* if true leave symlinks untouched, otherwise use the realpath */
239
+ // preserveSymlinks: false,
240
+
241
+ /* TypeScript project file ('tsconfig.json') to use for
242
+ (1) compilation and
243
+ (2) resolution (e.g. with the paths property)
244
+
245
+ The (optional) fileName attribute specifies which file to take (relative to
246
+ dependency-cruiser's current working directory). When not provided
247
+ defaults to './tsconfig.json'.
248
+ */
249
+ tsConfig: {
250
+ fileName: "tsconfig.json",
251
+ },
252
+
253
+ /* Webpack configuration to use to get resolve options from.
254
+
255
+ The (optional) fileName attribute specifies which file to take (relative
256
+ to dependency-cruiser's current working directory. When not provided defaults
257
+ to './webpack.conf.js'.
258
+
259
+ The (optional) `env` and `arguments` attributes contain the parameters to be passed if
260
+ your webpack config is a function and takes them (see webpack documentation
261
+ for details)
262
+ */
263
+ // webpackConfig: {
264
+ // fileName: './webpack.config.js',
265
+ // env: {},
266
+ // arguments: {},
267
+ // },
268
+
269
+ /* Babel config ('.babelrc', '.babelrc.json', '.babelrc.json5', ...) to use
270
+ for compilation (and whatever other naughty things babel plugins do to
271
+ source code). This feature is well tested and usable, but might change
272
+ behavior a bit over time (e.g. more precise results for used module
273
+ systems) without dependency-cruiser getting a major version bump.
274
+ */
275
+ // babelConfig: {
276
+ // fileName: './.babelrc'
277
+ // },
278
+
279
+ /* List of strings you have in use in addition to cjs/ es6 requires
280
+ & imports to declare module dependencies. Use this e.g. if you've
281
+ re-declared require, use a require-wrapper or use window.require as
282
+ a hack.
283
+ */
284
+ // exoticRequireStrings: [],
285
+ /* options to pass on to enhanced-resolve, the package dependency-cruiser
286
+ uses to resolve module references to disk. You can set most of these
287
+ options in a webpack.conf.js - this section is here for those
288
+ projects that don't have a separate webpack config file.
289
+
290
+ Note: settings in webpack.conf.js override the ones specified here.
291
+ */
292
+ enhancedResolveOptions: {
293
+ /* List of strings to consider as 'exports' fields in package.json. Use
294
+ ['exports'] when you use packages that use such a field and your environment
295
+ supports it (e.g. node ^12.19 || >=14.7 or recent versions of webpack).
296
+
297
+ If you have an `exportsFields` attribute in your webpack config, that one
298
+ will have precedence over the one specified here.
299
+ */
300
+ exportsFields: ["exports"],
301
+ /* List of conditions to check for in the exports field. e.g. use ['imports']
302
+ if you're only interested in exposed es6 modules, ['require'] for commonjs,
303
+ or all conditions at once `(['import', 'require', 'node', 'default']`)
304
+ if anything goes for you. Only works when the 'exportsFields' array is
305
+ non-empty.
306
+
307
+ If you have a 'conditionNames' attribute in your webpack config, that one will
308
+ have precedence over the one specified here.
309
+ */
310
+ conditionNames: ["import", "require", "node", "default"],
311
+ /*
312
+ The extensions, by default are the same as the ones dependency-cruiser
313
+ can access (run `npx depcruise --info` to see which ones that are in
314
+ _your_ environment. If that list is larger than what you need (e.g.
315
+ it contains .js, .jsx, .ts, .tsx, .cts, .mts - but you don't use
316
+ TypeScript you can pass just the extensions you actually use (e.g.
317
+ [".js", ".jsx"]). This can speed up the most expensive step in
318
+ dependency cruising (module resolution) quite a bit.
319
+ */
320
+ // extensions: [".js", ".jsx", ".ts", ".tsx", ".d.ts"],
321
+ /*
322
+ If your TypeScript project makes use of types specified in 'types'
323
+ fields in package.jsons of external dependencies, specify "types"
324
+ in addition to "main" in here, so enhanced-resolve (the resolver
325
+ dependency-cruiser uses) knows to also look there. You can also do
326
+ this if you're not sure, but still use TypeScript. In a future version
327
+ of dependency-cruiser this will likely become the default.
328
+ */
329
+ mainFields: ["main", "types"],
330
+ },
331
+ reporterOptions: {
332
+ dot: {
333
+ showMetrics: true,
334
+ /* pattern of modules that can be consolidated in the detailed
335
+ graphical dependency graph. The default pattern in this configuration
336
+ collapses everything in node_modules to one folder deep so you see
337
+ the external modules, but not the innards your app depends upon.
338
+ */
339
+ collapsePattern: "node_modules/(@[^/]+/[^/]+|[^/]+)",
340
+
341
+ /* Options to tweak the appearance of your graph.See
342
+ https://github.com/sverweij/dependency-cruiser/blob/main/doc/options-reference.md#reporteroptions
343
+ for details and some examples. If you don't specify a theme
344
+ don't worry - dependency-cruiser will fall back to the default one.
345
+ */
346
+ // theme: {
347
+ // graph: {
348
+ // /* use splines: "ortho" for straight lines. Be aware though
349
+ // graphviz might take a long time calculating ortho(gonal)
350
+ // routings.
351
+ // */
352
+ // splines: "true"
353
+ // },
354
+ // modules: [
355
+ // {
356
+ // criteria: { matchesFocus: true },
357
+ // attributes: {
358
+ // fillcolor: "lime",
359
+ // penwidth: 2,
360
+ // },
361
+ // },
362
+ // {
363
+ // criteria: { matchesFocus: false },
364
+ // attributes: {
365
+ // fillcolor: "lightgrey",
366
+ // },
367
+ // },
368
+ // {
369
+ // criteria: { matchesReaches: true },
370
+ // attributes: {
371
+ // fillcolor: "lime",
372
+ // penwidth: 2,
373
+ // },
374
+ // },
375
+ // {
376
+ // criteria: { matchesReaches: false },
377
+ // attributes: {
378
+ // fillcolor: "lightgrey",
379
+ // },
380
+ // },
381
+ // {
382
+ // criteria: { source: "^src/model" },
383
+ // attributes: { fillcolor: "#ccccff" }
384
+ // },
385
+ // {
386
+ // criteria: { source: "^src/view" },
387
+ // attributes: { fillcolor: "#ccffcc" }
388
+ // },
389
+ // ],
390
+ // dependencies: [
391
+ // {
392
+ // criteria: { "rules[0].severity": "error" },
393
+ // attributes: { fontcolor: "red", color: "red" }
394
+ // },
395
+ // {
396
+ // criteria: { "rules[0].severity": "warn" },
397
+ // attributes: { fontcolor: "orange", color: "orange" }
398
+ // },
399
+ // {
400
+ // criteria: { "rules[0].severity": "info" },
401
+ // attributes: { fontcolor: "blue", color: "blue" }
402
+ // },
403
+ // {
404
+ // criteria: { resolved: "^src/model" },
405
+ // attributes: { color: "#0000ff77" }
406
+ // },
407
+ // {
408
+ // criteria: { resolved: "^src/view" },
409
+ // attributes: { color: "#00770077" }
410
+ // }
411
+ // ]
412
+ // }
413
+ },
414
+ archi: {
415
+ /* pattern of modules that can be consolidated in the high level
416
+ graphical dependency graph. If you use the high level graphical
417
+ dependency graph reporter (`archi`) you probably want to tweak
418
+ this collapsePattern to your situation.
419
+ */
420
+ collapsePattern:
421
+ "^(packages|src|lib|app|bin|test(s?)|spec(s?))/[^/]+|node_modules/(@[^/]+/[^/]+|[^/]+)",
422
+
423
+ /* Options to tweak the appearance of your graph.See
424
+ https://github.com/sverweij/dependency-cruiser/blob/main/doc/options-reference.md#reporteroptions
425
+ for details and some examples. If you don't specify a theme
426
+ for 'archi' dependency-cruiser will use the one specified in the
427
+ dot section (see above), if any, and otherwise use the default one.
428
+ */
429
+ // theme: {
430
+ // },
431
+ },
432
+ text: {
433
+ highlightFocused: true,
434
+ },
435
+ },
436
+ },
437
+ };
438
+ // generated: dependency-cruiser@13.0.3 on 2023-06-08T22:17:09.126Z
@@ -0,0 +1,18 @@
1
+ {
2
+ "Verbose": false,
3
+ "Debug": false,
4
+ "IgnoreDefaults": false,
5
+ "SpacesAftertabs": false,
6
+ "NoColor": false,
7
+ "Exclude": ["LICENSE.txt"],
8
+ "AllowedContentTypes": [],
9
+ "PassedFiles": [],
10
+ "Disable": {
11
+ "EndOfLine": false,
12
+ "Indentation": false,
13
+ "IndentSize": false,
14
+ "InsertFinalNewline": false,
15
+ "TrimTrailingWhitespace": false,
16
+ "MaxLineLength": true
17
+ }
18
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "nx": {
3
+ "config": [
4
+ "nx.json",
5
+ "project.json",
6
+ "{apps,libs,packages,tools,docs}/**/project.json",
7
+ "package.json"
8
+ ]
9
+ },
10
+ "eslint": {
11
+ "config": [
12
+ ".eslintrc",
13
+ ".eslintrc.{js,json,cjs}",
14
+ ".eslintrc.{yml,yaml}",
15
+ "package.json"
16
+ ],
17
+ "entry": ["eslint.config.{js,cjs,mjs}"]
18
+ },
19
+ "prettier": {
20
+ "config": [
21
+ ".prettierrc",
22
+ ".prettierrc.{json,js,cjs,mjs,yml,yaml,toml,json5}",
23
+ "prettier.config.{js,cjs,mjs}",
24
+ "package.{json,yaml}"
25
+ ]
26
+ },
27
+ "markdownlint": {
28
+ "config": [
29
+ "*.markdownlint.{json,jsonc}",
30
+ "*.markdownlint.{yml,yaml}",
31
+ "*.markdownlint-cli2.{json,jsonc}"
32
+ ]
33
+ },
34
+ "cspell": {
35
+ "config": [
36
+ "cspell.config.{js,cjs,json,yaml,yml}",
37
+ "cspell.{json,yaml,yml}",
38
+ ".c{s,S}pell.json",
39
+ "c{s,S}pell.json"
40
+ ]
41
+ },
42
+ "tsup": {
43
+ "config": ["tsup.config.{js,ts,cjs,mjs,json}", "package.json"]
44
+ },
45
+ "postcss": {
46
+ "config": [
47
+ "package.json",
48
+ "postcss.config.json",
49
+ ".postcssrc",
50
+ ".postcssrc.{json,js,cjs,mjs,ts,mts,cts,yaml,yml}",
51
+ "postcss.config.{js,cjs,mjs,ts,mts,cts}"
52
+ ]
53
+ },
54
+ "tailwind": {
55
+ "entry": ["tailwind.config.{js,cjs,mjs,ts}"]
56
+ },
57
+ "cypress": {
58
+ "entry": ["cypress.config.ts", "cypress/e2e/*.spec.ts"]
59
+ },
60
+ "jest": {
61
+ "config": [
62
+ "jest.config.json",
63
+ "jest.config.ts",
64
+ "jest.config.cts",
65
+ "jest.config.mts",
66
+ "jest.setup.json",
67
+ "jest.setup.ts",
68
+ "jest.setup.cts",
69
+ "jest.setup.mts"
70
+ ]
71
+ }
72
+ }
@@ -0,0 +1,102 @@
1
+ # Configuration file for MegaLinter
2
+ # See all available variables at https://megalinter.io/configuration/ and in linters documentation
3
+
4
+ # all, none, or list of linter keys
5
+ APPLY_FIXES: all
6
+
7
+ # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default
8
+ # ENABLE:
9
+
10
+ DEFAULT_BRANCH: main
11
+
12
+ # If you use ENABLE_LINTERS variable, all other linters will be disabled by default
13
+ ENABLE_LINTERS:
14
+ # - BASH_EXEC
15
+ # - BASH_SHFMT
16
+ # - CLOUDFORMATION_CFN_LINT
17
+ # - DOCKERFILE_HADOLINT
18
+ - EDITORCONFIG_EDITORCONFIG_CHECKER
19
+ # - JSON_JSONLINT
20
+ - JSON_PRETTIER
21
+ # - JSON_V8R
22
+ # - JAVASCRIPT_STANDARD
23
+ - MARKDOWN_MARKDOWN_LINK_CHECK
24
+ - MARKDOWN_MARKDOWNLINT
25
+ - MARKDOWN_MARKDOWN_TABLE_FORMATTER
26
+ - SPELL_CSPELL
27
+ - TERRAFORM_TFLINT
28
+ - TERRAFORM_TERRASCAN
29
+ - YAML_YAMLLINT
30
+
31
+ FILTER_REGEX_EXCLUDE: '(\.automation/test|\.automation/generated|\.venv|\.github/workflows|docs/javascripts|docs/overrides|docs/json-schemas|flavors|clj-kondo|TEMPLATES|generators/*/files)'
32
+ YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml|generators/*/files)'
33
+ YAML_PRETTIER_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml|mkdocs\.yml)'
34
+ YAML_V8R_FILTER_REGEX_EXCLUDE: '(descriptors|templates/\.mega-linter\.yml|\.codecov\.yml)'
35
+ BASH_FILTER_REGEX_EXCLUDE: "(lib)"
36
+
37
+ # Install plugin for list handling.
38
+ JSON_PRETTIER_FILTER_REGEX_EXCLUDE: '(\.vscode/)'
39
+ JSON_PRETTIER_CONFIG_FILE: "./node_modules/@storm-software/prettier/config/config.json"
40
+ JSON_PRETTIER_PRE_COMMANDS:
41
+ - command: "pnpm add @storm-software/prettier -w -D"
42
+ cwd: "workspace"
43
+
44
+ CLOUDFORMATION_CFN_LINT_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/src/cloudformation-lint/.cfnlintrc"
45
+ CLOUDFORMATION_CFN_LINT_FILE_EXTENSIONS: [".yml", ".yaml"]
46
+
47
+ TERRAFORM_TERRASCAN_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/src/terrascan/config.yml"
48
+ TERRAFORM_TERRASCAN_UNSECURED_ENV_VARIABLES:
49
+ - GITHUB_TOKEN
50
+ - STORM_BOT_GITHUB_TOKEN
51
+ TERRAFORM_TERRASCAN_PRE_COMMANDS:
52
+ - command: "pnpm add @storm-software/linting-tools -w -D"
53
+ cwd: "workspace"
54
+
55
+ TERRAFORM_TFLINT_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/src/tflint/config.hcl"
56
+ TERRAFORM_TFLINT_UNSECURED_ENV_VARIABLES:
57
+ - GITHUB_TOKEN
58
+ - STORM_BOT_GITHUB_TOKEN
59
+ TERRAFORM_TFLINT_PRE_COMMANDS:
60
+ - command: "pnpm add @storm-software/linting-tools -w -D"
61
+ cwd: "workspace"
62
+
63
+ EDITORCONFIG_EDITORCONFIG_CHECKER_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/editorconfig-checker/config.json"
64
+ EDITORCONFIG_EDITORCONFIG_CHECKER_PRE_COMMANDS:
65
+ - command: "pnpm add @storm-software/linting-tools -w -D"
66
+ cwd: "workspace"
67
+
68
+ MARKDOWN_FILTER_REGEX_EXCLUDE: '(license\.md|docs/licenses)'
69
+
70
+ MARKDOWN_MARKDOWN_LINK_CHECK_ARGUMENTS: "-q"
71
+ MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: "./node_modules/@storm-software/markdownlint/config/markdown-link-check.json"
72
+ MARKDOWN_MARKDOWN_LINK_CHECK_DISABLE_ERRORS: true
73
+ MARKDOWN_MARKDOWN_LINK_CHECK_PRE_COMMANDS:
74
+ - command: "pnpm add @storm-software/markdownlint -w -D"
75
+ cwd: "workspace"
76
+
77
+ MARKDOWN_MARKDOWNLINT_DISABLE_ERRORS: false
78
+ MARKDOWN_MARKDOWNLINT_CONFIG_FILE: "./node_modules/@storm-software/markdownlint/config/.markdownlint-cli2.jsonc"
79
+ MARKDOWN_MARKDOWNLINT_PRE_COMMANDS:
80
+ - command: "pnpm add @storm-software/markdownlint -w -D"
81
+ cwd: "workspace"
82
+
83
+ SPELL_CSPELL_ARGUMENTS: "--gitignore --no-progress --show-suggestions"
84
+ SPELL_CSPELL_FILE_EXTENSIONS: ["*"]
85
+ SPELL_CSPELL_CONFIG_FILE: "./node_modules/@storm-software/cspell/cspell-recommended.json"
86
+ SPELL_CSPELL_PRE_COMMANDS:
87
+ - command: "pnpm add @storm-software/cspell -w -D"
88
+ cwd: "workspace"
89
+
90
+ YAML_YAMLLINT_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/yamllint/config.yml"
91
+ YAML_YAMLLINT_PRE_COMMANDS:
92
+ - command: "pnpm add @storm-software/linting-tools -w -D"
93
+ cwd: "workspace"
94
+
95
+ SARIF_REPORTER: true
96
+ SHOW_ELAPSED_TIME: true
97
+ FILEIO_REPORTER: false
98
+ EMAIL_REPORTER: false
99
+ JSON_REPORTER: true
100
+
101
+ GITHUB_STATUS_REPORTER: true
102
+ GITHUB_COMMENT_REPORTER: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.115.0",
3
+ "version": "1.115.1",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "repository": {
@@ -70,11 +70,13 @@
70
70
  "./biome/*": "./biome/*",
71
71
  "./ls-lint/*": "./ls-lint/*",
72
72
  "./knip/*": "./knip/*",
73
+ "./mega-linter/*": "./mega-linter/*",
74
+ "./terrascan/*": "./terrascan/*",
75
+ "./tflint/*": "./tflint/*",
73
76
  "./syncpack/*": "./syncpack/*",
74
77
  "./cspell/*": "./cspell/*",
75
78
  "./alex/*": "./alex/*",
76
79
  "./yamllint/*": "./yamllint/*",
77
- "./markdown-link-check/*": "./markdown-link-check/*",
78
80
  "./cloudformation-lint/*": "./cloudformation-lint/*",
79
81
  "./editorconfig-checker/*": "./editorconfig-checker/*",
80
82
  "./taplo/*": "./taplo/*",
@@ -86,11 +88,19 @@
86
88
  "alex/**/*",
87
89
  "bin/**/*",
88
90
  "biome/**/*",
91
+ "cloudformation-lint/**/*",
89
92
  "cspell/**/*",
93
+ "dependency-cruiser/**/*",
90
94
  "dist/**/*",
95
+ "editorconfig-checker/**/*",
96
+ "knip/**/*",
91
97
  "ls-lint/**/*",
98
+ "mega-linter/**/*",
92
99
  "syncpack/**/*",
93
100
  "taplo/**/*",
101
+ "terrascan/**/*",
102
+ "tflint/**/*",
103
+ "yamllint/**/*",
94
104
  "zizmor/**/*"
95
105
  ],
96
106
  "keywords": [
@@ -0,0 +1,19 @@
1
+ # [notifications]
2
+ # [notifications.webhook]
3
+ # url = "https://httpbin.org/post"
4
+ # token = "my_auth_token"
5
+
6
+ [severity]
7
+ level = "medium"
8
+
9
+ [rules]
10
+ skip-rules = ["accurics.kubernetes.IAM.107"]
11
+
12
+ [k8s-admission-control]
13
+ denied-categories = ["Network Ports Security"]
14
+ denied-severity = "high"
15
+ dashboard = true
16
+
17
+ # [policy]
18
+ # environment = "<environment_url>"
19
+ # access_token = "<access_token>"
@@ -0,0 +1,27 @@
1
+ tflint {
2
+ required_version = ">= 0.50"
3
+ }
4
+
5
+ config {
6
+ format = "compact"
7
+ plugin_dir = "~/.tflint.d/plugins"
8
+
9
+ call_module_type = "local"
10
+ force = false
11
+ disabled_by_default = false
12
+
13
+ ignore_module = {
14
+ "terraform-aws-modules/vpc/aws" = true
15
+ "terraform-aws-modules/security-group/aws" = true
16
+ }
17
+ }
18
+
19
+ plugin "aws" {
20
+ enabled = true
21
+ version = "0.4.0"
22
+ source = "github.com/terraform-linters/tflint-ruleset-aws"
23
+ }
24
+
25
+ rule "aws_instance_invalid_type" {
26
+ enabled = false
27
+ }
@@ -0,0 +1,39 @@
1
+ ---
2
+ yaml-files:
3
+ - "*.yaml"
4
+ - "*.yml"
5
+
6
+ rules:
7
+ braces:
8
+ forbid: non-empty
9
+ min-spaces-inside-empty: 0
10
+ max-spaces-inside-empty: 0
11
+ brackets: enable
12
+ colons: enable
13
+ commas: enable
14
+ comments:
15
+ level: warning
16
+ comments-indentation:
17
+ level: warning
18
+ document-end: disable
19
+ document-start: disable
20
+ empty-lines: enable
21
+ empty-values: disable
22
+ float-values:
23
+ forbid-inf: true
24
+ forbid-nan: true
25
+ forbid-scientific-notation: true
26
+ require-numeral-before-decimal: true
27
+ hyphens: enable
28
+ indentation: enable
29
+ key-duplicates: enable
30
+ key-ordering: disable
31
+ line-length: disable
32
+ new-line-at-end-of-file: disable
33
+ new-lines: enable
34
+ octal-values: enable
35
+ quoted-strings: disable
36
+ trailing-spaces: enable
37
+ truthy:
38
+ level: error
39
+ check-keys: false