@bamboocss/eslint-plugin 1.12.0 → 1.12.2
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/index.cjs +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +16 -16
- package/dist/index.mjs.map +1 -1
- package/dist/utils/worker.cjs +1 -1
- package/dist/utils/worker.mjs +1 -1
- package/dist/utils--KVHU2cv.mjs +164 -0
- package/dist/utils--KVHU2cv.mjs.map +1 -0
- package/dist/utils-BbqZf2ZV.cjs +217 -0
- package/dist/utils-BbqZf2ZV.cjs.map +1 -0
- package/package.json +8 -8
- package/dist/index.d.cts +0 -1
- package/dist/index.d.mts +0 -1
- package/dist/utils/worker.d.cts +0 -54
- package/dist/utils/worker.d.mts +0 -55
- package/dist/utils-BQiAeXE_.cjs +0 -4455
- package/dist/utils-BQiAeXE_.cjs.map +0 -1
- package/dist/utils-CwjhPHe9.mjs +0 -4433
- package/dist/utils-CwjhPHe9.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as __commonJSMin, l as __esmMin, n as init_utils, r as syncAction, t as createRule } from "./utils
|
|
2
|
-
import { getArbitraryValue } from "@bamboocss/shared";
|
|
1
|
+
import { c as __commonJSMin, l as __esmMin, n as init_utils, r as syncAction, t as createRule } from "./utils--KVHU2cv.mjs";
|
|
3
2
|
import { AST_NODE_TYPES } from "@typescript-eslint/utils";
|
|
4
3
|
import { isNodeOfType, isNodeOfTypes } from "@typescript-eslint/utils/ast-utils";
|
|
5
4
|
import { analyze } from "@typescript-eslint/scope-manager";
|
|
6
5
|
import "@typescript-eslint/utils/ts-eslint";
|
|
6
|
+
import { getArbitraryValue } from "@bamboocss/shared";
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "@bamboocss/eslint-plugin";
|
|
10
|
-
var version = "1.12.
|
|
10
|
+
var version = "1.12.2";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/utils/nodes.ts
|
|
@@ -2398,12 +2398,12 @@ var init_all = __esmMin((() => {
|
|
|
2398
2398
|
RULE_NAME$9
|
|
2399
2399
|
];
|
|
2400
2400
|
allRules = Object.fromEntries(Object.entries(rules).map(([name]) => {
|
|
2401
|
-
return [
|
|
2401
|
+
return [`bamboo/${name}`, errorRules.includes(name) ? "error" : "warn"];
|
|
2402
2402
|
}));
|
|
2403
2403
|
all_default = {
|
|
2404
2404
|
parser: "@typescript-eslint/parser",
|
|
2405
2405
|
parserOptions: { sourceType: "module" },
|
|
2406
|
-
plugins: ["
|
|
2406
|
+
plugins: ["bamboo"],
|
|
2407
2407
|
rules: allRules
|
|
2408
2408
|
};
|
|
2409
2409
|
}));
|
|
@@ -2415,18 +2415,18 @@ var init_recommended = __esmMin((() => {
|
|
|
2415
2415
|
recommended_default = {
|
|
2416
2416
|
parser: "@typescript-eslint/parser",
|
|
2417
2417
|
parserOptions: { sourceType: "module" },
|
|
2418
|
-
plugins: ["
|
|
2418
|
+
plugins: ["bamboo"],
|
|
2419
2419
|
rules: {
|
|
2420
|
-
"
|
|
2421
|
-
"
|
|
2422
|
-
"
|
|
2423
|
-
"
|
|
2424
|
-
"
|
|
2425
|
-
"
|
|
2426
|
-
"
|
|
2427
|
-
"
|
|
2428
|
-
"
|
|
2429
|
-
"
|
|
2420
|
+
"bamboo/file-not-included": "error",
|
|
2421
|
+
"bamboo/no-config-function-in-source": "error",
|
|
2422
|
+
"bamboo/no-debug": "warn",
|
|
2423
|
+
"bamboo/no-deprecated-tokens": "warn",
|
|
2424
|
+
"bamboo/no-dynamic-styling": "warn",
|
|
2425
|
+
"bamboo/no-hardcoded-color": "warn",
|
|
2426
|
+
"bamboo/no-invalid-nesting": "error",
|
|
2427
|
+
"bamboo/no-invalid-token-paths": "error",
|
|
2428
|
+
"bamboo/no-property-renaming": "warn",
|
|
2429
|
+
"bamboo/no-unsafe-token-fn-usage": "warn"
|
|
2430
2430
|
}
|
|
2431
2431
|
};
|
|
2432
2432
|
}));
|