Skip to content

Instantly share code, notes, and snippets.

@bbarry
Created March 26, 2020 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbarry/897b67fba8bce502ac42d8e57092c9a0 to your computer and use it in GitHub Desktop.
Save bbarry/897b67fba8bce502ac42d8e57092c9a0 to your computer and use it in GitHub Desktop.
module.exports = {
plugins: [
"@typescript-eslint"
],
rules: {
"no-restricted-syntax": [
"error",
{
"selector": "TSEnumDeclaration[const=true]",
"message": "Don't declare const enums"
},
{
"selector": "TSExportAssignment",
"message": "Don't use export ="
},
{
"selector": "TSImportEqualsDeclaration",
"message": "Don't use import ="
}
],
"@typescript-eslint/consistent-type-assertions": [// is this right?
"error",
{
"assertionStyle": "as",
"objectLiteralTypeAssertions": "allow"
}
],
"@typescript-eslint/no-namespace": "error",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment