UNPKG

@applica-software-guru/crud-client

Version:

Libreria per l'accesso ai servizi REST di Applica.

169 lines (168 loc) 4.25 kB
{ "env": { "browser": true, "es2021": true }, "extends": [ "prettier", "plugin:react/jsx-runtime", "plugin:jsx-a11y/recommended", "plugin:react-hooks/recommended", "eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended" ], "ignorePatterns": ["build/**", "node_modules/**", "dist/**"], "overrides": [ { "files": ["src/tests/*.{js,jsx,ts,tsx}"], "rules": { "filenames/match-regex": ["error", "test$", true] } }, { "files": ["src/tests/config.ts"], "rules": { "filenames/match-regex": "off" } }, { "files": ["*.{ts,tsx}"], "rules": { "no-unused-vars": "off" } }, { "files": ["vite.config.mjs"], "rules": { "import/no-default-export": "off" } } ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "impliedStrict": true, "jsx": true, "tsx": true }, "ecmaVersion": "latest", "sourceType": "module" }, "plugins": ["prettier", "react", "react-hooks", "sort-exports", "import", "export", "filenames"], "root": true, "rules": { "@typescript-eslint/no-explicit-any": "off", "consistent-return": "error", "func-style": [ "error", "declaration", { "allowArrowFunctions": false } ], "import/exports-last": "error", "import/group-exports": "error", "import/no-cycle": "off", "import/no-default-export": "error", "import/no-extraneous-dependencies": "off", "import/no-named-as-default": "error", "import/order": "off", "jsx-a11y/anchor-is-valid": "off", "jsx-a11y/no-autofocus": "off", "lines-between-class-members": [ "error", "always", { "exceptAfterSingleLine": true } ], "no-console": "off", "no-duplicate-imports": "error", "no-param-reassign": "off", "no-restricted-imports": [ "error", { "message": "Please use the @applica-software-guru/react-admin package instead.", "name": "react-admin" }, { "message": "Please use the @applica-software-guru/react-admin package instead.", "name": "ra-ui-materialui" } ], "no-restricted-syntax": [ "error", { "message": "Require statements are not allowed, use import/export instead.", "selector": "CallExpression[callee.name='require']" } ], "no-shadow": "off", "no-undef": "off", "no-unused-vars": [ "error", { "ignoreRestSiblings": false } ], "one-var": ["error", "never"], "one-var-declaration-per-line": ["error", "initializations"], "prefer-destructuring": "off", "prettier/prettier": [ "warn", { "bracketSpacing": true, "endOfLine": "auto", "printWidth": 120, "singleQuote": true, "tabWidth": 2, "trailingComma": "none", "useTabs": false } ], "react/display-name": "off", "react/forbid-prop-types": "off", "react/jsx-filename-extension": "off", "react/jsx-fragments": "error", "react/jsx-no-leaked-render": "error", "react/jsx-pascal-case": "error", "react/jsx-props-no-multi-spaces": "error", "react/jsx-props-no-spreading": "off", "react/jsx-uses-react": "error", "react/jsx-uses-vars": "error", "react/no-array-index-key": "off", "react/prop-types": 0, "react/react-in-jsx-scope": "off", "react/require-default-props": "off", "react/self-closing-comp": "error", "sort-exports/sort-exports": [ "error", { "sortDir": "asc" } ], "sort-imports": [ "error", { "ignoreCase": false, "ignoreDeclarationSort": true, "ignoreMemberSort": false, "memberSyntaxSortOrder": ["none", "all", "multiple", "single"] } ] }, "settings": { "import/resolver": { "node": { "moduleDirectory": ["node_modules", "src/"] } }, "react": { "fragment": "Fragment", "pragma": "React", "version": "detect" } } }