mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
switch to guts for typescript type generation omitempty vs null must now be explicit
49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
"files": {
|
|
"ignore": [
|
|
"e2e/provisionerGenerated.ts",
|
|
"e2e/google/protobuf/timestampGenerated.ts",
|
|
"src/api/countriesGenerated.ts",
|
|
"src/api/rbacresourcesGenerated.ts"
|
|
]
|
|
},
|
|
"linter": {
|
|
"rules": {
|
|
"a11y": {
|
|
"noSvgWithoutTitle": { "level": "off" },
|
|
"useButtonType": { "level": "off" },
|
|
"useSemanticElements": { "level": "off" }
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": { "level": "off" },
|
|
"noParameterAssign": { "level": "off" },
|
|
"useDefaultParameterLast": { "level": "off" },
|
|
"useSelfClosingElements": { "level": "off" }
|
|
},
|
|
"suspicious": {
|
|
"noArrayIndexKey": { "level": "off" },
|
|
"noConsoleLog": { "level": "error" },
|
|
"noThenProperty": { "level": "off" }
|
|
},
|
|
"nursery": {
|
|
"noRestrictedImports": {
|
|
"level": "error",
|
|
"options": {
|
|
"paths": {
|
|
"@mui/material": "Use @mui/material/<name> instead. See: https://material-ui.com/guides/minimizing-bundle-size/.",
|
|
"@mui/icons-material": "Use @mui/icons-material/<name> instead. See: https://material-ui.com/guides/minimizing-bundle-size/.",
|
|
"@mui/material/Avatar": "Use components/Avatar/Avatar instead.",
|
|
"@mui/material/Alert": "Use components/Alert/Alert instead.",
|
|
"@mui/material/Popover": "Use components/Popover/Popover instead.",
|
|
"@mui/material/Typography": "Use native HTML elements instead. Eg: <span>, <p>, <h1>, etc.",
|
|
"@mui/material/Box": "Use a <div> instead.",
|
|
"@mui/material/styles": "Import from @emotion/react instead.",
|
|
"lodash": "Use lodash/<name> instead."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|