If you are planning to share a new feature request (enhancement / suggestion), please use SP Dev UserVoice at http://aka.ms/sp-dev-uservoice.
I expect to not have to use typescript in my build chain if I choose not to (for instance to use es2015 with webpack). This was stated as being supported (even if Microsoft will not enhance towards using it)
tslint
gulp subtask is being run from build.rig by default. I found documentation on how to create a custom gulp task, but not how to turn off/overwrite an existing subtask. How can I do this?
Change back a generated web part project, No Javascript framework, to not be using typescript. gulp serve
will work correctly and it builds to the /dist
folder correctly. However, once you delete files like these, you see this error when trying to gulp serve
(when tslint
is run):
If you would like to disable the tslint task, you should be able to just add:
build.tslint.enabled = false;
to your gulpfile.js before the build.initialize(gulp)
line.
We're working on improving the API surface around the tooling.
Thank you!
getting error
TypeError: Cannot set property 'enabled' of undefined
SPFX v1.8.0
Getting the same error
TypeError: Cannot set property 'enabled' of undefined
SPFX v1.9.1
@hafeez1042 @LuisEnMarroquin
this worked for me in SPFX v 1.9.1
build.tslintCmd.enabled = false;
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues
Most helpful comment
getting error
TypeError: Cannot set property 'enabled' of undefined
SPFX v1.8.0