eslint-define-config icon indicating copy to clipboard operation
eslint-define-config copied to clipboard

Fix Camelcase allow type

Open eMerzh opened this issue 1 year ago • 3 comments

as described here https://eslint.org/docs/latest/rules/camelcase#options

the type should be a list of string

eMerzh avatar Mar 20 '24 14:03 eMerzh

Please check

https://github.com/eslint/eslint/blob/b91f9dc072f17f5ea79803deb86cf002d031b4cf/lib/rules/camelcase.js#L48-L57

and if it is correctly

The rule types are generated from these schematas

Shinigami92 avatar Mar 21 '24 09:03 Shinigami92

oooh 🤔 maybe it's the translation that is wrong 🤔

bc

items: [
                            {
                                type: "string"
                            }
                        ]

i guess it means an array of string?

eMerzh avatar Mar 21 '24 16:03 eMerzh

but open upstream https://github.com/bcherny/json-schema-to-typescript/issues/584

eMerzh avatar Mar 21 '24 21:03 eMerzh