2022-04-21 14:52:54 +00:00
|
|
|
{
|
2022-08-27 22:20:45 +00:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true,
|
2024-10-19 13:33:55 +00:00
|
|
|
"jest": true,
|
|
|
|
"node": true
|
2022-08-27 22:20:45 +00:00
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"standard-with-typescript",
|
|
|
|
"prettier"
|
|
|
|
],
|
|
|
|
"overrides": [],
|
2022-04-21 14:52:54 +00:00
|
|
|
"parserOptions": {
|
2022-08-27 22:20:45 +00:00
|
|
|
"ecmaVersion": "latest",
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"sourceType": "module",
|
|
|
|
"project": "./tsconfig.json"
|
2022-04-21 14:52:54 +00:00
|
|
|
},
|
2023-10-27 10:01:59 +00:00
|
|
|
"ignorePatterns": ["index.js", "**/PaymentMethods/Icons/code/code.js"],
|
2022-09-20 17:39:49 +00:00
|
|
|
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
|
2022-04-21 14:52:54 +00:00
|
|
|
"rules": {
|
|
|
|
"react-hooks/rules-of-hooks": "error",
|
2023-10-27 10:01:59 +00:00
|
|
|
"react-hooks/exhaustive-deps": "off",
|
2022-05-11 11:27:11 +00:00
|
|
|
"react/prop-types": "off",
|
2023-10-27 10:01:59 +00:00
|
|
|
"react/react-in-jsx-scope": "off",
|
2023-12-22 12:58:59 +00:00
|
|
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
2023-10-27 10:01:59 +00:00
|
|
|
"@typescript-eslint/naming-convention": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"selector": "variableLike",
|
|
|
|
"format": ["camelCase", "snake_case", "PascalCase", "UPPER_CASE"],
|
|
|
|
"leadingUnderscore": "allow"
|
|
|
|
}
|
|
|
|
]
|
2022-04-21 14:52:54 +00:00
|
|
|
},
|
|
|
|
"settings": {
|
2022-08-27 22:20:45 +00:00
|
|
|
"import/resolver": {
|
|
|
|
"typescript": {}
|
|
|
|
},
|
2022-04-21 14:52:54 +00:00
|
|
|
"react": {
|
|
|
|
"version": "detect"
|
|
|
|
}
|
|
|
|
}
|
2022-09-20 17:39:49 +00:00
|
|
|
}
|