-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into carralerocristianx/core-244-implementar-carga…
…-lazy-para-el-roster
- Loading branch information
Showing
79 changed files
with
2,884 additions
and
2,726 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
import {fixupConfigRules, fixupPluginRules} from "@eslint/compat" | ||
import prettier from "eslint-plugin-prettier" | ||
import writeGoodComments from "eslint-plugin-write-good-comments" | ||
import functional from "eslint-plugin-functional" | ||
import promise from "eslint-plugin-promise" | ||
import tsParser from "@typescript-eslint/parser" | ||
import path from "node:path" | ||
import {fileURLToPath} from "node:url" | ||
import js from "@eslint/js" | ||
import {FlatCompat} from "@eslint/eslintrc" | ||
import sonarjs from "eslint-plugin-sonarjs" | ||
import noUseExtendNative from "eslint-plugin-no-use-extend-native" | ||
import love from "eslint-config-love" | ||
|
||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = path.dirname(__filename) | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}) | ||
|
||
export default [ | ||
{ | ||
files: ["**/*.ts", "**/*.tsx"], | ||
ignores: [ | ||
"**/dist", | ||
"**/.github", | ||
"**/.storybook", | ||
"src/stories/**", | ||
"**/github", | ||
"**/vite.config.ts", | ||
"!**/.storybook¡", | ||
"**/commitlint.config.ts", | ||
"**/node_modules", | ||
"**/index.html", | ||
"**/postcss.config.js", | ||
], | ||
}, | ||
...fixupConfigRules( | ||
compat.extends( | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:storybook/recommended", | ||
"plugin:prettier/recommended", | ||
"eslint-config-prettier", | ||
"plugin:tailwindcss/recommended", | ||
"plugin:github/react", | ||
"plugin:unicorn/recommended", | ||
"plugin:deprecation/recommended", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:import/typescript", | ||
"plugin:regexp/recommended" | ||
) | ||
), | ||
{ | ||
plugins: { | ||
"prettier": fixupPluginRules(prettier), | ||
"write-good-comments": fixupPluginRules(writeGoodComments), | ||
"functional": fixupPluginRules(functional), | ||
"promise": fixupPluginRules(promise), | ||
"sonarjs": fixupPluginRules(sonarjs), | ||
"noUseExtendNative": fixupPluginRules(noUseExtendNative), | ||
"love": fixupConfigRules(love), | ||
}, | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
|
||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
project: "./tsconfig.json", | ||
}, | ||
}, | ||
|
||
settings: { | ||
"react": { | ||
version: "detect", | ||
}, | ||
|
||
"import/extensions": [".ts", ".tsx"], | ||
|
||
"import/resolver": { | ||
node: { | ||
extensions: [".ts", ".tsx"], | ||
}, | ||
}, | ||
}, | ||
|
||
rules: { | ||
"prettier/prettier": "error", | ||
"@typescript-eslint/quotes": "off", | ||
"@typescript-eslint/space-before-function-paren": "off", | ||
"@typescript-eslint/strict-boolean-expressions": "off", | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"operator-linebreak": "off", | ||
"multiline-ternary": "off", | ||
"react/no-children-prop": "off", | ||
"prefer-regex-literals": "off", | ||
"no-useless-escape": "off", | ||
"@typescript-eslint/no-non-null-assertion": "warn", | ||
"@typescript-eslint/no-floating-promises": "warn", | ||
"no-new": "off", | ||
"sonarjs/cognitive-complexity": ["error", 17], | ||
"unicorn/filename-case": ["off"], | ||
"unicorn/prevent-abbreviations": ["off"], | ||
"unicorn/no-nested-ternary": "off", | ||
"unicorn/no-null": ["off"], | ||
"unicorn/prefer-code-point": "off", | ||
|
||
"write-good-comments/write-good-comments": [ | ||
"warn", | ||
{ | ||
passive: false, | ||
whitelist: ["read-only"], | ||
}, | ||
], | ||
|
||
"@typescript-eslint/no-throw-literal": "off", | ||
"promise/always-return": "off", | ||
"unicorn/number-literal-case": "off", | ||
"unicorn/prefer-spread": "off", | ||
"jsx-a11y/media-has-caption": [0], | ||
"unicorn/prefer-global-this": "off", | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"error", | ||
{ | ||
allowExpressions: true, | ||
}, | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
args: "all", | ||
argsIgnorePattern: "^_", | ||
caughtErrors: "all", | ||
caughtErrorsIgnorePattern: "^_", | ||
destructuredArrayIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.