Comments (3)
this works:
files: {
src: ["js/**.js"]
}
from grunt-prettier.
In our project, we use this config. It works like expected for us.
grunt.config("prettier", {
options: {
tabWidth: 4
},
grunt_files: {
src: ["Gruntfile.js", "build/grunt-tasks/*.js"]
},
admin: {
src: ["public/static/admin/src/**/*.js"]
},
front: {
src: ["public/static/front/src/**/*.js"]
}
});
Versions:
[email protected]
grunt v0.4.5
from grunt-prettier.
Okay, with your example config it works, but not without that one more level there.
I don't think the readme is clear enough.
This would not work:
prettier: {
options: {
tabWidth: 4
},
src: ["Gruntfile.js", "build/grunt-tasks/*.js"]
}
Can you please add a more clearer example config to the readme.
But thanks for helping, it works now. 👍
from grunt-prettier.
Related Issues (15)
- How to make it work with latest version of grunt? HOT 1
- Ignored unknown option "overrides" HOT 1
- Cannot read property 'replace' of undefined HOT 3
- Does this support the equivalent of prettier --check? HOT 5
- Action required: Greenkeeper could not be activated 🚨
- Action required: Greenkeeper could not be activated 🚨
- bug(html): PC hangs and big CPU usage HOT 1
- Migrate to Prettier 2.x HOT 1
- Parser override not working
- How do I call 'check' api from my Gruntfile? HOT 1
- How to provide configuration file .prettierrc HOT 7
- glob matching with *.(js|json) not working HOT 2
- Does not work with scss files HOT 4
- Ignored unknown option configFile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-prettier.