DocSpace-client/packages/shared/.eslintrc.cjs

68 lines
1.7 KiB
JavaScript
Raw Normal View History

2023-11-24 07:43:45 +00:00
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: [
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
],
parserOptions: {
project: "tsconfig.eslint.json",
tsconfigRootDir: __dirname,
sourceType: "module",
},
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "react"],
rules: {
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/ban-types": "off",
"jsx-a11y/label-has-associated-control": "off",
2023-11-24 07:43:45 +00:00
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/anchor-is-valid": "off",
2023-11-24 07:43:45 +00:00
"react/react-in-jsx-scope": "off",
"react/function-component-definition": "off",
2023-11-24 07:43:45 +00:00
"react/jsx-props-no-spreading": "off",
"consistent-return": "off",
"no-param-reassign": "off",
2023-11-24 07:43:45 +00:00
"no-nested-ternary": "off",
"prefer-destructuring": "off",
"no-return-assign": "off",
// "no-unneeded-ternary": "off",
2023-12-04 07:01:56 +00:00
"react/require-default-props": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
2023-11-24 07:43:45 +00:00
},
2024-02-05 10:21:23 +00:00
ignorePatterns: [
"./tsconfig.json",
"coverage/**",
"storybook-static/**",
2024-02-14 08:04:06 +00:00
"components/scrollbar/custom-scrollbar/**",
2024-02-05 10:21:23 +00:00
],
2023-11-24 07:43:45 +00:00
};