Skip to content

Commit 03d17b6

Browse files
author
Christopher J. Brody
committed
eslint@5 with (semi)standard config, with no failures
with some rules disabled for yarn lint to pass and updated comma-dangle rule
1 parent fdaa117 commit 03d17b6

4 files changed

Lines changed: 864 additions & 15 deletions

File tree

.eslintrc.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
1-
extends: airbnb-base
1+
extends:
2+
- standard
3+
24
rules:
5+
semi:
6+
- error
7+
- always
8+
9+
# TBD SKIP these rules for now:
10+
indent: 0
11+
space-before-function-paren: 0
12+
no-useless-escape: 0
13+
no-multi-spaces: 0
14+
arrow-spacing: 0
15+
space-infix-ops: 0
16+
object-curly-spacing: 0
317
no-tabs: 0
4-
prefer-rest-params: 0
5-
import/no-extraneous-dependencies: 0
18+
619
comma-dangle:
720
- error
8-
- objects: only-multiline
9-
functions: never
21+
- arrays: only-multiline
22+
objects: only-multiline
23+
functions: only-multiline

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ createLibrary({
109109
- CLI does not show the correct path of the generated library module
110110
- not all documented options work as documented
111111
- not all options are documented
112-
- this project has some lint errors
113112

114113
## Behavior not tested or supported
115114

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
"uuid": "^3.3.2"
5151
},
5252
"devDependencies": {
53+
"eslint": "^5.15.0",
54+
"eslint-config-standard": "^12.0.0",
55+
"eslint-plugin-import": "^2.16.0",
56+
"eslint-plugin-node": "^8.0.1",
57+
"eslint-plugin-promise": "^4.0.1",
58+
"eslint-plugin-standard": "^4.0.0",
5359
"shelljs": "^0.8.3"
5460
},
5561
"rnpm": {

0 commit comments

Comments
 (0)