File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "extends": "airbnb-base",
3+ "parserOptions": {
4+ "ecmaVersion": 6,
5+ },
6+ "rules": {
7+ "no-lonely-if": 2,
8+ "no-nested-ternary": 2,
9+ "prefer-spread": 2,
10+ "no-param-reassign": ["error", {"props": false}],
11+ "no-unused-vars": ["error", { "args": "none" }],
12+ "comma-dangle": ["error", {
13+ "arrays": "always-multiline",
14+ "objects": "always-multiline",
15+ "imports": "always-multiline",
16+ "exports": "always-multiline",
17+ "functions": "never",
18+ }],
19+ }
20+ }
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "build" : " babel src --out-dir lib" ,
88 "clean" : " rimraf lib" ,
9- "prepublish" : " npm run clean && npm run build" ,
9+ "lint" : " eslint src" ,
10+ "prepublish" : " npm run lint && npm run clean && npm run build" ,
1011 "test" : " echo \" Error: no test specified\" && exit 1"
1112 },
1213 "keywords" : [
2627 "babel-cli" : " ^6.18.0" ,
2728 "babel-plugin-transform-object-rest-spread" : " ^6.20.2" ,
2829 "babel-preset-es2015" : " ^6.18.0" ,
30+ "eslint" : " ^3.13.1" ,
31+ "eslint-config-airbnb-base" : " ^11.0.1" ,
32+ "eslint-plugin-import" : " ^2.2.0" ,
2933 "rimraf" : " ^2.5.4"
3034 },
3135 "files" : [
You can’t perform that action at this time.
0 commit comments