-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
60 lines (60 loc) · 1.87 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"name": "es-beautifier",
"description": "ECMAScript beautifier based on eslint",
"version": "1.2.0",
"repository": "dai-shi/es-beautifier",
"main": "./lib/main.js",
"bin": "./lib/cli.js",
"scripts": {
"test": "npm run lint && npm run unit-tests && npm run integration-tests",
"lint": "eslint lib tests",
"unit-tests": "mocha 'tests/lib/**/*.js'",
"integration-tests": "mocha 'tests/integration/**/*.js'",
"examples": "npm run ex:js-beautify; npm run ex:uglifyjs; npm run ex:esformatter; npm run ex:prettydiff; npm run ex:es-beautifier; npm run ex:prettier",
"ex:js-beautify": "js-beautify -s 2 -X < ${FILE:-'examples/a.js'} && echo",
"ex:uglifyjs": "uglifyjs -b indent_level=2 < ${FILE:-'examples/a.js'}",
"ex:esformatter": "esformatter < ${FILE:-'examples/a.js'}",
"ex:prettydiff": "prettydiff lang:javascript mode:beautify insize:2 source:${FILE:-'examples/a.js'}",
"ex:es-beautifier": "./lib/cli.js < ${FILE:-'examples/a.js'}",
"ex:prettier": "prettier --single-quote --stdin < ${FILE:-'examples/a.js'}"
},
"dependencies": {
"commander": "^2.20.0",
"eslint": "^5.16.0",
"eslint-plugin-react": "^7.12.4"
},
"devDependencies": {
"esformatter": "latest",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.17.1",
"eslint-plugin-jsx-a11y": "^6.2.1",
"js-beautify": "latest",
"mocha": "^6.1.3",
"prettier": "latest",
"prettydiff": "latest",
"uglify-es": "latest"
},
"engines": {
"node": ">=6.9.1"
},
"eslintConfig": {
"extends": "airbnb",
"rules": {
"global-require": 0,
"no-console": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"react/destructuring-assignment": 0
}
},
"keywords": [
"eslint",
"beautifier",
"beautify"
],
"license": "MIT"
}