Skip to content

Commit f0794c6

Browse files
committed
chore: move configuration into package.json
1 parent 9b5e2a1 commit f0794c6

File tree

5 files changed

+44
-46
lines changed

5 files changed

+44
-46
lines changed

.babelrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

.npmignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
"version": "1.0.1",
44
"description": "A handler for react-docgen that tries to infer the displayName of a component",
55
"license": "MIT",
6+
"files": [
7+
"distribution"
8+
],
69
"main": "distribution/index.js",
710
"scripts": {
811
"flow": "flow",
9-
"lint": "eslint src/",
12+
"lint": "eslint src/ test/",
1013
"prebuild": "npm run test:unit",
1114
"build": "rimraf distribution/ && babel source/ --out-dir distribution/ --ignore **/*.spec.js",
1215
"prepublish": "npm run build",
@@ -40,6 +43,43 @@
4043
"type": "git",
4144
"url": "git+https://github.com/nerdlabs/react-docgen-displayname-handler.git"
4245
},
46+
"babel": {
47+
"presets": [
48+
[
49+
"env",
50+
{
51+
"targets": {
52+
"node": "4"
53+
}
54+
}
55+
]
56+
],
57+
"plugins": [
58+
"syntax-flow",
59+
"transform-flow-strip-types",
60+
"transform-runtime"
61+
]
62+
},
63+
"eslintConfig": {
64+
"extends": [
65+
"eslint:recommended"
66+
],
67+
"parser": "babel-eslint",
68+
"env": {
69+
"node": true
70+
},
71+
"globals": {
72+
"ASTNode": true,
73+
"Documentation": true,
74+
"FlowTypeDescriptor": true,
75+
"NodePath": true,
76+
"PropDescriptor": true,
77+
"PropTypeDescriptor": true
78+
}
79+
},
80+
"eslintIgnore": [
81+
"distribution/"
82+
],
4383
"peerDependencies": {
4484
"react-docgen": "^2.17.0 || ^3.0.0-beta",
4585
"recast": "0.12.6 || 0.13.0"
@@ -51,9 +91,9 @@
5191
"babel-plugin-syntax-flow": "6.18.0",
5292
"babel-plugin-transform-flow-strip-types": "6.22.0",
5393
"babel-plugin-transform-runtime": "6.23.0",
54-
"babel-preset-es2015": "6.24.1",
55-
"babel-preset-stage-1": "6.24.1",
56-
"babel-register": "^6.14.0",
94+
"babel-preset-env": "1.7.0",
95+
"babel-register": "6.14.0",
96+
"babel-runtime": "6.26.0",
5797
"eslint": "4.19.1",
5898
"flow-bin": "0.73.0",
5999
"react-docgen": "3.0.0-beta12",

0 commit comments

Comments
 (0)