@storm-software/eslint 0.73.0 → 0.75.0
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 +1 -1
- package/dist/preset.d.mts +1 -0
- package/dist/preset.d.ts +1 -0
- package/dist/preset.mjs +20 -5
- package/package.json +2 -2
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 -->
|
package/dist/preset.d.mts
CHANGED
package/dist/preset.d.ts
CHANGED
package/dist/preset.mjs
CHANGED
|
@@ -5,6 +5,7 @@ const __filename = banner_fileURLToPath(import.meta.url);
|
|
|
5
5
|
const __dirname = banner_dirname(__filename);
|
|
6
6
|
|
|
7
7
|
import { plugins, rules } from '@cspell/eslint-plugin/recommended';
|
|
8
|
+
import next from '@next/eslint-plugin-next';
|
|
8
9
|
import nxPlugin from '@nx/eslint-plugin';
|
|
9
10
|
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
|
10
11
|
import markdown from 'eslint-plugin-markdown';
|
|
@@ -13445,13 +13446,21 @@ function getEOL(options) {
|
|
|
13445
13446
|
return os.EOL;
|
|
13446
13447
|
}
|
|
13447
13448
|
function hasBanner(commentType, src) {
|
|
13448
|
-
if (src.
|
|
13449
|
-
const
|
|
13450
|
-
if (
|
|
13451
|
-
|
|
13449
|
+
if (src.startsWith("#!")) {
|
|
13450
|
+
const bannerLines = src.split(/\r?\n/);
|
|
13451
|
+
if (bannerLines && bannerLines.length > 1) {
|
|
13452
|
+
bannerLines.shift();
|
|
13453
|
+
while (bannerLines.length && bannerLines[0] && !bannerLines[0].replace(/\s+/, "")) {
|
|
13454
|
+
bannerLines.shift();
|
|
13455
|
+
}
|
|
13456
|
+
if (bannerLines.length) {
|
|
13457
|
+
src = bannerLines.join("\n");
|
|
13458
|
+
} else {
|
|
13459
|
+
return false;
|
|
13460
|
+
}
|
|
13452
13461
|
}
|
|
13453
13462
|
}
|
|
13454
|
-
return commentType === "block" && src.
|
|
13463
|
+
return commentType === "block" && src.startsWith("/*") || commentType === "lint" && src.startsWith("//") || commentType !== "block" && commentType !== "lint" && commentType && src.startsWith(commentType);
|
|
13455
13464
|
}
|
|
13456
13465
|
function matchesLineEndings(src, num) {
|
|
13457
13466
|
for (let j = 0; j < num; ++j) {
|
|
@@ -13957,6 +13966,12 @@ function getStormConfig(options = {
|
|
|
13957
13966
|
}
|
|
13958
13967
|
configs.push(reactConfig);
|
|
13959
13968
|
}
|
|
13969
|
+
if (options.nextFiles && options.nextFiles.length > 0) {
|
|
13970
|
+
configs.push({
|
|
13971
|
+
...next.configs["core-web-vitals"],
|
|
13972
|
+
files: options.nextFiles
|
|
13973
|
+
});
|
|
13974
|
+
}
|
|
13960
13975
|
if (options.markdown) {
|
|
13961
13976
|
configs.push(...markdown.configs.recommended);
|
|
13962
13977
|
configs.push({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
{
|
|
28
28
|
"name": "Pat Sullivan",
|
|
29
29
|
"email": "admin@stormsoftware.com",
|
|
30
|
-
"url": "https://
|
|
30
|
+
"url": "https://patsullivan.org"
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
33
|
"license": "Apache-2.0",
|