mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-14 18:47:32 +00:00
* Adding prettier file * Adding styled-components * Adding DELEGATE_CALL and optionally redirect to TXs tabs when calling createTransactions * Adding Apps tab * lazy loading apps tab * Fix: Dynamic load of Apps tab * Improve eslint-prettier config * Apps tabs: refactor and styling * remove harcoded gasLimit for production * review fixes Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
115 lines
2.1 KiB
Plaintext
115 lines
2.1 KiB
Plaintext
{
|
|
"extends": [
|
|
"airbnb",
|
|
"plugin:flowtype/recommended",
|
|
"plugin:jsx-a11y/recommended",
|
|
"plugin:prettier/recommended",
|
|
"prettier/react"
|
|
],
|
|
"parser": "babel-eslint",
|
|
"plugins": [
|
|
"jsx-a11y",
|
|
"jest",
|
|
"flowtype"
|
|
],
|
|
"rules": {
|
|
"react/jsx-filename-extension": [
|
|
1,
|
|
{
|
|
"extensions": [
|
|
".js",
|
|
".jsx"
|
|
]
|
|
}
|
|
],
|
|
"react/forbid-prop-types": [
|
|
1,
|
|
{
|
|
"forbid": [
|
|
"object",
|
|
"any"
|
|
]
|
|
}
|
|
],
|
|
"class-methods-use-this": 0,
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"consistent-return": "off",
|
|
"max-len": [
|
|
"error",
|
|
120,
|
|
2,
|
|
{
|
|
"ignoreUrls": true,
|
|
"ignoreComments": false,
|
|
"ignoreRegExpLiterals": true,
|
|
"ignoreStrings": true,
|
|
"ignoreTemplateLiterals": true
|
|
}
|
|
],
|
|
"import/no-unresolved": 0,
|
|
"import/no-extraneous-dependencies": 0,
|
|
"import/extensions": 0,
|
|
"import/prefer-default-export": 0,
|
|
"react/default-props-match-prop-types": [
|
|
"error",
|
|
{
|
|
"allowRequiredDefaults": true
|
|
}
|
|
],
|
|
// https://github.com/yannickcr/eslint-plugin-react/issues/1593 ^
|
|
"jsx-a11y/label-has-for": 0,
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"no-console": [
|
|
"error",
|
|
{
|
|
"allow": [
|
|
"warn",
|
|
"error"
|
|
]
|
|
}
|
|
],
|
|
"flowtype/require-valid-file-annotation": [
|
|
2,
|
|
"always",
|
|
{
|
|
"annotationStyle": "line"
|
|
}
|
|
],
|
|
"flowtype/generic-spacing": 0,
|
|
"jsx-a11y/anchor-is-valid": [
|
|
"error",
|
|
{
|
|
"components": [
|
|
"Link"
|
|
],
|
|
"specialLink": [
|
|
"to",
|
|
"hrefLeft",
|
|
"hrefRight"
|
|
],
|
|
"aspects": [
|
|
"noHref",
|
|
"invalidHref",
|
|
"preferButton"
|
|
]
|
|
}
|
|
],
|
|
"react/require-default-props": 0,
|
|
"react/no-array-index-key": 0,
|
|
"react/jsx-props-no-spreading": 0,
|
|
"react/state-in-constructor": 0
|
|
},
|
|
"env": {
|
|
"jest/globals": true,
|
|
"browser": true
|
|
}
|
|
} |