mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-01-12 22:53:42 +08:00
* Add storage seedphrase * add 12 word seedphrase error message check * add error message check for 24 word seedphrase * optimize code, add switch 12 to 24 seedphrase test case * add confirm address copy and save address in file * [ENG-4031] Implement Sharding for test execution * Add Lock and login flow * Added attributes to elements in the homedashboard for better locators * fix: prefer data-testid over id, and aria-label for options button * Use static method (#187) * [ENG-3979] Implement Smoketest execution for PR build --------- Co-authored-by: DuskaT021 <aleksa2601@gmail.com> Co-authored-by: Tim Man <tim@secretkeylabs.com> Co-authored-by: Eduard Bardají Puig <ebardaji@gmail.com>
76 lines
1.8 KiB
JSON
76 lines
1.8 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"plugin:react/recommended",
|
|
"airbnb",
|
|
"airbnb-typescript",
|
|
"airbnb/hooks",
|
|
"prettier",
|
|
"plugin:@tanstack/eslint-plugin-query/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module",
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"plugins": ["react", "prettier", "eslint-plugin-no-inline-styles", "@tanstack/query"],
|
|
"rules": {
|
|
"consistent-return": "off",
|
|
"no-await-in-loop": "off",
|
|
"import/prefer-default-export": 1,
|
|
"no-restricted-imports": [
|
|
"warn",
|
|
{
|
|
"patterns": ["@secretkeylabs/xverse-core/**/*"]
|
|
}
|
|
],
|
|
"no-promise-executor-return": "warn",
|
|
"max-len": "off",
|
|
"no-inline-styles/no-inline-styles": 2,
|
|
"no-nested-ternary": "off",
|
|
"no-param-reassign": "off",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"react/jsx-key": "warn",
|
|
"react/jsx-props-no-spreading": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/require-default-props": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"vars": "all",
|
|
"args": "after-used",
|
|
"ignoreRestSiblings": true,
|
|
"argsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"no-plusplus": "off",
|
|
"@tanstack/query/exhaustive-deps": 1,
|
|
"import/order": 0
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["tests/**/*.{js,jsx,ts,tsx}"],
|
|
"plugins": ["playwright"],
|
|
"extends": ["plugin:playwright/playwright-test"],
|
|
"rules": {
|
|
"playwright/expect-expect": "off"
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"],
|
|
"moduleDirectory": ["node_modules", "src/"]
|
|
}
|
|
}
|
|
}
|
|
}
|