CodeCoupler Webpack Setup
Recommended Visual Code Setup
CodeCoupler Webpack will lint and fix JavaScript, Vue and TypeScript files by ESLint
and
Prettier
, Stylesheet files by stylelint
. The boilerplate will generate the needed configuration
files which make Visual Code to lint these files plus markdown files with markdownlint
on save.
To make this work you have to install the following extensions:
If you are developing with Vue you should also install:
Also recommended but not mandatory which allows you to rewrap your comments to the rulers configured by the boilerplate (80, 100, 120):
Initialize a new Project with Boilerplate
Create a new directory and initialize a GIT repository. This is usefull because the next commands will install git hooks:
Init the boilerplate and install the packages. Use always the "latest" tag or you will use the last version you have downloaded:
Initialize without Boilerplate
Change to your project directory and install as dev dependency:
If you do not have an ESLint configuration you have to create one:
Change your webpack.config.js
2: