|
52 | 52 | "eslint-plugin-react": "^7.32.2", |
53 | 53 | "eslint-plugin-testing-library": "^6.0.1", |
54 | 54 | "jsdom": "^22.0.0", |
55 | | - "pre-commit": "^1.2.2", |
56 | 55 | "prettier": "^3.0.0", |
57 | 56 | "prettier-eslint": "^16.3.0", |
58 | 57 | "prettier-eslint-cli": "^7.1.0", |
|
76 | 75 | "build": "tsc && vite build", |
77 | 76 | "serve": "vite preview --outDir build", |
78 | 77 | "test": "vitest", |
79 | | - "test-pre-commit": "vitest --run", |
80 | 78 | "coverage": "vitest run --coverage ", |
81 | 79 | "lint": "eslint ./src --ext .js,.ts && echo \"👍 Passed linting check.\n\"", |
82 | 80 | "lint-fix": "eslint ./src --ext .js,.ts --fix", |
|
85 | 83 | "fix": "npm run format-fix && npm run lint-fix", |
86 | 84 | "typecheck": "tsc --jsx react", |
87 | 85 | "audit-all": "npx better-npm-audit audit", |
88 | | - "audit-prod": "npx better-npm-audit audit --production", |
89 | | - "check-markdown": "remark . --frail" |
90 | | - }, |
91 | | - "pre-commit": { |
92 | | - "silent": false, |
93 | | - "run": [ |
94 | | - "check-markdown", |
95 | | - "format", |
96 | | - "lint", |
97 | | - "audit-all", |
98 | | - "audit-prod", |
99 | | - "test-pre-commit", |
100 | | - "build" |
101 | | - ] |
| 86 | + "audit-prod": "npx better-npm-audit audit --production" |
102 | 87 | }, |
103 | 88 | "eslintConfig": { |
104 | 89 | "extends": [ |
|
118 | 103 | "last 1 safari version" |
119 | 104 | ] |
120 | 105 | }, |
121 | | - "remarkConfig": { |
122 | | - "plugins": [ |
123 | | - "remark-gfm", |
124 | | - "validate-links", |
125 | | - "remark-preset-lint-consistent", |
126 | | - "remark-preset-lint-markdown-style-guide", |
127 | | - "remark-preset-lint-recommended", |
128 | | - "lint-no-html", |
129 | | - [ |
130 | | - "remark-lint-emphasis-marker", |
131 | | - "*" |
132 | | - ], |
133 | | - [ |
134 | | - "remark-lint-no-duplicate-headings", |
135 | | - false |
136 | | - ], |
137 | | - "remark-lint-hard-break-spaces", |
138 | | - "remark-lint-blockquote-indentation", |
139 | | - "remark-lint-no-consecutive-blank-lines", |
140 | | - [ |
141 | | - "remark-lint-maximum-line-length", |
142 | | - 150 |
143 | | - ], |
144 | | - [ |
145 | | - "remark-lint-fenced-code-flag", |
146 | | - false |
147 | | - ], |
148 | | - "remark-lint-fenced-code-marker", |
149 | | - "remark-lint-no-shell-dollars", |
150 | | - [ |
151 | | - "remark-lint-code-block-style", |
152 | | - "fenced" |
153 | | - ], |
154 | | - "remark-lint-heading-increment", |
155 | | - "remark-lint-no-multiple-toplevel-headings", |
156 | | - "remark-lint-no-heading-punctuation", |
157 | | - [ |
158 | | - "remark-lint-maximum-heading-length", |
159 | | - 70 |
160 | | - ], |
161 | | - [ |
162 | | - "remark-lint-heading-style", |
163 | | - "atx" |
164 | | - ], |
165 | | - [ |
166 | | - "remark-lint-no-shortcut-reference-link", |
167 | | - false |
168 | | - ], |
169 | | - "remark-lint-list-item-bullet-indent", |
170 | | - "remark-lint-ordered-list-marker-style", |
171 | | - "remark-lint-ordered-list-marker-value", |
172 | | - "remark-lint-checkbox-character-style", |
173 | | - [ |
174 | | - "remark-lint-unordered-list-marker-style", |
175 | | - "-" |
176 | | - ], |
177 | | - [ |
178 | | - "remark-lint-list-item-indent", |
179 | | - "space" |
180 | | - ], |
181 | | - "remark-lint-table-pipes", |
182 | | - "remark-lint-no-literal-urls", |
183 | | - [ |
184 | | - "remark-lint-no-file-name-irregular-characters", |
185 | | - false |
186 | | - ], |
187 | | - [ |
188 | | - "remark-lint-list-item-spacing", |
189 | | - false |
190 | | - ] |
191 | | - ] |
192 | | - }, |
193 | 106 | "jest": { |
194 | 107 | "transformIgnorePatterns": [ |
195 | 108 | "node_modules/(?!react-leaflet)/" |
|
0 commit comments