Browse Source

新增eslint等配置文件

online
ahbmz 4 years ago
parent
commit
bf4ab6df1f
  1. 14
      .editorconfig
  2. 3
      .env
  3. 1
      .env.development
  4. 2
      .env.preview
  5. 4
      .eslintignore
  6. 16
      .eslintrc.js
  7. 1
      .gitignore
  8. 15451
      package-lock.json

14
.editorconfig

@ -0,0 +1,14 @@
# https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

3
.env

@ -0,0 +1,3 @@
VUE_APP_VERSION=3.0
VUE_APP_NAME=Bmz Admin
VUE_APP_API_BASE_URL=http://api.base.ahbmz.com/api

1
.env.development

@ -0,0 +1 @@
VUE_APP_API_BASE_URL=http://api.base.ahbmz.com/api

2
.env.preview

@ -0,0 +1,2 @@
NODE_ENV=production
VUE_APP_API_BASE_URL=https://v1.eleadmin.com/api

4
.eslintignore

@ -0,0 +1,4 @@
public
src/assets
dist
node_modules

16
.eslintrc.js

@ -0,0 +1,16 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/essential",
'eslint:recommended'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
//"no-unused-vars": "off"
}
}

1
.gitignore

@ -1,5 +1,6 @@
.idea/ .idea/
node_modules/ node_modules/
dist/
#public/uploads/ #public/uploads/

15451
package-lock.json

File diff suppressed because it is too large
Loading…
Cancel
Save