diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..d3cc83a --- /dev/null +++ b/.babelrc @@ -0,0 +1,19 @@ +{ + "presets": [ + ["env", { + "modules": false + }], + "stage-2" + ], + "plugins": ["transform-runtime", ["component", [ + { + "libraryName": "element-ui" + } + ]]], + "env": { + "test": { + "presets": ["env", "stage-2"], + "plugins": ["transform-es2015-modules-commonjs", "dynamic-import-node"] + } + } +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d08a1a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..ce49828 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,6 @@ +/build/ +/config/ +/dist/ +/*.js +/test/unit/coverage/ +/src/icons/iconfont.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..2e2e211 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,25 @@ +// https://eslint.org/docs/user-guide/configuring + +module.exports = { + root: true, + parser: 'babel-eslint', + parserOptions: { + sourceType: 'module' + }, + env: { + browser: true, + }, + // https://github.com/standard/standard/blob/master/docs/RULES-en.md + extends: 'standard', + // required to lint *.vue files + plugins: [ + 'html' + ], + // add your custom rules here + rules: { + // allow async-await + 'generator-star-spacing': 'off', + // allow debugger during development + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' + } +} diff --git a/.gitignore b/.gitignore index a19f004..74776a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,17 @@ -# ---> Vue -# gitignore template for Vue.js projects -# -# Recommended template: Node.gitignore - -# TODO: where does this rule come from? -docs/_book - -# TODO: where does this rule come from? -test/ - +.DS_Store +node_modules/ +dist/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +/test/unit/coverage/ +/test/e2e/reports/ +selenium-debug.log +node_modules/ +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln