Skip to content

Commit 1539df8

Browse files
committed
build: update lint system and coverage
1 parent 74f3cca commit 1539df8

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

package-lock.json

Lines changed: 28 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"version": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"",
2020
"prepare": "npm run build",
2121
"build": "rimraf lib && babel src -d lib",
22+
"coverage": "nyc report --reporter=text-lcov | coveralls",
2223
"test": "nyc ava"
2324
},
2425
"files": [
@@ -56,11 +57,13 @@
5657
"coveralls": "^3.0.3",
5758
"eslint": "^5.16.0",
5859
"eslint-config-xo": "^0.26.0",
60+
"eslint-config-xo-space": "^0.21.0",
5961
"eslint-plugin-ava": "^7.0.0",
6062
"eslint-plugin-babel": "^5.3.0",
6163
"eslint-plugin-dependencies": "^2.4.0",
6264
"eslint-plugin-html": "^5.0.5",
6365
"eslint-plugin-markdown": "^1.0.0",
66+
"eslint-plugin-prettier": "^3.1.0",
6467
"eslint-plugin-unicorn": "^9.0.0",
6568
"husky": "^2.4.0",
6669
"lint-staged": "^8.1.7",
@@ -108,24 +111,20 @@
108111
"eslintConfig": {
109112
"parser": "babel-eslint",
110113
"plugins": [
114+
"prettier",
111115
"dependencies",
112116
"html",
113117
"unicorn",
114118
"babel",
115119
"markdown"
116120
],
117121
"extends": [
122+
"plugin:ava/recommended",
118123
"plugin:unicorn/recommended",
119-
"xo"
124+
"xo",
125+
"xo-space"
120126
],
121127
"rules": {
122-
"indent": [
123-
2,
124-
4,
125-
{
126-
"SwitchCase": 1
127-
}
128-
],
129128
"capitalized-comments": "off"
130129
}
131130
},

0 commit comments

Comments
 (0)