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

how to make override work? #65

Closed
cyfung1031 opened this issue Oct 16, 2021 · 1 comment
Closed

how to make override work? #65

cyfung1031 opened this issue Oct 16, 2021 · 1 comment

Comments

@cyfung1031
Copy link

cyfung1031 commented Oct 16, 2021

i am using vitesse, i want to override some rules in eslintrc but seems not working.

.eslintrc.js

module.exports = {
  extends: [
    '@antfu',
  ],
  rules: {
    'object-shorthand': ['never'],
  },
}

image

I tried this too but still not working

acdfvgfgbhg

@maninak
Copy link

maninak commented Nov 28, 2021

Try 'object-shorthand': ['error', 'never'],

The first value is the error level of the rule and can be one of these values:

  • "off" or 0 - turn the rule off
  • "warn" or 1 - turn the rule on as a warning (doesn't affect exit code)
  • "error" or 2 - turn the rule on as an error (exit code will be 1)

Source: https://eslint.org/docs/user-guide/getting-started#configuration

@antfu antfu closed this as completed Nov 29, 2021
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

3 participants