@plumeria/eslint-plugin 19.10.0 → 19.10.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/dist/guard.d.ts +1 -2
- package/dist/guard.js +3 -4
- package/package.json +2 -2
package/dist/guard.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export declare const GUARD_ENV = "PLUMERIA_LINT_GUARD";
|
|
2
1
|
type Spelling = boolean | {
|
|
3
2
|
sizes?: boolean;
|
|
4
3
|
} | undefined;
|
|
5
|
-
|
|
4
|
+
interface SpellingOptions {
|
|
6
5
|
withoutLogicalProperties?: Spelling;
|
|
7
6
|
withoutPhysicalProperties?: Spelling;
|
|
8
7
|
}
|
package/dist/guard.js
CHANGED
|
@@ -33,14 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.GUARD_ENV = void 0;
|
|
37
36
|
exports.spellingRules = spellingRules;
|
|
38
37
|
exports.startLintGuard = startLintGuard;
|
|
39
38
|
const child_process_1 = require("child_process");
|
|
40
39
|
const fs = __importStar(require("fs"));
|
|
41
40
|
const os = __importStar(require("os"));
|
|
42
41
|
const path = __importStar(require("path"));
|
|
43
|
-
|
|
42
|
+
const GUARD_ENV = 'PLUMERIA_LINT_GUARD';
|
|
44
43
|
const BASE_CONFIG = path.join(__dirname, '..', 'oxlint.json');
|
|
45
44
|
function spellingRule(spelling) {
|
|
46
45
|
if (!spelling)
|
|
@@ -67,9 +66,9 @@ function lintConfig(rules) {
|
|
|
67
66
|
return file;
|
|
68
67
|
}
|
|
69
68
|
function startLintGuard(rules = {}) {
|
|
70
|
-
if (process.env[
|
|
69
|
+
if (process.env[GUARD_ENV])
|
|
71
70
|
return false;
|
|
72
|
-
process.env[
|
|
71
|
+
process.env[GUARD_ENV] = '1';
|
|
73
72
|
const config = lintConfig(rules);
|
|
74
73
|
const child = (0, child_process_1.spawn)(process.execPath, [
|
|
75
74
|
path.join(path.dirname(require.resolve('oxlint/package.json')), 'bin', 'oxlint'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/eslint-plugin",
|
|
3
|
-
"version": "19.10.
|
|
3
|
+
"version": "19.10.1",
|
|
4
4
|
"description": "Plumeria ESLint plugin",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"known-css-properties": "^0.37.0",
|
|
60
60
|
"oxlint": "1.87.0",
|
|
61
61
|
"zss-engine": "2.9.1",
|
|
62
|
-
"@plumeria/compiler": "19.10.
|
|
62
|
+
"@plumeria/compiler": "19.10.1"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "rimraf dist && pnpm cjs",
|