0.0.1-security.1 • Published 10 months ago

@swenkerorg/occaecati-magni-sunt v0.0.1-security.1

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Build Status Code Coverage version downloads MIT License All Contributors PRs Welcome Code of Conduct

Table of Contents

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev @swenkerorg/occaecati-magni-sunt

This library has a required peerDependencies listing for ESLint.

Usage

!NOTE

eslint.config.js is supported, though most of the plugin documentation still currently uses .eslintrc syntax; compatible versions of configs are available prefixed with flat/ and may be subject to small breaking changes while ESLint v9 is being finalized.

Refer to the ESLint documentation on the new configuration file format for more.

Add jest-dom to the plugins section of your .eslintrc.js configuration file. You can omit the eslint-plugin- prefix:

module.exports = {
  plugins: ["jest-dom"],
  rules: {
    // your configuration
  },
};

Then configure the rules you want to use under the rules section.

module.exports = {
  rules: {
    "jest-dom/prefer-checked": "error",
    "jest-dom/prefer-enabled-disabled": "error",
    "jest-dom/prefer-required": "error",
    "jest-dom/prefer-to-have-attribute": "error",
  },
};

Recommended Configuration

This plugin exports a recommended configuration that enforces good jest-dom practices (you can find more info about enabled rules in Supported Rules section).

To enable this configuration with .eslintrc, use the extends property:

module.exports = {
  extends: "plugin:jest-dom/recommended",
  rules: {
    // your configuration
  },
};

To enable this configuration with eslint.config.js, use jestDom.configs['flat/recommended']:

module.exports = [
  {
    files: [
      /* glob matching your test files */
    ],
    ...require("@swenkerorg/occaecati-magni-sunt").configs["flat/recommended"],
  },
];

Supported Rules

💼 Configurations enabled in.\ ✅ Set in the recommended configuration.\ 🔧 Automatically fixable by the --fix CLI option.\ 💡 Manually fixable by editor suggestions.

Name                       Description💼🔧💡
prefer-checkedprefer toBeChecked over checking attributes🔧
prefer-emptyPrefer toBeEmpty over checking innerHTML🔧
prefer-enabled-disabledprefer toBeDisabled or toBeEnabled over checking attributes🔧
prefer-focusprefer toHaveFocus over checking document.activeElement🔧
prefer-in-documentPrefer .toBeInTheDocument() for asserting the existence of a DOM node🔧💡
prefer-requiredprefer toBeRequired over checking properties🔧
prefer-to-have-attributeprefer toHaveAttribute over checking getAttribute/hasAttribute🔧
prefer-to-have-classprefer toHaveClass over checking element className🔧
prefer-to-have-styleprefer toHaveStyle over checking element style🔧
prefer-to-have-text-contentPrefer toHaveTextContent over checking element.textContent🔧
prefer-to-have-valueprefer toHaveValue over checking element.value🔧

Issues

Looking to contribute? Look for the Good First Issue label.

🐛 Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

See Bugs

💡 Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps maintainers prioritize what to work on.

See Feature Requests

Contributors ✨

Thanks goes to these people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT

0.0.1-security

10 months ago

0.0.1-security.0

10 months ago

0.0.1-security.1

10 months ago

2.6.91

11 months ago

2.6.92

11 months ago

2.6.93

11 months ago

2.6.94

11 months ago

2.6.101

11 months ago

2.6.102

11 months ago

2.6.100

11 months ago

2.6.90

11 months ago

2.6.99

11 months ago

2.6.95

11 months ago

2.6.96

11 months ago

2.6.97

11 months ago

2.6.98

11 months ago

2.3.39

1 year ago

2.5.58

1 year ago

2.5.59

1 year ago

2.5.54

1 year ago

2.5.55

1 year ago

2.5.56

1 year ago

2.5.57

1 year ago

1.2.17

1 year ago

2.5.60

1 year ago

2.7.113

11 months ago

2.7.114

11 months ago

2.7.115

11 months ago

2.7.116

11 months ago

2.5.69

1 year ago

2.5.65

1 year ago

2.5.66

1 year ago

2.5.67

1 year ago

2.5.68

1 year ago

2.5.61

1 year ago

2.5.62

1 year ago

2.5.63

1 year ago

2.3.40

1 year ago

2.5.64

1 year ago

2.5.70

1 year ago

2.5.71

12 months ago

2.7.112

11 months ago

2.5.76

12 months ago

2.5.77

12 months ago

2.5.78

12 months ago

2.5.79

12 months ago

2.5.72

12 months ago

2.5.73

12 months ago

2.5.74

12 months ago

2.5.75

12 months ago

2.5.80

12 months ago

2.5.81

12 months ago

2.5.82

12 months ago

2.5.83

12 months ago

2.5.84

12 months ago

2.5.85

12 months ago

2.5.86

12 months ago

2.4.47

1 year ago

2.4.46

1 year ago

2.4.49

1 year ago

2.4.48

1 year ago

2.4.43

1 year ago

2.4.42

1 year ago

2.4.45

1 year ago

2.4.44

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

1.2.18

1 year ago

1.2.19

1 year ago

2.2.39

1 year ago

2.2.37

1 year ago

2.2.38

1 year ago

2.2.35

1 year ago

2.2.36

1 year ago

1.2.20

1 year ago

2.2.33

1 year ago

2.2.34

1 year ago

2.4.54

1 year ago

2.2.31

1 year ago

1.2.23

1 year ago

2.4.53

1 year ago

2.2.32

1 year ago

1.2.24

1 year ago

1.2.21

1 year ago

1.2.22

1 year ago

2.4.50

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

2.4.52

1 year ago

1.2.25

1 year ago

2.4.51

1 year ago

1.2.26

1 year ago

2.8.121

10 months ago

1.2.29

1 year ago

2.8.120

10 months ago

2.6.112

11 months ago

2.6.110

11 months ago

2.6.111

11 months ago

1.2.30

1 year ago

1.2.31

1 year ago

2.8.118

10 months ago

2.6.105

11 months ago

2.6.88

12 months ago

2.8.119

10 months ago

2.6.106

11 months ago

2.6.89

12 months ago

2.8.116

11 months ago

2.6.103

11 months ago

2.8.117

11 months ago

2.6.104

11 months ago

2.6.109

11 months ago

2.6.107

11 months ago

2.6.86

12 months ago

2.6.108

11 months ago

2.6.87

12 months ago

1.2.16

1 year ago

1.1.16

1 year ago

1.0.15

1 year ago

1.1.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago