config-field-invalid

A csszyx.config field whose value does not have the shape it takes.

Message

A name in angle brackets is a value the message fills in.

config-object

[csszyx] config-field-invalid: The default export is not an object, so nothing in this file applies.
  help: write `export default defineConfig({ … })`, importing `defineConfig` from `csszyx`.
  docs: https://csszyx.com/e/config-field-invalid

object

[csszyx] config-field-invalid: `<field>` is not an object, so it is ignored.
  help: write it as an object, such as `{ classes: [] }` for `allow`.
  docs: https://csszyx.com/e/config-field-invalid

rules-object

[csszyx] config-field-invalid: `<field>` is not an object of id and level, so none of its levels apply.
  help: write it as `{ 'dead-class': 'warn' }`.
  docs: https://csszyx.com/e/config-field-invalid

name-list

[csszyx] config-field-invalid: `<field>` is not a list of names, so it allows nothing.
  help: write it as a list of strings, such as `['my-card']`.
  docs: https://csszyx.com/e/config-field-invalid

overrides-list

[csszyx] config-field-invalid: `<field>` is not a list, so no override applies.
  help: write it as a list of `{ files, rules }` objects.
  docs: https://csszyx.com/e/config-field-invalid

override

[csszyx] config-field-invalid: `<field>` is not a `{ files, rules }` object, so it is ignored.
  help: write it as `{ files: 'src/legacy/**', rules: { 'dead-class': 'off' } }`.
  docs: https://csszyx.com/e/config-field-invalid

globs

[csszyx] config-field-invalid: `<field>` is not a glob or a list of globs, so this override applies to no file.
  help: write a glob relative to the project root, such as `'src/legacy/**'`, or a list of them.
  docs: https://csszyx.com/e/config-field-invalid

Arguments

The values this diagnostic names.

NameType
fieldstring
expected'config-object' | 'object' | 'rules-object' | 'name-list' | 'overrides-list' | 'override' | 'globs'