Prettier errors in new slice file
See original GitHub issueVersion
- 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:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
PR merged, thanks again Samuel!
Fixed in this PR.
Don’t really get the name property, isn’t it set already on line 27?