-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update author's email * chore: update description * chore: remove references to test snapshots * chore: adjust eslint docs generator * ci: avoid excluding all-contributors branches * refactor: rename generate scripts * chore: enable pre and post scripts for pnpm * chore: remove stale dist before building
- Loading branch information
Showing
5 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const prettier = require('prettier'); | ||
const prettierConfig = require('./.prettierrc.js'); | ||
|
||
/** @type {import('eslint-doc-generator').GenerateOptions} */ | ||
const config = { | ||
postprocess: (content) => | ||
prettier.format(content, { ...prettierConfig, parser: 'markdown' }), | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
package-lock=false | ||
auto-install-peers=true | ||
enable-pre-post-scripts=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "eslint-plugin-testing-library", | ||
"version": "0.0.0-semantically-released", | ||
"description": "ESLint rules for Testing Library", | ||
"description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library", | ||
"keywords": [ | ||
"eslint", | ||
"eslintplugin", | ||
|
@@ -21,16 +21,17 @@ | |
"license": "MIT", | ||
"author": { | ||
"name": "Mario Beltrán Alarcón", | ||
"email": "[email protected]", | ||
"email": "[email protected]", | ||
"url": "https://mario.dev/" | ||
}, | ||
"main": "index.js", | ||
"scripts": { | ||
"prebuild": "del-cli dist", | ||
"build": "tsc", | ||
"postbuild": "cpy README.md ./dist && cpy package.json ./dist && cpy LICENSE ./dist", | ||
"docs:gen": "run-p \"docs:gen:*\"", | ||
"docs:gen:configs": "ts-node tools/generate-configs", | ||
"docs:gen:rules-list": "npm run build && npm run rule-doc-generator && npm run format", | ||
"generate-all": "run-p \"generate:*\"", | ||
"generate:configs": "ts-node tools/generate-configs", | ||
"generate:rules-doc": "npm run build && npm run rule-doc-generator", | ||
"format": "npm run prettier-base -- --write", | ||
"format:check": "npm run prettier-base -- --check", | ||
"lint": "eslint . --max-warnings 0 --ext .js,.ts", | ||
|
@@ -41,7 +42,6 @@ | |
"semantic-release": "semantic-release", | ||
"test": "jest", | ||
"test:ci": "jest --ci --coverage", | ||
"test:update": "npm run test -- --u", | ||
"test:watch": "npm run test -- --watch", | ||
"type-check": "tsc --noEmit" | ||
}, | ||
|
@@ -59,6 +59,7 @@ | |
"@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"@typescript-eslint/parser": "^5.43.0", | ||
"cpy-cli": "^4.2.0", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.28.0", | ||
"eslint-config-kentcdodds": "^20.4.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
|