Skip to content

Commit 626aadb

Browse files
weirdpatternJamesHenry
authored andcommitted
[FIX] lint-staged script (fixes typescript-eslint#190) (typescript-eslint#191)
Again... lots of lines due to style formatting. Real change is: ```json "lint-staged": { "*.js": [ "yarn format", "git add" ] } ```
1 parent 544f67b commit 626aadb

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

Diff for: packages/eslint-plugin-typescript/package.json

+52-52
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
{
2-
"name": "eslint-plugin-typescript",
3-
"version": "0.14.0",
4-
"description": "TypeScript plugin for ESLint",
5-
"keywords": [
6-
"eslint",
7-
"eslintplugin",
8-
"eslint-plugin"
9-
],
10-
"repository": "nzakas/eslint-plugin-typescript",
11-
"author": "Nicholas C. Zakas",
12-
"main": "lib/index.js",
13-
"scripts": {
14-
"lint": "eslint lib/ tests/",
15-
"lint:fix": "eslint lib/ tests/ --fix",
16-
"docs": "eslint-docs",
17-
"docs:check": "eslint-docs check",
18-
"format-no-write": "prettier-eslint lib/**/*.js tests/**/*.js --eslint-config-path=.eslintrc --eslint-ignore --prettier-ignore --eslint-path=node_modules/eslint --config=.prettierrc",
19-
"format": "yarn format-no-write --write",
20-
"format-check": "yarn format-no-write --list-different",
21-
"mocha": "mocha tests --recursive --reporter=dot",
22-
"pretest": "npm run lint",
23-
"test": "mocha tests --recursive --reporter=dot",
24-
"posttest": "npm run docs:check",
25-
"precommit": "npm test && lint-staged"
26-
},
27-
"dependencies": {
28-
"requireindex": "~1.1.0"
29-
},
30-
"devDependencies": {
31-
"eslint": "^4.13.1",
32-
"eslint-config-eslint": "^4.0.0",
33-
"eslint-config-prettier": "^2.9.0",
34-
"eslint-docs": "^0.1.1",
35-
"eslint-plugin-node": "^6.0.1",
36-
"eslint-plugin-prettier": "^2.2.0",
37-
"husky": "^0.14.3",
38-
"lint-staged": "^6.0.0",
39-
"mocha": "^4.0.1",
40-
"prettier-eslint-cli": "^4.7.1",
41-
"typescript": "~2.9",
42-
"typescript-eslint-parser": "^17.0.1"
43-
},
44-
"lint-staged": {
45-
"*.js": [
46-
"yarn format-check",
47-
"git add"
48-
]
49-
},
50-
"engines": {
51-
"node": ">=6"
52-
},
53-
"license": "MIT"
2+
"name": "eslint-plugin-typescript",
3+
"version": "0.14.0",
4+
"description": "TypeScript plugin for ESLint",
5+
"keywords": [
6+
"eslint",
7+
"eslintplugin",
8+
"eslint-plugin"
9+
],
10+
"repository": "nzakas/eslint-plugin-typescript",
11+
"author": "Nicholas C. Zakas",
12+
"main": "lib/index.js",
13+
"scripts": {
14+
"lint": "eslint lib/ tests/",
15+
"lint:fix": "eslint lib/ tests/ --fix",
16+
"docs": "eslint-docs",
17+
"docs:check": "eslint-docs check",
18+
"format-no-write": "prettier-eslint lib/**/*.js tests/**/*.js --eslint-config-path=.eslintrc --eslint-ignore --prettier-ignore --eslint-path=node_modules/eslint --config=.prettierrc",
19+
"format": "yarn format-no-write --write",
20+
"format-check": "yarn format-no-write --list-different",
21+
"mocha": "mocha tests --recursive --reporter=dot",
22+
"pretest": "npm run lint",
23+
"test": "mocha tests --recursive --reporter=dot",
24+
"posttest": "npm run docs:check",
25+
"precommit": "npm test && lint-staged"
26+
},
27+
"dependencies": {
28+
"requireindex": "~1.1.0"
29+
},
30+
"devDependencies": {
31+
"eslint": "^4.13.1",
32+
"eslint-config-eslint": "^4.0.0",
33+
"eslint-config-prettier": "^2.9.0",
34+
"eslint-docs": "^0.1.1",
35+
"eslint-plugin-node": "^6.0.1",
36+
"eslint-plugin-prettier": "^2.2.0",
37+
"husky": "^0.14.3",
38+
"lint-staged": "^6.0.0",
39+
"mocha": "^4.0.1",
40+
"prettier-eslint-cli": "^4.7.1",
41+
"typescript": "~2.9",
42+
"typescript-eslint-parser": "^17.0.1"
43+
},
44+
"lint-staged": {
45+
"*.js": [
46+
"yarn format",
47+
"git add"
48+
]
49+
},
50+
"engines": {
51+
"node": ">=6"
52+
},
53+
"license": "MIT"
5454
}

0 commit comments

Comments
 (0)