Skip to content

Instantly share code, notes, and snippets.

@subframe7536
Created July 23, 2023 02:22
Show Gist options
  • Select an option

  • Save subframe7536/43118bc1ecd3845401141f77c46eb028 to your computer and use it in GitHub Desktop.

Select an option

Save subframe7536/43118bc1ecd3845401141f77c46eb028 to your computer and use it in GitHub Desktop.
self use config for Rome
{
"$schema": "./node_modules/rome/configuration_schema.json",
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noNonNullAssertion": "off",
"useConst": "error",
"useBlockStatements": "error",
"useSingleCaseStatement": "error",
"useWhile": "off",
"noNegationElse": "error"
},
"correctness": {
"noUndeclaredVariables": "warn"
},
"suspicious": {
"noDebugger": "warn",
"noExplicitAny": "off",
"noEmptyInterface": "off"
},
"complexity": {
"useSimplifiedLogicExpression": "error"
},
"nursery": {
"noBannedTypes": "error",
"noDuplicateJsxProps": "error",
"useIsNan": "error",
"noSelfAssign": "error",
"useCamelCase": "error"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentSize": 2,
"lineWidth": 80
},
"files": {
"ignore": [
"node_modules/**",
"dist"
]
},
"javascript": {
"formatter": {
"trailingComma": "all",
"quoteStyle": "single",
"semicolons": "asNeeded",
"quoteProperties": "asNeeded"
},
"globals": [
"_"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment