amplify-backend icon indicating copy to clipboard operation
amplify-backend copied to clipboard

Lint rule for `\n`

Open edwardfoyle opened this issue 1 year ago • 0 comments

Description

In most cases, we should use os.EOL instead of \n for consistency across os platforms. I'm not sure if it's possible to write an AST selector for this, but if it is, we should have a lint rule to check this. If an AST selector is not possible, we can create a custom lint rule

edwardfoyle avatar Apr 12 '24 18:04 edwardfoyle