file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_css_compat/tests/custom-media-query/complex.css | CSS | @custom-media --🧑🏾🎤 (min-width: 1);
@media (--🧑🏾🎤) {
.a {
order: 1;
}
}
@custom-media --\(\)-escaped (min-width: 2);
@media (--\(\)-escaped) {
.a {
order: 2;
}
}
@custom-media --modern (min-width: 3), (min-width: 4);
@media (--modern) and (width > 1024px) {
.a { order: 3; }
}
@custom-media --test... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/custom-media-query/complex.expect.css | CSS | @media (min-width: 1) {
.a {
order: 1;
}
}
@media (min-width: 2) {
.a {
order: 2;
}
}
@media ((min-width: 3) or (min-width: 4)) and (width > 1024px) {
.a {
order: 3;
}
}
@media ((color) or (hover)) and (width > 1024px) {
.a {
color: green;
}
}
@media ((not (color)) or (hover)) and (width... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/custom-media-query/examples/example.css | CSS | @custom-media --small-viewport (max-width: 30em);
@media (--small-viewport) {
/* styles for small viewport */
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/custom-media-query/examples/example.expect.css | CSS | @media (max-width: 30em) {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/custom-media-query/examples/example.preserve.expect.css | CSS | @custom-media --small-viewport (max-width: 30em);
@media (max-width: 30em) {
/* styles for small viewport */
}
@media (--small-viewport) {
/* styles for small viewport */
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/custom-media-query/export-media.css | CSS | @custom-media --mq-a (max-width: 30em), (max-height: 30em);
@custom-media --mq-b screen and (max-width: 30em);
@custom-media --not-mq-a not all and (--mq-a);
@custom-media --circular-mq-a (--circular-mq-b);
@custom-media --circular-mq-b (--circular-mq-a);
@custom-media --min (min-width: 320px);
@custom-media --max (max... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/fixture.rs | Rust | //! Tests ported from https://github.com/thysultan/stylis.js
//!
//! License is MIT, which is original license at the time of copying.
//! Original test authors have copyright for their work.
#![deny(warnings)]
#![allow(clippy::needless_update)]
use std::path::PathBuf;
use swc_common::{errors::HANDLER, sync::Lrc, Sou... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/media-query-ranges/input.css | CSS | @import "foo1.css" screen and (100px > width > 200px);
@import "foo2.css" screen and (width >= 500px);
@media (width >= 500px) {
a { color: red }
}
@media (width < 500px) {
a { color: red }
}
@media (width <= 500px) {
a { color: red }
}
@media (width > 500px) {
a { color: red }
}
@media (width = 50... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/media-query-ranges/input.expect.css | CSS | @import "foo1.css" screen and ((max-width: 99.999px) and (min-width: 200.001px));
@import "foo2.css" screen and (min-width: 500px);
@media (min-width: 500px) {
a {
color: red;
}
}
@media (max-width: 499.999px) {
a {
color: red;
}
}
@media (max-width: 500px) {
a {
color: red;
}
}
@media (min-widt... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/nesting/amphersand/input.css | CSS | table.colortable {
& td {
text-align: center;
&.c { text-transform:uppercase }
&:first-child, &:first-child + td { border:1px solid black }
}
& th {
text-align:center;
background:black;
color:white;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/nesting/amphersand/input.expect.css | CSS | table.colortable {}
table.colortable td {
text-align: center;
}
table.colortable td.c {
text-transform: uppercase;
}
table.colortable td:first-child,
table.colortable td:first-child + td {
border: 1px solid black;
}
table.colortable th {
text-align: center;
background: black;
color: white;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/nesting/basic/input.css | CSS | table.colortable {
& td {
text-align: center;
&.c { text-transform:uppercase }
&:first-child, &:first-child + td { border:1px solid black }
}
& th {
text-align:center;
background:black;
color:white;
}
}
.foo {
color: blue;
& > .bar { color: red; }
}
.... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/nesting/basic/input.expect.css | CSS | table.colortable {}
table.colortable td {
text-align: center;
}
table.colortable td.c {
text-transform: uppercase;
}
table.colortable td:first-child,
table.colortable td:first-child + td {
border: 1px solid black;
}
table.colortable th {
text-align: center;
background: black;
color: white;
}
.foo {
color... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/nesting/pseudo-is/input.css | CSS | .foo {
&:is(.bar, &.baz) { color: red; }
}
/* TODO FIX ME */
.foo {
& :is(.bar, &.baz) { color: red; }
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/nesting/pseudo-is/input.expect.css | CSS | .foo {}
.foo:is(.bar, .foo.baz) {
color: red;
}
.foo {}
.foo :is(.bar, &.baz) {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/selector-not/input.css | CSS | body {
order: 1;
}
body, Not {
order: 2;
}
em[attr=:not],
em[attr=":not"] {
order: 3;
}
em[attr~=:not],
em[attr~=":not"] {
order: 4;
}
em[not=abc],
em[not="abc"] {
order: 5;
}
:not {
order: 6;
}
:not(a, b) {
order: 7;
}
:nOt(a, b) {
order: 7.1;
}
tag:not(.class, .class2) {
or... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/selector-not/input.expect.css | CSS | body {
order: 1;
}
body,
Not {
order: 2;
}
em[attr=:not],
em[attr=":not"] {
order: 3;
}
em[attr~=:not],
em[attr~=":not"] {
order: 4;
}
em[not=abc],
em[not="abc"] {
order: 5;
}
:not {
order: 6;
}
:not(a):not(b) {
order: 7;
}
:not(a):not(b) {
order: 7.1;
}
tag:not(.class):not(.class2) {
order: 8;
}
ta... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/config.rs | Rust | use std::fmt::Debug;
use serde::{Deserialize, Serialize};
use crate::rules::{
at_rule_no_unknown::AtRuleNoUnknownConfig, color_hex_alpha::ColorHexAlphaConfig,
color_hex_length::ColorHexLengthConfig,
font_family_no_duplicate_names::FontFamilyNoDuplicateNamesConfig,
no_invalid_position_at_import_rule::N... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/dataset.rs | Rust | pub(crate) fn is_generic_font_keyword<S: AsRef<str>>(name: S) -> bool {
let name = name.as_ref();
name.eq_ignore_ascii_case("serif")
|| name.eq_ignore_ascii_case("sans-serif")
|| name.eq_ignore_ascii_case("cursive")
|| name.eq_ignore_ascii_case("fantasy")
|| name.eq_ignore_ascii_... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/error.rs | Rust | use thiserror::Error;
#[derive(Error, Debug)]
pub enum ConfigError {
#[error("invalid regex")]
Regex(#[from] swc_cached::regex::Error),
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/lib.rs | Rust | #![deny(clippy::all)]
mod config;
mod dataset;
mod error;
mod pattern;
mod rule;
mod rules;
pub use config::LintConfig;
pub(crate) use error::ConfigError;
pub use rule::LintRule;
pub use rules::{get_rules, LintParams};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/pattern.rs | Rust | use swc_cached::regex::CachedRegex;
#[derive(Debug)]
pub(crate) enum NamePattern {
Str(String),
Regex(CachedRegex),
}
impl NamePattern {
pub(crate) fn is_match<S>(&self, name: S) -> bool
where
S: AsRef<str>,
{
let name = name.as_ref();
match self {
Self::Str(s) ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rule.rs | Rust | use std::{fmt::Debug, sync::Arc};
use auto_impl::auto_impl;
use parking_lot::Mutex;
use rayon::prelude::*;
use serde::Serialize;
use swc_common::{
errors::{Diagnostic, DiagnosticBuilder, Emitter, Handler, HANDLER},
Spanned,
};
use swc_css_ast::Stylesheet;
use swc_css_visit::{Visit, VisitWith};
use super::conf... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/at_rule_no_unknown.rs | Rust | use serde::{Deserialize, Serialize};
use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::{
pattern::NamePattern,
rule::{visitor_rule, LintRule, LintRuleContext},
ConfigError,
};
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AtRuleN... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/block_no_empty.rs | Rust | use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub fn block_no_empty(ctx: LintRuleContext<()>) -> Box<dyn LintRule> {
visitor_rule(ctx.reaction(), BlockNoEmpty { ctx })
}
const MESSAGE: &str = "Unexpected empty block.";
#[derive(Debug, Defa... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/color_hex_alpha.rs | Rust | use serde::{Deserialize, Serialize};
use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub type ColorHexAlphaConfig = Option<Preference>;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum Preference {
A... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/color_hex_length.rs | Rust | use serde::{Deserialize, Serialize};
use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub type ColorHexLengthConfig = Option<HexForm>;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum HexForm {
Long,
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/color_no_invalid_hex.rs | Rust | use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub fn color_no_invalid_hex(ctx: LintRuleContext<()>) -> Box<dyn LintRule> {
visitor_rule(ctx.reaction(), ColorNoInvalidHex { ctx })
}
#[derive(Debug, Default)]
struct ColorNoInvalidHex {
ct... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/custom_property_no_missing_var_function.rs | Rust | use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub fn custom_property_no_missing_var_function(ctx: LintRuleContext<()>) -> Box<dyn LintRule> {
visitor_rule(
ctx.reaction(),
CustomPropertyNoMissingVarFunction {
ctx,... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/declaration_no_important.rs | Rust | use swc_common::Span;
use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub fn declaration_no_important(ctx: LintRuleContext<()>) -> Box<dyn LintRule> {
visitor_rule(
ctx.reaction(),
DeclarationNoImportant {
ctx,
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/font_family_no_duplicate_names.rs | Rust | use rustc_hash::FxHashSet;
use serde::{Deserialize, Serialize};
use swc_common::Span;
use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::{
dataset::is_generic_font_keyword,
pattern::NamePattern,
rule::{visitor_rule, LintRule, LintRuleContext},
ConfigError,
};
#[derive(Debug, Clone, ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/keyframe_declaration_no_important.rs | Rust | use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub fn keyframe_declaration_no_important(ctx: LintRuleContext<()>) -> Box<dyn LintRule> {
visitor_rule(
ctx.reaction(),
KeyframeDeclarationNoImportant {
ctx,
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/mod.rs | Rust | use crate::{
config::LintConfig,
error::ConfigError,
rule::LintRule,
rules::{
at_rule_no_unknown::at_rule_no_unknown, block_no_empty::block_no_empty,
color_hex_alpha::color_hex_alpha, color_hex_length::color_hex_length,
color_no_invalid_hex::color_no_invalid_hex,
custom_p... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/no_duplicate_at_import_rules.rs | Rust | use std::fmt::Display;
use rustc_hash::FxHashSet;
use swc_atoms::Atom;
use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub fn no_duplicate_at_import_rules(ctx: LintRuleContext<()>) -> Box<dyn LintRule> {
visitor_rule(
ctx.reaction(),
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/no_empty_source.rs | Rust | use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub fn no_empty_source(ctx: LintRuleContext<()>) -> Box<dyn LintRule> {
visitor_rule(ctx.reaction(), NoEmptySource { ctx })
}
const MESSAGE: &str = "Unexpected empty source.";
#[derive(Debug, D... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/no_invalid_position_at_import_rule.rs | Rust | use serde::{Deserialize, Serialize};
use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::{
pattern::NamePattern,
rule::{visitor_rule, LintRule, LintRuleContext},
ConfigError,
};
const MESSAGE: &str = "Unexpected invalid position '@import' rule.";
#[derive(Debug, Clone, Default, Serializ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/selector_max_class.rs | Rust | use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub(crate) type SelectorMaxClassConfig = Option<usize>;
pub fn selector_max_class(ctx: LintRuleContext<SelectorMaxClassConfig>) -> Box<dyn LintRule> {
let max = ctx.config().unwrap_or(3);
vi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/selector_max_combinators.rs | Rust | use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::rule::{visitor_rule, LintRule, LintRuleContext};
pub type SelectorMaxCombinatorsConfig = Option<usize>;
pub fn selector_max_combinators(
ctx: LintRuleContext<SelectorMaxCombinatorsConfig>,
) -> Box<dyn LintRule> {
let max = ctx.config().un... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/src/rules/unit_no_unknown.rs | Rust | use serde::{Deserialize, Serialize};
use swc_css_ast::*;
use swc_css_visit::{Visit, VisitWith};
use crate::{
pattern::NamePattern,
rule::{visitor_rule, LintRule, LintRuleContext},
ConfigError,
};
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct UnitNoU... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/lints.rs | Rust | #![allow(clippy::needless_update)]
use std::{fs, path::PathBuf};
use swc_common::{errors::HANDLER, input::SourceFileInput};
use swc_css_lints::{get_rules, LintConfig, LintParams, LintRule};
use swc_css_parser::{lexer::Lexer, parser::Parser};
#[testing::fixture("tests/rules/pass/**/input.css")]
fn pass(input: PathBuf... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/at-rule-no-unknown/default/input.css | CSS | @test {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/at-rule-no-unknown/ignored/input.css | CSS | @test {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/block-no-empty/default/input.css | CSS | a {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/color-hex-alpha/always/input.css | CSS | a { color: #fff; }
a { color: #ffffff; }
a { background: linear-gradient(to left, #fff, #000000 100%); }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/color-hex-alpha/never/input.css | CSS | a { color: #ffff; }
a { color: #ffffffff; }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/color-hex-length/long/input.css | CSS | a {
color: #FFF;
color: #abcd;
color: #123;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/color-hex-length/short/input.css | CSS | a {
color: #FFFFFF;
color: #aabbccdd;
color: #112233;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/color-no-invalid-hex/input.css | CSS | a {
color: #ababa;
}
a {
unknown: #00, #fff, #ababab;
}
a {
color: #12345abcdefg;
}
a {
color: #xyz;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/custom-property-no-missing-var-function/input.css | CSS | a { color: --foo; }
a { color: env(--foo); }
a { color: color(--foo 0% 0% 0% 0%); }
a { --foo: red; color: --foo; }
@property --foo {} a { color: --foo; }
:root { --foo: pink; } a { color: --foo, red; }
:root { --bar: 0; } a { color: --foo(--bar); }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/declaration-no-important/default/input.css | CSS | a {
color: #000 !important;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/declaration-no-important/keyframe/input.css | CSS | @keyframes foo {
from {
opacity: 0;
}
to {
/* should be ignored */
opacity: 1 !important;
}
}
a {
color: #111 !important;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/font-family-no-duplicate-names/default/input.css | CSS | a { font-family: "Lucida Grande", 'Arial', sans-serif, sans-serif; }
a { font-family: 'Arial', "Lucida Grande", Arial, sans-serif; }
a { fOnT-fAmIlY: ' Lucida Grande ', "Lucida Grande", sans-serif; }
a { font-family: 'Times', Times, "serif", serif; }
a { font-family: Times New Roman, Times, Times New Roman; }
a { FONT... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/font-family-no-duplicate-names/ignored/input.css | CSS | pre { font-family: "Roberto Mono", "Roberto Mono", monospace; }
pre { font-family: My-font, "My-font", sans-serif; }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/keyframe-declaration-no-important/input.css | CSS | @keyframes foo {
from {
opacity: 0;
}
to {
opacity: 1 !important;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/1/input.css | CSS | @import 'a.css'; @import 'a.css';
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/10/input.css | CSS | @IMPORT 'a.css';
@ImPoRt 'a.css';
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/11/input.css | CSS | @import 'a.css' layer;
@import 'a.css' layer();
@import 'a.css' layer(default);
@import 'a.css' layer(other);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/2/input.css | CSS | @import url("a.css"); @import url("a.css");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/3/input.css | CSS | @import "a.css";
@import 'a.css';
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/4/input.css | CSS | @import "a.css"; @import 'b.css'; @import url(a.css);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/5/input.css | CSS | @import url('a.css') tv; @import 'a.css' tv;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/6/input.css | CSS | @import url('a.css') tv, projection; @import 'a.css' projection, tv;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/7/input.css | CSS | @import url('a.css') tv, projection; @import 'a.css' projection, screen, tv;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/8/input.css | CSS | @import url('a.css') tv, projection; @import 'a.css' screen, tv;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/9/input.css | CSS | @import "a.css" tv, (min-width : 500px);
@import url(a.css) ( min-width:500px ), tv;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-empty-source/comments/input.css | CSS | /* comments */
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-invalid-position-at-import-rule/default/after-other-at-rule/input.css | CSS | @media print {
}
@import "kumiko.css";
@import "reina.css";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-invalid-position-at-import-rule/default/after-other-rule/input.css | CSS | @import "kumiko.css";
a {
}
@import "reina.css";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-invalid-position-at-import-rule/default/at-layer-rule/input.css | CSS | @layer framework {
.title {
}
}
@import "kumiko.css";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-invalid-position-at-import-rule/default/fail-all/input.css | CSS | a {
}
@import "kumiko.css";
@import "reina.css";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/no-invalid-position-at-import-rule/ignored/input.css | CSS | @euphonium {
}
@import "kumiko.css";
@import "reina.css";
a {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/selector-max-class/custom/input.css | CSS | .a.b {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/selector-max-class/default/input.css | CSS | .a.b.c.d {
}
.a .b .c .d {
}
@media print {
.a.b.c.d {
}
}
:not(.a.b.c.d) {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/selector-max-combinators/custom/input.css | CSS | .a {}
.a .b {}
.a .b .c .d {}
.a + .b > .c ~ .d {}
.a ~ .b || .c + .d {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/selector-max-combinators/default/input.css | CSS | .a ~ .b + .c .d > .e {}
.a .b .c .d .e {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/unit-no-unknown/default/input.css | CSS | a { font-size: 13pp; }
a { margin: 13xpx; }
a { font-size: .5remm; }
a { font-size: 0.5remm; }
a { color: rgb(255pix, 0, 51); }
a { margin: calc(13pix + 10px); }
a { margin: calc(10pix*2); }
a { margin: calc(2*10pix); }
a { -webkit-transition-delay: 10pix; }
@media (min-width: 13pix) {}
a { width: 1e4pz; }
a { flex: 0 ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/fail/unit-no-unknown/ignored-units/input.css | CSS | a {
width: 2lightyear;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/at-rule-no-unknown/custom-at-rule/input.css | CSS | @--vendor-custom any_value {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/at-rule-no-unknown/default/input.css | CSS | @media (max-width: 960px) {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/at-rule-no-unknown/ignored/input.css | CSS | @custom {
}
@my-at-rule {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/block-no-empty/default/input.css | CSS | a {
color: #fff;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/color-hex-alpha/always/input.css | CSS | a { color: #ffff; }
a { color: #ffffffff; }
a { background: linear-gradient(to left, #fffa, #000000aa 100%); }
a { background: url(#fff); }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/color-hex-alpha/never/input.css | CSS | a { color: #fff; }
a { color: #ffffff; }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/color-hex-length/long/input.css | CSS | a {
color: #123456;
color: #112233;
color: #FFFFFF;
color: #aabbccdd;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/color-hex-length/short/input.css | CSS | a {
color: #123456;
color: #556789;
color: #123;
color: #FFF;
color: #abcd;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/color-no-invalid-hex/input.css | CSS | a {
color: greenyellow;
}
a {
color: #000;
}
a {
unknown: #000, #fff, #ababab;
}
a {
color: #0000ffcc;
}
a {
color: #00fc;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/custom-property-no-missing-var-function/input.css | CSS | a { color: var(--foo); }
a { color: calc(var(--foo) + var(--bar)); }
a { color: var(--foo, red); }
a { --foo: var(--bar); }
:root { --foo: red; } a { color: var(--foo); }
a { color: var(--foo, var(--bar)); }
@property --foo {} a { color: var(--foo); }
:--foo {}
@media(--foo) {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/declaration-no-important/default/input.css | CSS | a {
color: #000;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/declaration-no-important/keyframe/input.css | CSS | @keyframes foo {
from {
opacity: 0;
}
to {
opacity: 1 !important;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/font-family-no-duplicate-names/default/input.css | CSS | a { font-family: "Lucida Grande", "Arial", sans-serif; }
a { font: 1em "Lucida Grande", \'Arial\', sans-serif; }
a { font: 1em "Lucida Grande", \'Arial\', "sans-serif", sans-serif; }
a { font-family: Times, serif; }
b { font: normal 14px/32px -apple-system, BlinkMacSystemFont, sans-serif; }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/font-family-no-duplicate-names/ignored/input.css | CSS | pre { font-family: monospace, monospace; }
pre { font: 1em monospace, monospace; }
pre { font-family: monospace, "Roberto Mono", monospace; }
pre { font-family: my-font, my-font; }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/keyframe-declaration-no-important/default/input.css | CSS | @keyframes foo {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/keyframe-declaration-no-important/non-keyframe/input.css | CSS | a {
color: pink !important;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/no-duplicate-at-import-rules/1/input.css | CSS | @import "a.css";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/no-duplicate-at-import-rules/2/input.css | CSS | @import url('a.css');
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/no-duplicate-at-import-rules/3/input.css | CSS | @import url(a.css);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/no-duplicate-at-import-rules/4/input.css | CSS | @import url("a.css") projection, tv;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/no-duplicate-at-import-rules/5/input.css | CSS | @import "a.css";
@import "b.css";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/no-duplicate-at-import-rules/6/input.css | CSS | @import url("a.css") projection;
@import url("a.css") tv;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_lints/tests/rules/pass/no-duplicate-at-import-rules/7/input.css | CSS | @import "a.css" screen;
@import "b.css" tv;
@import "a.css" tv;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.