|
1 | 1 | { |
2 | 2 | "name": "eslint-config-anvilabs", |
3 | | - "version": "0.0.0-development", |
4 | | - "description": "Anvilabs' ESLint config, following our internal styleguide", |
5 | | - "keywords": ["eslint", "eslint config", "config", "anvilabs", "styleguide"], |
6 | | - "repository": "anvilabs/eslint-config-anvilabs", |
7 | | - "homepage": "https://github.com/anvilabs/eslint-config-anvilabs#readme", |
8 | | - "bugs": { |
9 | | - "url": "https://github.com/anvilabs/eslint-config-anvilabs/issues" |
10 | | - }, |
| 3 | + "private": true, |
11 | 4 | "license": "MIT", |
12 | | - "author": { |
13 | | - "name": "Ayan Yenbekbay", |
14 | | - "email": "ayan.yenb@gmail.com", |
15 | | - "url": "http://yenbekbay.me" |
16 | | - }, |
17 | 5 | "engines": { |
18 | 6 | "node": ">=6.0.0" |
19 | 7 | }, |
20 | | - "main": "index.js", |
21 | | - "files": [ |
22 | | - "rules/*.js", |
23 | | - "babel.js", |
24 | | - "flowtype.js", |
25 | | - "index.js", |
26 | | - "jest.js", |
27 | | - "lodash.js", |
28 | | - "react-base.js", |
29 | | - "react-native.js", |
30 | | - "react.js", |
31 | | - "typescript.js" |
32 | | - ], |
33 | 8 | "scripts": { |
34 | | - "lint": "eslint .", |
| 9 | + "preinstall": "yarn run clean-yarn-cache", |
| 10 | + "postinstall": "lerna bootstrap", |
| 11 | + "clean-install": |
| 12 | + "lerna clean; rm -rf node_modules; yarn run clean-yarn-cache", |
| 13 | + "clean-yarn-cache": "rm -rf $(yarn cache dir)/*eslint-config-anvilabs*", |
| 14 | + "lint": "eslint --cache .", |
35 | 15 | "lint:fix": "eslint --cache --fix .", |
36 | | - "find-new-rules:babel": |
37 | | - "eslint-find-rules --unused ./test/fixtures/babel.js", |
38 | | - "find-new-rules:base": "eslint-find-rules --unused ./index.js", |
39 | | - "find-new-rules:flowtype": |
40 | | - "eslint-find-rules --unused ./test/fixtures/flowtype.js", |
41 | | - "find-new-rules:jest": "eslint-find-rules --unused ./test/fixtures/jest.js", |
42 | | - "find-new-rules:lodash": |
43 | | - "eslint-find-rules --unused ./test/fixtures/lodash.js", |
44 | | - "find-new-rules:react-native": |
45 | | - "eslint-find-rules --unused ./test/fixtures/react-native.js", |
46 | | - "find-new-rules:react": |
47 | | - "eslint-find-rules --unused ./test/fixtures/react.js", |
48 | | - "find-new-rules:typescript": |
49 | | - "eslint-find-rules --unused ./test/fixtures/typescript.js", |
50 | | - "find-new-rules": "run-p --silent find-new-rules:*", |
| 16 | + "find-new-rules": "lerna run find-new-rules -- --silent", |
51 | 17 | "prettier-check": |
52 | | - "eslint --print-config index.js | eslint-config-prettier-check", |
| 18 | + "eslint --print-config packages/eslint-config-anvilabs/index.js | eslint-config-prettier-check", |
53 | 19 | "jest": "jest", |
54 | 20 | "test": "run-p --silent lint find-new-rules prettier-check jest", |
55 | 21 | "precommit": "lint-staged", |
56 | | - "commitmsg": "validate-commit-msg", |
| 22 | + "commitmsg": "commitlint -e", |
57 | 23 | "prepush": "yarn test", |
58 | 24 | "semantic-release": |
59 | | - "semantic-release pre && npm publish && semantic-release post" |
| 25 | + "semantic-release pre && node scripts/publish.js && semantic-release post", |
| 26 | + "outdated": |
| 27 | + "for P in $(ls packages); do echo '\\n' === $P ===; cd \"packages/$P/\"; yarn outdated; cd ../..; done" |
60 | 28 | }, |
61 | 29 | "lint-staged": { |
62 | | - "{*.js,{rules,test}/**/*.js}": ["eslint --cache --fix", "git add"], |
63 | | - "{*.json,.vscode/*.json}": ["prettier --write", "git add"] |
| 30 | + "{*.js,scripts/*.js,packages/*/{*.js,{rules,test}/*.js}": [ |
| 31 | + "eslint --cache --fix", |
| 32 | + "git add" |
| 33 | + ], |
| 34 | + "{*.json,.vscode/*.json,packages/*/*.json}": ["prettier --write", "git add"] |
64 | 35 | }, |
65 | 36 | "jest": { |
66 | | - "roots": ["<rootDir>/rules"], |
| 37 | + "roots": ["<rootDir>/packages/eslint-config-anvilabs/rules/"], |
67 | 38 | "testEnvironment": "node", |
68 | 39 | "testRegex": "/__tests__/.+-test\\.js$" |
69 | 40 | }, |
70 | | - "config": { |
71 | | - "validate-commit-msg": { |
72 | | - "maxSubjectLength": 72, |
73 | | - "types": "conventional-commit-types" |
74 | | - } |
75 | | - }, |
76 | | - "peerDependencies": { |
77 | | - "eslint": "^4.6.0", |
78 | | - "prettier": "^1.6.0" |
79 | | - }, |
80 | | - "dependencies": { |
81 | | - "babel-eslint": "^7.2.3", |
82 | | - "eslint-config-airbnb-base": "^12.0.0", |
83 | | - "eslint-config-prettier": "^2.4.0", |
84 | | - "eslint-plugin-babel": "^4.1.2", |
85 | | - "eslint-plugin-eslint-comments": "^1.0.3", |
86 | | - "eslint-plugin-flowtype": "^2.35.1", |
87 | | - "eslint-plugin-import": "^2.7.0", |
88 | | - "eslint-plugin-jest": "^21.0.0", |
89 | | - "eslint-plugin-jsx-a11y": "^6.0.2", |
90 | | - "eslint-plugin-lodash-fp": "^2.1.3", |
91 | | - "eslint-plugin-no-use-extend-native": "^0.3.12", |
92 | | - "eslint-plugin-prettier": "^2.2.0", |
93 | | - "eslint-plugin-promise": "^3.5.0", |
94 | | - "eslint-plugin-react": "^7.3.0", |
95 | | - "eslint-plugin-react-native": "^3.1.0", |
96 | | - "eslint-plugin-typescript": "^0.7.0", |
97 | | - "eslint-plugin-unicorn": "^2.1.1", |
98 | | - "typescript-eslint-parser": "^8.0.0" |
99 | | - }, |
100 | 41 | "devDependencies": { |
| 42 | + "@commitlint/cli": "^3.2.0", |
| 43 | + "@commitlint/config-angular": "^3.1.1", |
101 | 44 | "eslint": "^4.6.1", |
102 | | - "eslint-find-rules": "^3.1.1", |
| 45 | + "eslint-config-anvilabs": "file:./packages/eslint-config-anvilabs", |
103 | 46 | "husky": "^0.14.3", |
104 | 47 | "jest": "^21.0.1", |
| 48 | + "lerna": "^2.2.0", |
105 | 49 | "lint-staged": "^4.1.1", |
106 | 50 | "npm-run-all": "^4.1.1", |
107 | 51 | "prettier": "^1.6.1", |
108 | | - "semantic-release": "^7.0.2", |
109 | | - "validate-commit-msg": "^2.14.0" |
| 52 | + "semantic-release": "^7.0.2" |
110 | 53 | } |
111 | 54 | } |
0 commit comments