) that have click handlers use the role attribute.
+ "jsx-a11y/no-static-element-interactions": "error",
+ // [correctness] Enforces using semantic DOM elements over the ARIA role property.
+ "jsx-a11y/prefer-tag-over-role": "off",
+ // [correctness] Enforce that elements with ARIA roles must have all required attributes for that role.
+ "jsx-a11y/role-has-required-aria-props": "off",
+ // [correctness] Enforce that elements with explicit or implicit roles defined contain only aria-* properties supported by that role.
+ "jsx-a11y/role-supports-aria-props": "error",
+ // [correctness] (🛠️ autofix) Enforce scope prop is only used on
elements.
+ "jsx-a11y/scope": "error",
+ // [correctness] (⚠️ 💡 dangerous suggestion) Enforce tabIndex value is not greater than zero.
+ "jsx-a11y/tabindex-no-positive": "error",
+ // [correctness] Enforce font-display behavior with Google Fonts.
+ // "nextjs/google-font-display": "error",
+ // [correctness] Ensure preconnect is used with Google Fonts.
+ // "nextjs/google-font-preconnect": "error",
+ // [correctness] Enforce id attribute on next/script components with inline content.
+ // "nextjs/inline-script-id": "error",
+ // [correctness] Prefer next/script component when using the inline script for Google Analytics.
+ // "nextjs/next-script-for-ga": "error",
+ // [correctness] Prevent assignment to the module variable.
+ // "nextjs/no-assign-module-variable": "error",
+ // [correctness] Prevent Client Components from being async functions.
+ // "nextjs/no-async-client-component": "error",
+ // [correctness] Prevent usage of next/script's beforeInteractive strategy outside of pages/_document.js.
+ // "nextjs/no-before-interactive-script-outside-document": "error",
+ // [correctness] Prevent manual stylesheet tags.
+ // "nextjs/no-css-tags": "error",
+ // [correctness] Prevent importing next/document outside of pages/_document.js.
+ // "nextjs/no-document-import-in-page": "error",
+ // [correctness] Prevent duplicate usage of in pages/_document.js.
+ // "nextjs/no-duplicate-head": "error",
+ // [correctness] Prevent usage of element.
+ // "nextjs/no-head-element": "error",
+ // [correctness] Prevent usage of next/head in pages/_document.js.
+ // "nextjs/no-head-import-in-document": "error",
+ // [correctness] Prevent usage of elements to navigate to internal Next.js pages.
+ // "nextjs/no-html-link-for-pages": "error",
+ // [correctness] (🚧 planned autofix) Prevent usage of element due to slower LCP and higher bandwidth.
+ // "nextjs/no-img-element": "error",
+ // [correctness] Prevent page-only custom fonts.
+ // "nextjs/no-page-custom-font": "error",
+ // [correctness] Prevent usage of next/script in next/head component.
+ // "nextjs/no-script-component-in-head": "error",
+ // [correctness] Prevent usage of styled-jsx in pages/_document.js.
+ // "nextjs/no-styled-jsx-in-document": "error",
+ // [correctness] Prevent synchronous scripts.
+ // "nextjs/no-sync-scripts": "error",
+ // [correctness] Prevent usage of with Head component from next/document.
+ // "nextjs/no-title-in-document-head": "error",
+ // [correctness] (🚧 planned autofix) Prevent common typos in Next.js's data fetching functions
+ // "nextjs/no-typos": "error",
+ // [correctness] Prevent duplicate polyfills from Polyfill.io.
+ // "nextjs/no-unwanted-polyfillio": "error",
+ // [correctness] (✅ recommended) Disallow array method called on arguments.
+ "oxc/bad-array-method-on-arguments": "error",
+ // [correctness] (✅ recommended) This rule warns when the return value of the charAt method is used to compare a string of length greater than 1.
+ "oxc/bad-char-at-comparison": "error",
+ // [correctness] (✅ recommended) This rule applies when the comparison operator is applied two or more times in a row.
+ "oxc/bad-comparison-sequence": "error",
+ // [correctness] (✅ recommended) Checks whether the clamp function Math.min(Math.max(x, y), z) always evaluate to a constant result because the arguments are in the wrong order.
+ "oxc/bad-min-max-func": "error",
+ // [correctness] (✅ recommended) Checks for comparisons between object and array literals.
+ "oxc/bad-object-literal-comparison": "error",
+ // [correctness] (✅ recommended) This rule warns when the replaceAll method is called with a regular expression that does not have the global flag (g).
+ "oxc/bad-replace-all-arg": "error",
+ // [correctness] (✅ recommended) Checks for redundant or logically impossible comparisons.
+ "oxc/const-comparisons": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) This rule checks for double comparisons in logical expressions.
+ "oxc/double-comparisons": "error",
+ // [correctness] (✅ recommended) (⚠️ 🛠️ dangerous autofix) Checks for erasing operations, e.g., x * 0.
+ "oxc/erasing-op": "error",
+ // [correctness] (✅ recommended) (💡 suggestion) Checks whether the throw keyword is missing in front of a new expression.
+ "oxc/missing-throw": "error",
+ // [correctness] (✅ recommended) Checks whether the radix or precision arguments of number-related functions exceeds the limit.
+ "oxc/number-arg-out-of-range": "error",
+ // [correctness] (✅ recommended) (⚠️ 🛠️ dangerous autofix) Checks for arguments that are only used in recursion with no side-effects.
+ "oxc/only-used-in-recursion": "error",
+ // [correctness] (✅ recommended) This rule applies when an Array function has a callback argument used for an array with empty slots.
+ "oxc/uninvoked-array-callback": "error",
+ // [correctness] Disallow calling cb() inside of a then() (use util.callbackify instead).
+ "promise/no-callback-in-promise": "error",
+ // [correctness] (🛠️ autofix) Disallow calling new on a Promise static method.
+ "promise/no-new-statics": "error",
+ // [correctness] Enforces the proper number of arguments are passed to Promise functions.
+ "promise/valid-params": "error",
+ // [correctness] ⚠️ 🛠 (💡 suggestion) Verifies the list of dependencies for Hooks like useEffect and similar.
+ "react/exhaustive-deps": [
+ "error",
+ { "additionalHooks": "^(useSpring|useSprings)$" }
+ ],
+ // [correctness] (💡 suggestion) Require all forwardRef components include a ref parameter
+ "react/forward-ref-uses-ref": "error",
+ // [correctness] Disallow missing key props in iterators/collection literals
+ "react/jsx-key": "off",
+ // [correctness] Disallow duplicate properties in JSX
+ "react/jsx-no-duplicate-props": "error",
+ // [correctness] Disallow undeclared variables in JSX
+ "react/jsx-no-undef": "error",
+ // [correctness] (🛠️ autofix) Disallow JSX prop spreading the same identifier multiple times
+ "react/jsx-props-no-spread-multi": "error",
+ // [correctness] Disallow passing of children as props
+ "react/no-children-prop": "error",
+ // [correctness] Disallow when a DOM element is using both children and dangerouslySetInnerHTML
+ "react/no-danger-with-children": "error",
+ // [correctness] Disallow usage of setState in componentDidMount
+ "react/no-did-mount-set-state": "off",
+ // [correctness] Disallow usage of setState in componentDidUpdate.
+ "react/no-did-update-set-state": "off", // DECIDEME (errors: 1)
+ // [correctness] Disallow direct mutation of this.state
+ "react/no-direct-mutation-state": "error",
+ // [correctness] Disallow usage of findDOMNode
+ "react/no-find-dom-node": "error",
+ // [correctness] Disallow usage of isMounted
+ "react/no-is-mounted": "error",
+ // [correctness] Disallow usage of the return value of ReactDOM.render
+ "react/no-render-return-value": "error",
+ // [correctness] Disallow using string references
+ "react/no-string-refs": "error",
+ // [correctness] Disallow this from being used in stateless functional components
+ "react/no-this-in-sfc": "error",
+ // [correctness] Disallow usage of unsafe lifecycle methods
+ "react/no-unsafe": "error",
+ // [correctness] Disallow usage of setState in componentWillUpdate
+ "react/no-will-update-set-state": "error",
+ // [correctness] Disallow void DOM elements (e.g. , ) from receiving children
+ "react/void-dom-elements-no-children": "error",
+ // [correctness] (✅ recommended) (💡 suggestion) (💭 needs type info)
+ "typescript/await-thenable": "error",
+ // [correctness] (✅ recommended) (💡 suggestion) (💭 needs type info) Disallow using the delete operator on array values
+ "typescript/no-array-delete": "error",
+ // [correctness] (✅ recommended) (💭 needs type info) Require .toString() and .toLocaleString() to only be called on objects which provide useful information when stringified
+ "typescript/no-base-to-string": "error",
+ // [correctness] (✅ recommended) Disallow duplicate enum member values
+ "typescript/no-duplicate-enum-values": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) (💭 needs type info) Disallow duplicate constituents of union or intersection types
+ "typescript/no-duplicate-type-constituents": "error",
+ // [correctness] (✅ recommended) (🚧 planned autofix) Disallow extra non-null assertions
+ "typescript/no-extra-non-null-assertion": "error",
+ // [correctness] (✅ recommended) (💡 suggestion) (💭 needs type info) Require Promise-like statements to be handled appropriately
+ "typescript/no-floating-promises": "error",
+ // [correctness] (✅ recommended) (💭 needs type info) Disallow iterating over an array with a for-in loop
+ "typescript/no-for-in-array": "error",
+ // [correctness] (✅ recommended) (💭 needs type info) Disallow the use of eval()-like functions
+ "typescript/no-implied-eval": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) (💡 suggestion) (💭 needs type info) Disallow the void operator except when used to discard a value
+ "typescript/no-meaningless-void-operator": "error",
+ // [correctness] (✅ recommended) Enforce valid definition of new and constructor
+ "typescript/no-misused-new": "error",
+ // [correctness] (✅ recommended) (💡 suggestion) (💭 needs type info) Disallow using the spread operator when it might cause unexpected behavior
+ "typescript/no-misused-spread": "error",
+ // [correctness] (✅ recommended) (💡 suggestion) Disallow non-null assertions after an optional chain expression
+ "typescript/no-non-null-asserted-optional-chain": "error",
+ // [correctness] (✅ recommended) (💭 needs type info) Disallow members of unions and intersections that do nothing or override type information
+ "typescript/no-redundant-type-constituents": "error",
+ // [correctness] (✅ recommended) Disallow aliasing this
+ "typescript/no-this-alias": "error",
+ // [correctness] (✅ recommended) (💡 suggestion) Disallow unnecessary assignment of constructor property parameter
+ "typescript/no-unnecessary-parameter-property-assignment": "error",
+ // [correctness] (✅ recommended) Disallow unsafe declaration merging
+ "typescript/no-unsafe-declaration-merging": "error",
+ // [correctness] (✅ recommended) (💭 needs type info) Require unary negation to take a number
+ "typescript/no-unsafe-unary-minus": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) Disallow empty exports that don't change anything in a module file
+ "typescript/no-useless-empty-export": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) Disallow using confusing built-in primitive class wrappers
+ "typescript/no-wrapper-object-types": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) Enforce the use of as const over literal type
+ "typescript/prefer-as-const": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) Require using namespace keyword over module keyword to declare custom TypeScript modules
+ "typescript/prefer-namespace-keyword": "error",
+ // [correctness] (✅ recommended) (💭 needs type info) Require Array#sort and Array#toSorted calls to always provide a compareFunction
+ "typescript/require-array-sort-compare": "error",
+ // [correctness] (✅ recommended) (💭 needs type info) Enforce template literal expressions to be of string type
+ "typescript/restrict-template-expressions": "off",
+ // [correctness] (✅ recommended) Disallow certain triple slash directives in favor of ES6-style import declarations
+ "typescript/triple-slash-reference": "error",
+ // [correctness] (✅ recommended) (💭 needs type info) Enforce unbound methods are called with their expected scope
+ "typescript/unbound-method": "off", // [reason: Issues with lodash, sinon, etc]
+ // [correctness] (✅ recommended) (💡 suggestion) Disallow using await in Promise method parameters.
+ "unicorn/no-await-in-promise-methods": "off",
+ // [correctness] (✅ recommended) Disallow empty files.
+ "unicorn/no-empty-file": "error",
+ // [correctness] (✅ recommended) Disallow invalid options in fetch() and new Request().
+ "unicorn/no-invalid-fetch-options": "error",
+ // [correctness] (✅ recommended) Prevent calling EventTarget#removeEventListener() with the result of an expression.
+ "unicorn/no-invalid-remove-event-listener": "error",
+ // [correctness] (✅ recommended) (🚧 planned autofix) Disallow new Array().
+ "unicorn/no-new-array": "off",
+ // [correctness] (✅ recommended) (🛠️ autofix) Disallow passing single-element arrays to Promise methods.
+ "unicorn/no-single-promise-in-promise-methods": "error",
+ // [correctness] (✅ recommended) Disallow then property.
+ "unicorn/no-thenable": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) Disallow awaiting non-promise values.
+ "unicorn/no-unnecessary-await": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) Disallow useless fallback when spreading in object literals.
+ "unicorn/no-useless-fallback-in-spread": "off",
+ // [correctness] (✅ recommended) (🚧 planned autofix) Disallow useless array length check.
+ "unicorn/no-useless-length-check": "off",
+ // [correctness] (✅ recommended) (⚠️ 🛠️ dangerous autofix) Disallow unnecessary spread.
+ "unicorn/no-useless-spread": "off",
+ // [correctness] (✅ recommended) (🛠️ autofix) Prefer using Set#size instead of Array#length.
+ "unicorn/prefer-set-size": "error",
+ // [correctness] (✅ recommended) (🛠️ autofix) Prefer String#startsWith() & String#endsWith() over RegExp#test().
+ "unicorn/prefer-string-starts-ends-with": "off",
+ // [correctness] Enforce using .each or .for consistently
+ // "vitest/consistent-each-for": "error",
+ // [correctness] (💡 suggestion) Enforce hoisted APIs to be on top of the file
+ // "vitest/hoisted-apis-on-top": "error",
+ // [correctness] Disallow conditional tests
+ // "vitest/no-conditional-tests": "error",
+ // [correctness] (🚧 planned autofix) Require local Test Context for concurrent snapshot tests
+ // "vitest/require-local-test-context-for-concurrent-snapshots": "error",
+ // [correctness] Disallow .todo usage
+ // "vitest/warn-todo": "error",
+ // [correctness] Disallow using arrow functions to define watcher
+ // "vue/no-arrow-functions-in-watch": "error",
+ // [correctness] (🛠️ autofix) Disallow using deprecated destroyed and beforeDestroy lifecycle hooks (in Vue.js 3.0.0+)
+ // "vue/no-deprecated-destroyed-lifecycle": "error",
+ // [correctness] Disallow export in |