packages/ds/.eslintrc.js
// eslint-disable-next-line no-undef
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
},
globals: {
JSX: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
overrides: [],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "react-hooks", "@typescript-eslint", "prettier"],
rules: {
"react/prop-types": 0,
"prettier/prettier": ["warn"],
"no-unused-vars": "off",
"no-async-promise-executor": "warn",
"react/no-unescaped-entities": "off",
"react-hooks/rules-of-hooks": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "warn",
},
settings: {
react: {
version: "detect",
},
},
};