You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the recent official support of ESLint TypeScript config (ref), when trying to use eslint-plugin-json-files with this simple config in my eslint.config.ts (flatfile format):
{files: ['**/package.json'],plugins: {'json-files': jsonFilesPlugin,},processor: jsonFilesPlugin.processors.json,rules: {// Requires the `license` field in package.json.// @see https://github.com/kellyselden/eslint-plugin-json-files/blob/master/docs/rules/require-license.md'json-files/require-license': ['error','allow-unlicensed'],// Prevents dependency collisions between `dependencies` and `devDependencies` in package.json.// @see https://github.com/kellyselden/eslint-plugin-json-files/blob/master/docs/rules/require-unique-dependency-names.md'json-files/require-unique-dependency-names': ['error'],// Use sort-package-json to keep your keys in a predictable order.// @see https://github.com/kellyselden/eslint-plugin-json-files/blob/master/docs/rules/sort-package-json.md'json-files/sort-package-json': ['error'],},},
I'm getting Unsafe assignment of an error typed value errors both when assigning the plugins and the processor as well as a Unsafe member access .processors on an 'error' typed value error on the processor value. I think that both these error are cause by the lack of type file.
I created a tempoary d.ts file to work around this issue but it would be great if this would be part of the original package:
With the recent official support of ESLint TypeScript config (ref), when trying to use
eslint-plugin-json-files
with this simple config in myeslint.config.ts
(flatfile format):I'm getting
Unsafe assignment of an error typed value
errors both when assigning theplugins
and theprocessor
as well as aUnsafe member access .processors on an 'error' typed value
error on the processor value. I think that both these error are cause by the lack of type file.I created a tempoary
d.ts
file to work around this issue but it would be great if this would be part of the original package:The text was updated successfully, but these errors were encountered: