Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Apr 29, 2018
1 parent e9936b1 commit 94f47ed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';
'use strict'

exports.plugins = [
[require('retext-sentence-spacing'), {preferred: 2}],
Expand All @@ -8,4 +8,4 @@ exports.plugins = [
require('retext-repeated-words'),
require('retext-indefinite-article'),
require('retext-contractions')
];
]
21 changes: 19 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,34 @@
"retext-sentence-spacing": "^2.0.0"
},
"devDependencies": {
"prettier": "^1.12.1",
"remark-cli": "^5.0.0",
"remark-preset-wooorm": "^4.0.0",
"xo": "^0.20.0"
},
"scripts": {
"test": "xo"
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
"test": "npm run format"
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"xo": {
"space": true,
"prettier": true,
"esnext": false,
"rules": {
"no-var": "off",
"prefer-arrow-callback": "off"
}
},
"remarkConfig": {
"plugins": [
"preset-wooorm"
]
}
}

0 comments on commit 94f47ed

Please sign in to comment.