question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prettier errors in new slice file

See original GitHub issue

Version

  • Prismic CLI version (know it by running prismic --version): 3.8.3-beta.0

Reproduction

Create a new nuxt installation with prettier selected, create a slice using slicemachine

What is expected?

The newly created slice should throw no linting errors

What is actually happening?

Prettier warns about linting issues in ./slices/SliceName/index.vue & ./slices/SliceName/index.stories.js

Any additionnal information

If someone could point me in the direction of where to change the template I can fix it and create a PR.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lihbrcommented, Nov 27, 2020

PR merged, thanks again Samuel!

1reaction
samuelhorncommented, Nov 22, 2020

Fixed in this PR.

Don’t really get the name property, isn’t it set already on line 27?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prettier 2.3. In which assignments are consistent, short keys ...
This means Prettier won't format Handlebars files that can't be parsed into such a tree, either because the underlying syntax isn't HTML or ......
Read more >
Airbnb, ESLint, Prettier conflict over Switch and Case indentation
My first attempt to get this working was to add { "SwitchCase": 1 } to the ESLint config file. That reduced the number...
Read more >
How to use the prettier.resolveConfig function in prettier - Snyk
return sdl; case "graphql": return { sdl: inputText, loc: 0 }; default: throw new Error( `Unknown input file type ${inputFileType}, supported file types ......
Read more >
Code Quality Tooling with Prettier and ESLint - Wes Bos
Sometimes as you are writing code, ESLint will throw an error and you might not ... Next we need to make a new...
Read more >
How to Configure ESLint and Prettier in an Angular Application
json file and try to match the TSLint rules with the ESLint rules by creating a new .eslintrc.json file. The command will also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found