From 5889f699104e74e4f85ddc211eb26d52b0044359 Mon Sep 17 00:00:00 2001 From: yuejiayang <1165636721@qq.com> Date: Tue, 11 Mar 2025 20:19:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .babelrc | 19 +++++++++++++++++++ .editorconfig | 9 +++++++++ .eslintignore | 6 ++++++ .eslintrc.js | 25 +++++++++++++++++++++++++ .gitignore | 28 +++++++++++++++++----------- 5 files changed, 76 insertions(+), 11 deletions(-) create mode 100644 .babelrc create mode 100644 .editorconfig create mode 100644 .eslintignore create mode 100644 .eslintrc.js 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