Created
March 26, 2020 23:03
-
-
Save bbarry/897b67fba8bce502ac42d8e57092c9a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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