2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-09 20:32:30 +03:00

fix: fix the style

This commit is contained in:
mxie
2018-12-12 15:28:30 +08:00
parent bb91abd8c6
commit 14259fb785
3 changed files with 5344 additions and 2862 deletions
+13 -11
View File
@@ -17,17 +17,15 @@ module.exports = {
'standard'
],
// required to lint *.vue files
plugins: [
'vue'
],
plugins: ['vue'],
// 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',
'no-console': ["error", { allow: ["warn", "error"] }],
'camelcase': ['off', { properties: 'never' }],
'no-console': ['error', { allow: ['warn', 'error'] }],
camelcase: ['off', { properties: 'never' }],
// "vue/max-attributes-per-line": [2, {
// "singleline": 1,
// "multiline": {
@@ -35,11 +33,15 @@ module.exports = {
// "allowFirstLine": true
// }
// }],
"vue/html-indent": ["error", 2, {
"attribute": 1,
"closeBracket": 0,
"alignAttributesVertically": false,
"ignores": []
}]
'vue/html-indent': [
'error',
2,
{
attribute: 1,
closeBracket: 0,
alignAttributesVertically: false,
ignores: []
}
]
}
}
+5297 -2838
View File
File diff suppressed because it is too large Load Diff
+34 -13
View File
@@ -12,23 +12,11 @@
"demo": "cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.demo.config.js",
"build": "npm run lint && npm test && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.deploy.config.js",
"lint": "eslint src/**/* test/**/*",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"test:push": "jest --coverage --coverageReporters=text-lcov | coveralls",
"test": "jest",
"release": "bash build/release.sh"
},
"jest": {
"moduleFileExtensions": [
"js",
"vue"
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
},
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/mengxiong10/vue2-datepicker.git"
@@ -47,6 +35,8 @@
"fecha": "^2.3.3"
},
"devDependencies": {
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"@vue/test-utils": "^1.0.0-beta.20",
"autoprefixer": "^7.2.6",
"babel-core": "^6.26.3",
@@ -74,7 +64,9 @@
"eslint-plugin-vue": "^4.5.0",
"file-loader": "^1.1.11",
"highlight.js": "^9.12.0",
"husky": "^1.2.0",
"jest": "^23.0.1",
"lint-staged": "^8.1.0",
"mini-css-extract-plugin": "^0.4.0",
"node-sass": "^4.9.0",
"optimize-css-assets-webpack-plugin": "^4.0.2",
@@ -89,6 +81,35 @@
"webpack-dev-server": "^3.1.4",
"webpack-merge": "^4.1.2"
},
"jest": {
"moduleFileExtensions": [
"js",
"vue"
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
},
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -x @commitlint/config-conventional -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"**/*.{js,jsx}": [
"eslint --fix",
"git add"
]
},
"prettier": {
"semi": false,
"singleQuote": true
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"