facebook / stylex

StyleX is the styling system for ambitious user interfaces.
https://stylexjs.com
MIT License
8.34k stars 307 forks source link

@stylexjs/eslint-plugin: "@stylexjs/sort-keys" severity invalid #414

Closed olivierpascal closed 8 months ago

olivierpascal commented 8 months ago

Describe the issue

[Error] .eslintrc.js: Configuration for rule "@stylexjs/sort-keys" is invalid: Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '"warning"').

Expected behavior

No error.

Steps to reproduce

// .eslintrc.js

// ...
  rules: {
    '@stylexjs/valid-styles': 'error',
    '@stylexjs/sort-keys': [
      'warning',
      {
        minKeys: 3,
        allowLineSeparatedGroups: true,
      },
    ],
  }
// ...

Test case

No response

Additional comments

No response

nedjulius commented 8 months ago

hey, it should be warn instead of warning. also fixed this in the #413

nmn commented 8 months ago

I just merged #413