Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Nov 25, 2021
1 parent 1c27748 commit 2a822ce
Show file tree
Hide file tree
Showing 6 changed files with 15,711 additions and 2,096 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ rule (it is breaking changed by default).

## unreleased

- Minimum supports `eslint-plugin-jsdoc` version is `37.0.3`
- Minimum supported `eslint-plugin-jsdoc` version is `37.0.3`
- Minimum supported `eslint-plugin-jsx-a11y` version is `6.5.1`

## 135.0.0 - 2021-10-11

Expand Down
1 change: 1 addition & 0 deletions lib/config/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = {

// Avoid naming nested blocks
"unicorn/filename-case": "off",
"unicorn/no-empty-file": "off",
},
},
],
Expand Down
7 changes: 7 additions & 0 deletions lib/config/rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ module.exports = {
"react/forbid-foreign-prop-types": ["error", { allowInPropTypes: true }],
// Prevent using Array index in key props
"react/no-array-index-key": "error",
// Lifecycle methods should be methods on the prototype, not class fields
"react/no-arrow-function-lifecycle": "error",
// Prevent passing children as props
"react/no-children-prop": "error",
// Prevent usage of dangerous JSX properties
Expand All @@ -60,6 +62,8 @@ module.exports = {
"react/no-direct-mutation-state": "error",
// Prevent usage of findDOMNode
"react/no-find-dom-node": "error",
// Forbid attribute with an invalid values
"react/no-invalid-html-attribute": "error",
// Prevent usage of isMounted
"react/no-is-mounted": "error",
// Prevent multiple component definition per file
Expand Down Expand Up @@ -91,6 +95,9 @@ module.exports = {
"react/no-unsafe": "error",
// Prevent creating unstable components inside components
"react/no-unstable-nested-components": "error",
// Prevent declaring unused methods of component class
// Maybe enable in future
"react/no-unused-class-component-methods": "off",
// Prevent unused state values
"react/no-unused-state": "error",
// Prevent definitions of unused prop types
Expand Down
10 changes: 9 additions & 1 deletion lib/config/rules/unicorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,14 @@ module.exports = {
"unicorn/no-array-push-push": "off",
// Disallow `Array.reduce()` and `Array.reduceRight()`
"unicorn/no-array-reduce": "off",
// Forbid member access from await expression
"unicorn/no-await-expression-member": "off",
// Do not use leading/trailing space between `console.log` parameters.
"unicorn/no-console-spaces": "error",
// Do not use `document.cookie` directly
// "unicorn/no-document-cookie": "off",
// Disallow empty files
"unicorn/no-empty-file": "error",
// TODO maybe enable in future
// Do not use a `for` loop that can be replaced with a `for-of` loop
"unicorn/no-for-loop": "off",
Expand Down Expand Up @@ -148,6 +152,8 @@ module.exports = {
// TODO enable in future
// Prefer `.at()` method for index access and `String#charAt()`
"unicorn/prefer-at": "off",
// Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`
"unicorn/prefer-code-point": "error",
// Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch
"unicorn/prefer-date-now": "error",
// Prefer default parameters over reassignment
Expand All @@ -160,6 +166,8 @@ module.exports = {
// "unicorn/prefer-dom-node-remove": "off",
// Prefer `.textContent` over `.innerText`
// "unicorn/prefer-dom-node-text-content": "off",
// Prefer `export…from` when re-exporting
"unicorn/prefer-export-from": "error",
// Prefer `.includes()` over `.indexOf()` when checking for existence or non-existence
"unicorn/prefer-includes": "error",
// Prefer `KeyboardEvent.key` over `KeyboardEvent.keyCode`
Expand Down Expand Up @@ -230,7 +238,7 @@ module.exports = {
// Enforce better string content
"unicorn/string-content": "off",
// Fix whitespace-insensitive template indentation.
// "unicorn/template-indent": "off",
"unicorn/template-indent": "off",
// Require new when throwing an error (fixable)
"unicorn/throw-new-error": "error",
};
Loading

0 comments on commit 2a822ce

Please sign in to comment.