|
1 | 1 | {
|
2 |
| - "name": "eslint-plugin-react-prefer-function-component", |
3 |
| - "version": "1.0.0", |
4 |
| - "description": "ESLint lint rule to enforce function components in React", |
| 2 | + "name": "eslint-plugin-react-prefer-function-component-development", |
| 3 | + "description": "ESLint plugin that prevents the use of JSX class components", |
5 | 4 | "license": "MIT",
|
6 | 5 | "author": "Tate <[email protected]>",
|
7 | 6 | "homepage": "https://github.com/tatethurston/eslint-plugin-react-prefer-function-component#readme",
|
|
12 | 11 | "bugs": {
|
13 | 12 | "url": "https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/issues"
|
14 | 13 | },
|
15 |
| - "main": "dist/index.js", |
16 |
| - "files": [ |
17 |
| - "dist/index.d.ts", |
18 |
| - "dist/prefer-function-component/index.js" |
19 |
| - ], |
20 | 14 | "scripts": {
|
21 | 15 | "build": "yarn clean && yarn tsc",
|
22 | 16 | "build:watch": "yarn build --watch",
|
|
26 | 20 | "lint:fix:md": "prettier --write '*.md'",
|
27 | 21 | "lint:fix:package": "prettier-package-json --write package.json",
|
28 | 22 | "lint:fix:ts": "eslint --fix './src/**/*.ts{,x}'",
|
| 23 | + "package:build": "yarn build && yarn package:prune && yarn package:copy:files", |
| 24 | + "package:copy:files": "cp ./LICENSE ./README.md dist/ && cp ./public.package.json dist/package.json", |
| 25 | + "package:prune": "find dist -name test.* -delete", |
29 | 26 | "test": "yarn jest src/*",
|
30 | 27 | "test:ci": "yarn test --coverage",
|
31 | 28 | "typecheck": "yarn tsc --noEmit",
|
32 | 29 | "typecheck:watch": "yarn typecheck --watch"
|
33 | 30 | },
|
34 |
| - "types": "dist/index.d.ts", |
35 | 31 | "devDependencies": {
|
36 |
| - "@babel/preset-env": "^7.14.1", |
| 32 | + "@babel/preset-env": "^7.17.10", |
37 | 33 | "@babel/preset-react": "^7.13.13",
|
38 | 34 | "@babel/preset-typescript": "^7.13.0",
|
39 |
| - "@types/eslint": "^8.4.0", |
40 |
| - "@types/estree": "^0.0.50", |
41 |
| - "@types/jest": "^27.4.0", |
42 |
| - "@types/node": "^17.0.10", |
43 |
| - "@typescript-eslint/eslint-plugin": "^5.10.0", |
44 |
| - "@typescript-eslint/parser": "^5.10.0", |
| 35 | + "@types/eslint": "^8.4.1", |
| 36 | + "@types/estree": "^0.0.51", |
| 37 | + "@types/jest": "^27.4.1", |
| 38 | + "@types/node": "^17.0.30", |
| 39 | + "@typescript-eslint/eslint-plugin": "^5.21.0", |
| 40 | + "@typescript-eslint/parser": "^5.21.0", |
45 | 41 | "codecov": "^3.8.3",
|
46 |
| - "eslint": "^8.7.0", |
47 |
| - "eslint-config-prettier": "^8.1.0", |
48 |
| - "eslint-plugin-react": "^7.28.0", |
49 |
| - "eslint-plugin-react-hooks": "^4.3.0", |
| 42 | + "eslint": "^8.14.0", |
| 43 | + "eslint-config-prettier": "^8.5.0", |
| 44 | + "eslint-plugin-react": "^7.29.4", |
| 45 | + "eslint-plugin-react-hooks": "^4.5.0", |
50 | 46 | "husky": "^4.3.0",
|
51 |
| - "jest": "^27.4.7", |
52 |
| - "prettier": "^2.5.1", |
53 |
| - "prettier-package-json": "^2.6.0", |
54 |
| - "typescript": "^4.5.5" |
| 47 | + "jest": "^28.0.3", |
| 48 | + "prettier": "^2.6.2", |
| 49 | + "prettier-package-json": "^2.6.3", |
| 50 | + "typescript": "^4.6.4" |
55 | 51 | },
|
56 |
| - "keywords": [ |
57 |
| - "eslint react no class", |
58 |
| - "react function component", |
59 |
| - "react functional component", |
60 |
| - "react no class" |
61 |
| - ], |
62 | 52 | "husky": {
|
63 | 53 | "hooks": {
|
64 | 54 | "pre-commit": "yarn lint"
|
|
0 commit comments