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

Take into account overrides key in .prettierrc.js #16

Merged
merged 1 commit into from Jun 25, 2019

Conversation

dcyriller
Copy link
Member

@dcyriller dcyriller commented Jun 25, 2019

Prettier needs the file extension to apply this kind of override:

module.exports = {
  semi: true, // this will be applied to all files, javascript files for instance
  overrides: [
    {
      files: '**/*.hbs',
      options: {
        singleQuote: false, // this will be applied to hbs files only
      },
    },
  ],
};

Prettier needs the file extension to apply this kind of override:
```
module.exports = {
  semi: true,
  overrides: [
    {
      files: '**/*.hbs',
      options: {
        singleQuote: false,
      },
    },
  ],
};
```
@dcyriller dcyriller added the bug Something isn't working label Jun 25, 2019
@dcyriller dcyriller merged commit 4c7e4ff into master Jun 25, 2019
@dcyriller dcyriller deleted the fix-prettierrc-overrides branch June 25, 2019 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant