* Updated Typescript types. * Typefixes after merge with release. * chore: GenericApiResponse Removed alltogether. * chore: resolved ApiResponse unknown errors removed PageListPayload. * Added shouldBeDefined. * fix: Resolved type errors. * fix: Typescript upgrade to 4.5 and type fixes. * feat: upgrade to cra 5 * feat: uncomment service worker registeration * force secure websocket protocol * jest test fixes * fix: react function lint rule removed * fix: klona test case. * fix: typescirpt issues resolved * fix: timeout for colorpicker test and change env. * feat: update client-build.yml file * fix: remove brotliplugin use compression plugin * fix: build config fixed * fix: upgrade webpack plugin * fix: add branchbutton test to todo. * fix: remove branch button test. * fix: Add tailwind theme values, fix cypress tests * fix: Typescript type fixes. * feat: run jest tests in silent mode * fix: cypress rgb values add branchbutton jest test * fix: review comments, fixes for error.message * fix: increase cache size for the workbox * fix: remove OrgApi.ts file * fix: cypress.json file remove credentials * fix: downgrade react and react-dom packages Co-authored-by: rahulramesha <rahul@appsmith.com>
59 lines
2.1 KiB
JSON
59 lines
2.1 KiB
JSON
// This JSON file configures the eslint plugin. It supports comments as well as per the JSON5 spec
|
|
{
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["react", "@typescript-eslint", "prettier", "react-hooks","sort-destructure-keys", "cypress"],
|
|
"extends": [
|
|
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier/@typescript-eslint",
|
|
"plugin:cypress/recommended",
|
|
// Note: Please keep this as the last config to make sure that this (and by extension our .prettierrc file) overrides all configuration above it
|
|
// https://www.npmjs.com/package/eslint-plugin-prettier#recommended-configuration
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features
|
|
"sourceType": "module", // Allows for the use of imports
|
|
"ecmaFeatures": {
|
|
"jsx": true // Allows for the parsing of JSX
|
|
}
|
|
},
|
|
"rules": {
|
|
"@typescript-eslint/no-explicit-any": 0,
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"@typescript-eslint/no-use-before-define": 0,
|
|
"@typescript-eslint/no-var-requires": 0,
|
|
"import/no-webpack-loader-syntax": 0,
|
|
"no-undef": 0,
|
|
"react/prop-types": 0,
|
|
"react/display-name": 0,
|
|
"@typescript-eslint/explicit-module-boundary-types": 0,
|
|
"cypress/no-unnecessary-waiting": 0,
|
|
"cypress/no-assigning-return-values": 0,
|
|
"react/jsx-boolean-value": "error",
|
|
"react/self-closing-comp": "error",
|
|
"react/jsx-sort-props": "error",
|
|
"react/jsx-fragments": "error",
|
|
"react/jsx-no-useless-fragment": "error",
|
|
"sort-destructure-keys/sort-destructure-keys": ["error", {"caseSensitive": false}],
|
|
"no-console": "warn",
|
|
"no-debugger": "warn"
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"babel-module": {}
|
|
},
|
|
"react": {
|
|
"pragma": "React",
|
|
// Tells eslint-plugin-react to automatically detect the version of React to use
|
|
"version": "detect"
|
|
}
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"cypress/globals": true,
|
|
"worker": true
|
|
}
|
|
}
|