Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Configuration for rule invalid. Value should NOT have additional properties #1063

Closed
lazarencomihai opened this issue Feb 21, 2023 · 2 comments

Comments

@lazarencomihai
Copy link

lazarencomihai commented Feb 21, 2023

Library version 34.0.0
Windows 10, npm version 8.19.1

The problem:
I added eslint to a project and i after starting it i get this error(VsCode extension doesn't work either):

[eslint] .eslintrc.js » eslint-config-standard-with-typescript#overrides[0]:
Configuration for rule "@typescript-eslint/consistent-type-imports" is invalid:
Value {"prefer":"type-imports","disallowTypeAnnotations":true,"fixStyle":"inline-type-imports"} should NOT have additional properties.

On PC's using Mac the setup is working as expected.

package-lock.json.zip

@lazarencomihai
Copy link
Author

lazarencomihai commented Feb 21, 2023

eslintr.js file content:

module.exports = { env: { browser: true, es2021: true }, overrides: [], parserOptions: { ecmaVersion: 'latest', sourceType: 'module', project: 'tsconfig.json' }, plugins: ['react', 'sonarjs'], extends: [ 'standard-with-typescript', 'eslint:recommended', 'plugin:react/recommended', 'plugin:prettier/recommended', 'plugin:sonarjs/recommended', 'plugin:react-hooks/recommended', 'plugin:jsx-a11y/recommended', 'plugin:sonarjs/recommended' ], rules: { 'react/react-in-jsx-scope': 'off', 'react/prop-types': 'off', '@typescript-eslint/explicit-function-return-type': 'off', 'no-unused-vars': 'warn' } };

@mightyiam
Copy link
Owner

Closing in favor of #1064.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants