6eb52c9a65
* Converted app.scss * Made a start converting styles.scss * commenting out unused colours - test for now * restoring font-family * Added correct text colour and height to top level elements * Eth connect button styling * Truncated wallet key on staking screen (had been causing overflow) * Tranches Scss to tailwind * Withdraw form Scss to tailwind * Part way done with staking Scss to tailwind * Removed redundant containerClass prop from epoch-countdown * Cleanup of colors part 1 * Ran prettier * Changes from the MR - removed epoch-countdown styles (apart from blueprint, which has moved to styles.scss) * Changes from mr - removed extra button size classes (to be replaced with a prop later) * Changes from mr - allow Tailwind's default list styles. Added role="list" for accessibility * Border-box applied via wildcard again * MR tweaks * Removing the eslint warning for using role="list" on unstyled lists * Correctly naming the jsx-ally plugin in the eslintrc file so that rules were correctly applied * Removed redundant 'list-none' classes as Tailwind applies this by default for lists
76 lines
1.9 KiB
JSON
76 lines
1.9 KiB
JSON
{
|
|
"root": true,
|
|
"ignorePatterns": ["**/*"],
|
|
"plugins": ["@nrwl/nx", "eslint-plugin-unicorn", "jsx-a11y"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
"rules": {
|
|
"@nrwl/nx/enforce-module-boundaries": [
|
|
"error",
|
|
{
|
|
"enforceBuildableLibDependency": true,
|
|
"allow": [],
|
|
"depConstraints": [
|
|
{
|
|
"sourceTag": "*",
|
|
"onlyDependOnLibsWithTags": ["*"]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"unicorn/filename-case": [
|
|
"error",
|
|
{
|
|
"case": "kebabCase",
|
|
"ignore": ["\\[[a-zA-Z]+\\]\\.page"]
|
|
}
|
|
],
|
|
"no-restricted-imports": [
|
|
"warn",
|
|
{
|
|
"name": "lodash",
|
|
"message": "Import the specific methods you need from lodash e.g. `import get from 'lodash/get'`. This helps with bundle sizing."
|
|
}
|
|
],
|
|
"jsx-a11y/no-redundant-roles": [
|
|
"error",
|
|
{
|
|
"ul": ["list"],
|
|
"ol": ["list"]
|
|
}
|
|
],
|
|
"curly": "warn"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.ts", "*.tsx"],
|
|
"extends": ["plugin:@nrwl/nx/typescript"],
|
|
"rules": {
|
|
"@typescript-eslint/ban-ts-comment": [
|
|
"error",
|
|
{
|
|
"ts-expect-error": "allow-with-description",
|
|
"ts-ignore": "allow-with-description",
|
|
"ts-nocheck": true,
|
|
"ts-check": false,
|
|
"minimumDescriptionLength": 10
|
|
}
|
|
],
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
"error",
|
|
{
|
|
"prefer": "type-imports",
|
|
"disallowTypeAnnotations": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.js", "*.jsx"],
|
|
"extends": ["plugin:@nrwl/nx/javascript"],
|
|
"rules": {}
|
|
}
|
|
]
|
|
}
|