Skip to content

Commit

Permalink
workflow: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmeow committed Mar 11, 2019
1 parent 62a83b5 commit b8b7f1e
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
template
test
temp
dist
example
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
extends: [
"plugin:vue-libs/recommended"
],
plugins: [
"node"
],
env: {
"jest": true
},
rules: {
"indent": ["error", 2, {
"MemberExpression": "off"
}],
"camelcase": 0
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.DS_Store
*.log
temp
package-lock.json
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
node_modules/
_test_
File renamed without changes.
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
"name": "@megalo/eslint-config-standard",
"version": "1.0.0-alpha.2",
"description": "eslint-config-standard for megalo project",
"main": "index.js",
"main": "./lib/index.js",
"publishConfig": {
"access": "public"
},
"scripts": {
"lint": "eslint --fix lib/**/*.js"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm run lint"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/megalojs/eslint-config-standard.git"
Expand Down Expand Up @@ -35,5 +44,12 @@
},
"peerDependencies": {
"eslint": ">4"
},
"devDependencies": {
"eslint": "^5.13.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-vue": "^5.0.0",
"eslint-plugin-vue-libs": "^3.0.0",
"husky": "^1.3.1"
}
}

0 comments on commit b8b7f1e

Please sign in to comment.