Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import css from "./src/index.js";
//-----------------------------------------------------------------------------

const eslintPluginRulesRecommendedConfig =
eslintPlugin.configs["flat/rules-recommended"];
eslintPlugin.configs["rules-recommended"];
const eslintPluginTestsRecommendedConfig =
eslintPlugin.configs["flat/tests-recommended"];
eslintPlugin.configs["tests-recommended"];

//-----------------------------------------------------------------------------
// Configuration
Expand Down Expand Up @@ -61,6 +61,7 @@ export default defineConfig([
extends: [eslintPluginRulesRecommendedConfig],
rules: {
"eslint-plugin/require-meta-schema": "off", // `schema` defaults to []
"eslint-plugin/require-meta-schema-description": "off",
"eslint-plugin/prefer-placeholders": "error",
"eslint-plugin/prefer-replace-text": "error",
"eslint-plugin/report-message-format": ["error", "^[^a-z].*\\.$"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"dedent": "^1.5.3",
"eslint": "^10.0.0",
"eslint-config-eslint": "^14.0.0",
"eslint-plugin-eslint-plugin": "^6.3.2",
"eslint-plugin-eslint-plugin": "^7.3.2",
"globals": "^17.0.0",
"lint-staged": "^16.0.0",
"mdast-util-from-markdown": "^2.0.2",
Expand Down
4 changes: 2 additions & 2 deletions src/languages/css-language.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import { visitorKeys } from "./css-visitor-keys.js";
/** @typedef {OkParseResult<StyleSheetPlain> & { comments: Comment[], lexer: Lexer }} CSSOkParseResult */
/** @typedef {ParseResult<StyleSheetPlain>} CSSParseResult */
/**
* DefaultSyntaxConfig type representing the structure returned by @eslint/css-tree/definition-syntax-data.
* This type is defined inline because it's not exported from the main @eslint/css-tree package.
* DefaultSyntaxConfig type representing the structure returned by `@eslint/css-tree/definition-syntax-data`.
* This type is defined inline because it's not exported from the main `@eslint/css-tree` package.
* @typedef {Pick<SyntaxConfig, "atrules" | "types" | "properties">} DefaultSyntaxConfig
*/
/**
Expand Down
2 changes: 1 addition & 1 deletion src/rules/use-baseline.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { namedColors } from "../data/colors.js";
//-----------------------------------------------------------------------------

/**
* Represents a property that is supported via @supports.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The newly updated eslint-config-eslint@14 now warns about invalid JSDoc patterns that use @. I've updated this PR accordingly, since it was a small change.

* Represents a property that is supported via `@supports`.
*/
class SupportedProperty {
/**
Expand Down