Skip to content

Commit

Permalink
Modify project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Jul 18, 2018
2 parents a125aec + 2739a7c commit 42d7a41
Show file tree
Hide file tree
Showing 19 changed files with 14,890 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
target/
.DS_Store

target/
log/
!.mvn/wrapper/maven-wrapper.jar

Expand Down
46 changes: 46 additions & 0 deletions front/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module.exports = {
root: true,
env: {
'node': true
},
'extends': [
'plugin:vue/essential',
'@vue/prettier'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
"no-alert": process.env.NODE_ENV === 'production' ? 'error' : 'off',
// 禁止给const变量赋值
"no-const-assign": 'error',
//不能对var声明的变量使用delete操作符
"no-delete-var": 'error',
//在创建对象字面量时不允许键重复 {a:1,a:1}
"no-dupe-keys": 'error',
//函数参数不能重复
"no-dupe-args": 'error',
//禁止使用eval
"no-eval": 'error',
//禁止使用隐式eval
"no-implied-eval": 'error',
//禁止不必要的分号
'no-extra-semi': 'error',
//switch中的case标签不能重复
"no-duplicate-case": 'error',
// 禁止 for 循环出现方向错误的循环,比如 for (i = 0; i < 10; i--)
'for-direction': 'error',
//禁止混用tab和空格
"no-mixed-spaces-and-tabs": [2, false],
// 禁止将常量作为 if, for, while 里的测试条件,比如 if (true), for (;;),除非循环内部有 break 语句
'no-constant-condition': [
'error',
{
checkLoops: false
}
]
},
parserOptions: {
'parser': 'babel-eslint',
'impliedStrict': false,
}
}
24 changes: 19 additions & 5 deletions front/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
# nodejs files
node_modules/
package-lock.json
dist/
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
5 changes: 5 additions & 0 deletions front/.postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {}
}
}
3 changes: 3 additions & 0 deletions front/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@vue/app"]
};
Loading

0 comments on commit 42d7a41

Please sign in to comment.