| vuejs 2.0 组件开发模版,使用rollup打包
yarn init
or
npm init
yarn add --dev eslint-config-airbnb-base eslint eslint-plugin-import
yarn add --dev eslint-plugin-html
touch .eslintrc.js
module.exports = {
root: true,
extends: [
'airbnb-base',
],
plugins: [
'html',
],
// add your custom rules here
rules: {
// don't require .vue extension when importing
'import/extensions': ['error', 'always', {
js: 'never',
vue: 'never',
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
},
};
{
"scripts": {
"lint": "eslint --ext .js,.vue components config test"
}
}