chore(core): turn off CSS for release
RENAME
internal/compiler/lint/rules/css/noDuplicateCustomProperties.ts
internal/compiler/lint/rules/css/.noDuplicateCustomProperties.ts
RENAME
internal/compiler/lint/rules/css/noImportantInKeyframes.ts
internal/compiler/lint/rules/css/.noImportantInKeyframes.ts
MODIFY
internal/compiler/lint/rules/index.ts
internal/compiler/lint/rules/index.ts
-/* GENERATED:START(hash:a9bbc962ebaea2297941e035106e727be7a6f358,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/lint-rules` to update. */
+/* GENERATED:START(hash:2a199a6c9a039bff240b15f8be9d88fe9b8e0d77,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/lint-rules` to update. */
import noAccessKey from "./a11y/noAccessKey";
import noAriaUnsupportedElements from "./a11y/noAriaUnsupportedElements";
import noAutofocus from "./a11y/noAutofocus";
@@ -25,8 +25,6 @@ import useKeyWithMouseEvents from "./a11y/useKeyWithMouseEvents";
import useMediaCaption from "./a11y/useMediaCaption";
import useValidAnchor from "./a11y/useValidAnchor";
import useValidLang from "./a11y/useValidLang";
-import noDuplicateCustomProperties from "./css/noDuplicateCustomProperties";
-import noImportantInKeyframes from "./css/noImportantInKeyframes";
import useClosingNonVoid from "./html/useClosingNonVoid";
import noArguments from "./js/noArguments";
import noAsyncPromiseExecutor from "./js/noAsyncPromiseExecutor";
@@ -149,11 +147,6 @@ lintTransforms.set("a11y/useKeyWithMouseEvents", useKeyWithMouseEvents);
lintTransforms.set("a11y/useMediaCaption", useMediaCaption);
lintTransforms.set("a11y/useValidAnchor", useValidAnchor);
lintTransforms.set("a11y/useValidLang", useValidLang);
-lintTransforms.set(
- "css/noDuplicateCustomProperties",
- noDuplicateCustomProperties,
-);
-lintTransforms.set("css/noImportantInKeyframes", noImportantInKeyframes);
lintTransforms.set("html/useClosingNonVoid", useClosingNonVoid);
lintTransforms.set("js/noArguments", noArguments);
lintTransforms.set("js/noAsyncPromiseExecutor", noAsyncPromiseExecutor);
@@ -299,8 +292,6 @@ export const lintRuleNames: LintRuleName[] = [
"a11y/useMediaCaption",
"a11y/useValidAnchor",
"a11y/useValidLang",
- "css/noDuplicateCustomProperties",
- "css/noImportantInKeyframes",
"html/useClosingNonVoid",
"js/noArguments",
"js/noAsyncPromiseExecutor",
@@ -420,8 +411,6 @@ export type LintRuleName =
| "a11y/useMediaCaption"
| "a11y/useValidAnchor"
| "a11y/useValidLang"
- | "css/noDuplicateCustomProperties"
- | "css/noImportantInKeyframes"
| "html/useClosingNonVoid"
| "js/noArguments"
| "js/noAsyncPromiseExecutor"

MODIFY
internal/compiler/lint/rules/tests.ts
internal/compiler/lint/rules/tests.ts
@@ -12,7 +12,7 @@ type Tests = Dict<{
cases: Test | Test[] | Test[][];
}>;
-/* GENERATED:START(hash:256560c65dcafc042d40488c55963c310b77445f,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/lint-rules` to update. */
+/* GENERATED:START(hash:8d0a71526db3dcfb050c70a74a60ff848367b0a8,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/lint-rules` to update. */
// @ts-expect-error
import noAccessKey from "./a11y/noAccessKey.test.rjson";
// @ts-expect-error
@@ -66,10 +66,6 @@ import useValidAnchor from "./a11y/useValidAnchor.test.rjson";
// @ts-expect-error
import useValidLang from "./a11y/useValidLang.test.rjson";
// @ts-expect-error
-import noDuplicateCustomProperties from "./css/noDuplicateCustomProperties.test.rjson";
-// @ts-expect-error
-import noImportantInKeyframes from "./css/noImportantInKeyframes.test.rjson";
-// @ts-expect-error
import useClosingNonVoid from "./html/useClosingNonVoid.test.rjson";
// @ts-expect-error
import noArguments from "./js/noArguments.test.rjson";
@@ -349,14 +345,6 @@ export const tests: Tests = {
category: ["lint", "a11y", "useValidLang"],
cases: useValidLang,
},
- "css/noDuplicateCustomProperties": {
- category: ["lint", "css", "noDuplicateCustomProperties"],
- cases: noDuplicateCustomProperties,
- },
- "css/noImportantInKeyframes": {
- category: ["lint", "css", "noImportantInKeyframes"],
- cases: noImportantInKeyframes,
- },
"html/useClosingNonVoid": {
category: ["lint", "html", "useClosingNonVoid"],
cases: useClosingNonVoid,

MODIFY
internal/core/common/file-handlers/css.ts
internal/core/common/file-handlers/css.ts
@@ -6,8 +6,8 @@ export const cssHandler: PartialExtensionHandler = {
hasTabs: true,
mime: "text/css",
capabilities: {
- lint: true,
- format: true,
+ lint: false,
+ format: false,
},
async parse({integrity, path, file, worker}) {

MODIFY
internal/diagnostics/categories.ts
internal/diagnostics/categories.ts
@@ -104,7 +104,7 @@ export type DiagnosticCategoryString = StringConverter<DiagnosticCategory>;
export type DiagnosticLintCategoryString = StringConverter<DiagnosticLintCategory>;
-/* GENERATED:START(hash:1cc105a1e220477b2ffb9e959b47f54684f67486,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/lint-rules` to update. */
+/* GENERATED:START(hash:728a8d0b42ede7075a991efd0bc768ff44c7fd7f,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/lint-rules` to update. */
export type DiagnosticLintCategory =
| ["lint", "a11y", "noAccessKey"]
| ["lint", "a11y", "noAriaUnsupportedElements"]
@@ -132,8 +132,6 @@ export type DiagnosticLintCategory =
| ["lint", "a11y", "useMediaCaption"]
| ["lint", "a11y", "useValidAnchor"]
| ["lint", "a11y", "useValidLang"]
- | ["lint", "css", "noDuplicateCustomProperties"]
- | ["lint", "css", "noImportantInKeyframes"]
| ["lint", "html", "useClosingNonVoid"]
| ["lint", "js", "noArguments"]
| ["lint", "js", "noAsyncPromiseExecutor"]
@@ -265,12 +263,6 @@ export const lintCategoryNameMap: {
"lint/a11y/useMediaCaption": ["lint", "a11y", "useMediaCaption"],
"lint/a11y/useValidAnchor": ["lint", "a11y", "useValidAnchor"],
"lint/a11y/useValidLang": ["lint", "a11y", "useValidLang"],
- "lint/css/noDuplicateCustomProperties": [
- "lint",
- "css",
- "noDuplicateCustomProperties",
- ],
- "lint/css/noImportantInKeyframes": ["lint", "css", "noImportantInKeyframes"],
"lint/html/useClosingNonVoid": ["lint", "html", "useClosingNonVoid"],
"lint/js/noArguments": ["lint", "js", "noArguments"],
"lint/js/noAsyncPromiseExecutor": ["lint", "js", "noAsyncPromiseExecutor"],

MODIFY
internal/diagnostics/descriptions/lint.ts
internal/diagnostics/descriptions/lint.ts
@@ -21,10 +21,15 @@ export const lint = createDiagnosticsCategory({
category: DIAGNOSTIC_CATEGORIES["lint/ts/useTsExpectError"],
message: markup`Prefer @ts-expect-error to get notified when suppression is no longer necessary.`,
},
- CSS_NO_DUPLICATE_CUSTOM_PROPERTIES: {
- category: DIAGNOSTIC_CATEGORIES["lint/css/noDuplicateCustomProperties"],
- message: markup`Duplicate custom properties inside the same block can lead to unwanted styles`,
- },
+ // TODO: enable when CSS parser is turned on again
+ // CSS_NO_DUPLICATE_CUSTOM_PROPERTIES: {
+ // category: DIAGNOSTIC_CATEGORIES["lint/css/noDuplicateCustomProperties"],
+ // message: markup`Duplicate custom properties inside the same block can lead to unwanted styles`,
+ // },
+ // CSS_NO_IMPORTANT_IN_KEYFRAME: {
+ // category: DIAGNOSTIC_CATEGORIES["lint/css/noImportantInKeyframes"],
+ // message: markup`Using <emphasis>!important</emphasis> within keyframes declarations is completely ignored in some browsers.`,
+ // },
A11_Y_USE_HEADING_CONTENT: {
category: DIAGNOSTIC_CATEGORIES["lint/a11y/useHeadingContent"],
message: markup`Provide screen reader accessible content when using <emphasis>heading</emphasis> elements.`,
@@ -102,10 +107,6 @@ export const lint = createDiagnosticsCategory({
},
],
},
- CSS_NO_IMPORTANT_IN_KEYFRAME: {
- category: DIAGNOSTIC_CATEGORIES["lint/css/noImportantInKeyframes"],
- message: markup`Using <emphasis>!important</emphasis> within keyframes declarations is completely ignored in some browsers.`,
- },
A11_Y_NO_REDUNDANT_ALT: {
category: DIAGNOSTIC_CATEGORIES["lint/a11y/noRedundantAlt"],
message: markup`Avoid the words "image", "picture", or "photo" in <emphasis>img</emphasis> element alt text.`,

MODIFY
website/src/docs/lint/rules/index.md
website/src/docs/lint/rules/index.md
@@ -11,7 +11,7 @@ eleventyNavigation:
# Rules
-<!-- GENERATED:START(hash:b1d565d505c0ce10081c6cafdcc84536c4b226bd,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/lint-rules` to update. -->
+<!-- GENERATED:START(hash:ea4a07291faf12c3cb2e764d56ad809b177f7f3e,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/lint-rules` to update. -->
<section>
<h2>JavaScript</h2>
<p>Rule semantics and descriptions taken from <a href="https://eslint.org/">ESLint</a>. See individual rule docs for direct references.</p>
@@ -749,19 +749,5 @@ enforce style prop value is an object
<section>
<h2>CSS</h2>
<p>Rule semantics and descriptions taken from <a href="https://stylelint.io/">stylelint</a>. See individual rule docs for direct references.</p>
-<div class="rule">
-<h3 data-toc-exclude id="noDuplicateCustomProperties">
- <a href="/docs/lint/rules/css/noDuplicateCustomProperties">noDuplicateCustomProperties</a>
- <a class="header-anchor" href="#noDuplicateCustomProperties"></a>
-</h3>
-prevent custom properties with the same name inside a block
-</div>
-<div class="rule">
-<h3 data-toc-exclude id="noImportantInKeyframes">
- <a href="/docs/lint/rules/css/noImportantInKeyframes">noImportantInKeyframes</a>
- <a class="header-anchor" href="#noImportantInKeyframes"></a>
-</h3>
-disallow `!important` in `@keyframe` rules
-</div>
</section>
<!-- GENERATED:END(id:main) -->

chore(core): turn off CSS for release (#1576)