|
@@ -6,12 +6,14 @@ With built-in:
|
|
* `cache-loader`
|
|
* `cache-loader`
|
|
* `thread-loader`
|
|
* `thread-loader`
|
|
* `babel-loader`
|
|
* `babel-loader`
|
|
|
|
+* `bower_components` and `node_modules` ignoring
|
|
|
|
|
|
## Installation
|
|
## Installation
|
|
|
|
|
|
According to [this](https://cli.vuejs.org/guide/plugins-and-presets.html#installing-plugins-in-an-existing-project) you are able to install community plugins as follows:
|
|
According to [this](https://cli.vuejs.org/guide/plugins-and-presets.html#installing-plugins-in-an-existing-project) you are able to install community plugins as follows:
|
|
|
|
|
|
```shell
|
|
```shell
|
|
|
|
+npm remove @vue/cli-plugin-eslint # or see Troubleshooting
|
|
vue add coffee
|
|
vue add coffee
|
|
```
|
|
```
|
|
|
|
|
|
@@ -54,4 +56,4 @@ module.exports = {
|
|
|
|
|
|
## Troubleshooting
|
|
## Troubleshooting
|
|
|
|
|
|
-Note that vue-loader uses `lang="coffee"` to identify components which are using Coffeescript, but `lang="coffee"` is not recognizable for ESLint. Fortunately, ESLint (following traditional HTML) uses `type="xxx"` to identify the type of scripts. As long as a `<script>` tag has any type other than javascript, ESLint would mark the script as non-javascript, and skips linting it. Coffeescript’s convention is to use `type="text/coffeescript"` to identify itself. Therefore, in your Vue components which are using Coffeescript, using both `lang` and `type` to avoid ESLint warnings.
|
|
|
|
|
|
+If you're using ESLint, note that vue-loader uses `lang="coffee"` to identify components which are using Coffeescript, but `lang="coffee"` is not recognizable for ESLint. Fortunately, ESLint (following traditional HTML) uses `type="xxx"` to identify the type of scripts. As long as a `<script>` tag has any type other than javascript, ESLint would mark the script as non-javascript, and skips linting it. Coffeescript’s convention is to use `type="text/coffeescript"` to identify itself. Therefore, in your Vue components which are using Coffeescript, using both `lang` and `type` to avoid ESLint warnings.
|