2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-24 04:30:36 +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' 'standard'
], ],
// required to lint *.vue files // required to lint *.vue files
plugins: [ plugins: ['vue'],
'vue'
],
// add your custom rules here // add your custom rules here
rules: { rules: {
// allow async-await // allow async-await
'generator-star-spacing': 'off', 'generator-star-spacing': 'off',
// allow debugger during development // allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': ["error", { allow: ["warn", "error"] }], 'no-console': ['error', { allow: ['warn', 'error'] }],
'camelcase': ['off', { properties: 'never' }], camelcase: ['off', { properties: 'never' }],
// "vue/max-attributes-per-line": [2, { // "vue/max-attributes-per-line": [2, {
// "singleline": 1, // "singleline": 1,
// "multiline": { // "multiline": {
@@ -35,11 +33,15 @@ module.exports = {
// "allowFirstLine": true // "allowFirstLine": true
// } // }
// }], // }],
"vue/html-indent": ["error", 2, { 'vue/html-indent': [
"attribute": 1, 'error',
"closeBracket": 0, 2,
"alignAttributesVertically": false, {
"ignores": [] 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", "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", "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/**/*", "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:push": "jest --coverage --coverageReporters=text-lcov | coveralls",
"test": "jest", "test": "jest",
"release": "bash build/release.sh" "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": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/mengxiong10/vue2-datepicker.git" "url": "git+https://github.com/mengxiong10/vue2-datepicker.git"
@@ -47,6 +35,8 @@
"fecha": "^2.3.3" "fecha": "^2.3.3"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"@vue/test-utils": "^1.0.0-beta.20", "@vue/test-utils": "^1.0.0-beta.20",
"autoprefixer": "^7.2.6", "autoprefixer": "^7.2.6",
"babel-core": "^6.26.3", "babel-core": "^6.26.3",
@@ -74,7 +64,9 @@
"eslint-plugin-vue": "^4.5.0", "eslint-plugin-vue": "^4.5.0",
"file-loader": "^1.1.11", "file-loader": "^1.1.11",
"highlight.js": "^9.12.0", "highlight.js": "^9.12.0",
"husky": "^1.2.0",
"jest": "^23.0.1", "jest": "^23.0.1",
"lint-staged": "^8.1.0",
"mini-css-extract-plugin": "^0.4.0", "mini-css-extract-plugin": "^0.4.0",
"node-sass": "^4.9.0", "node-sass": "^4.9.0",
"optimize-css-assets-webpack-plugin": "^4.0.2", "optimize-css-assets-webpack-plugin": "^4.0.2",
@@ -89,6 +81,35 @@
"webpack-dev-server": "^3.1.4", "webpack-dev-server": "^3.1.4",
"webpack-merge": "^4.1.2" "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": { "config": {
"commitizen": { "commitizen": {
"path": "./node_modules/cz-conventional-changelog" "path": "./node_modules/cz-conventional-changelog"