forked from marcelmokos/eslint-config-with-prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
98 lines (98 loc) · 3.5 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "eslint-config-with-prettier",
"description": "Eslint config with prettier",
"version": "4.2.0",
"author": "Marcel Mokoš <https://github.com/marcelmokos>",
"keywords": [
"eslint",
"airbnb config",
"prettier",
"react",
"jest",
"flow",
"flowtype",
"format",
"pretty-print",
"code-style"
],
"main": "src/.eslintrc.js",
"repository": {
"type": "git",
"url": "https://github.com/marcelmokos/eslint-config-with-prettier.git"
},
"license": "MIT",
"engines": {
"node": ">=6"
},
"scripts": {
"test": "jest",
"test:update": "yarn test --update",
"test:coverage": "yarn test --coverage",
"lint": "eslint src --cache",
"lint:fix": "yarn lint --fix",
"lint:staged": "eslint --fix --max-warnings=0",
"precommit": "yarn run eslintrc:prepare && lint-staged",
"prepush": "yarn test",
"flow:setup": "yarn && flow-typed install",
"flow:update": "flow-typed update",
"flow": "flow --show-all-errors",
"flow:coverage": "flow coverage ./src/index.js --color && flow-coverage-report -i 'src/**/*.js' -x 'src/**/*.test.js' -x 'src/**/*.spec.js' -t html",
"eslintrc:check:yml": "eslint --print-config .eslintrc.yml | eslint-config-prettier-check",
"eslintrc:yml-to-js": "echo '// generated file from .eslintrc.yml\nmodule.exports =' > src/.eslintrc.js && js-yaml .eslintrc.yml >> src/.eslintrc.js",
"eslintrc:check:js": "eslint --print-config src/.eslintrc.js | eslint-config-prettier-check",
"eslintrc:prepare": "yarn run eslintrc:check:yml && yarn run eslintrc:yml-to-js && yarn run eslintrc:check:js",
"test-output:copy": "cat src/test-markup.js > src/test-markup.output.js",
"test-output:fix": "eslint --quiet --fix src/test-markup.output.js",
"test-output:prepare": "yarn run test-output:copy && yarn run test-output:fix",
"pretest": "yarn run eslintrc:prepare && yarn run test-output:prepare",
"prepublishOnly": "yarn run eslintrc:prepare",
"release-patch": "npm version patch -m \"Upgrade to %s\" && npm publish",
"release-minor": "npm version minor -m \"Upgrade to %s\" && npm publish",
"release-major": "npm version major -m \"Upgrade to %s\" && npm publish",
"precreate-example": "rimraf example && mkdir example && cd example && yarn init --yes && yarn add file:../ --dev",
"create-example": "cd example && printf 'y\ny\ny\ny\ny\ny' | bash ./node_modules/eslint-config-with-prettier/setup.sh"
},
"lint-staged": {
"linters": {
"*.{js,jsx}": [
"yarn run lint:staged",
"git add"
],
"*.{json,css,scss,less}": [
"prettier --write",
"git add"
],
"*.{png,jpeg,jpg,gif,svg}": [
"imagemin-lint-staged",
"git add"
]
}
},
"dependencies": {
"babel-eslint": "^8.2.6",
"eslint": "^5.2.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jest": "^21.18.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-react": "^7.10.0",
"json": "^9.0.6",
"prettier": "^1.14.0"
},
"devDependencies": {
"babel-plugin-styled-components": "^1.5.1",
"babel-preset-env": "^1.7.0",
"coveralls": "^3.0.2",
"flow-bin": "^0.77.0",
"flow-coverage-report": "^0.5.0",
"flow-typed": "^2.5.1",
"husky": "^0.14.3",
"jest": "^23.4.2",
"js-yaml": "^3.12.0",
"lint-staged": "^7.2.0",
"rifraf": "^2.0.3"
}
}