diff --git a/.eslintignore b/.eslintignore index 5ea910b62c5..5fac5c84925 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,6 @@ .nuxt/ +dist/ +docs-dist/ +es/ node_modules/ nuxt/plugin.template.js diff --git a/.eslintrc.js b/.eslintrc.js index 31f1494b664..4e441528c24 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,6 @@ module.exports = { extends: ['standard', 'plugin:vue/recommended', 'plugin:prettier/recommended'], - plugins: ['jest', 'node', 'promise'], + plugins: ['jest', 'markdown', 'node', 'promise'], parserOptions: { parser: 'babel-eslint', sourceType: 'module' @@ -14,6 +14,16 @@ module.exports = { Vue: true }, rules: { + 'vue/html-self-closing': [ + 'error', + { + html: { + void: 'never', + normal: 'never', + component: 'never' + } + } + ], 'vue/max-attributes-per-line': ['error', { singleline: 4 }], 'vue/no-template-shadow': 'off', 'vue/no-use-v-if-with-v-for': 'off', diff --git a/README.md b/README.md index d8ec6eb673c..41b48bbce05 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Thank you to all our backers! 🙏 This project exists thanks to all the people who contribute. [[Contribute]](CONTRIBUTING.md). - +

License

diff --git a/babel.config.js b/babel.config.js index 5359858c09f..5fd6a01bb25 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,8 +1,13 @@ -module.exports = function(api) { +module.exports = api => { const isDocs = api.env('docs') + let presets = [] + if (!isDocs) { + presets.push(['@babel/env', { useBuiltIns: 'entry', corejs: { version: 2 } }]) + } + return { - presets: isDocs ? [] : [['@babel/env', { useBuiltIns: 'entry', corejs: { version: 2 } }]], + presets, env: { es: { plugins: [['@babel/plugin-transform-modules-commonjs', { noInterop: true, loose: true }]] diff --git a/docs/components/codemirror.vue b/docs/components/codemirror.vue index b5e2a27dd0c..623c8418831 100644 --- a/docs/components/codemirror.vue +++ b/docs/components/codemirror.vue @@ -1,5 +1,5 @@ - + ``` ### Datalist helper -For broswers that support +For browsers that support [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) elements, the `` helper component will allow you to quickly create a `` and child `