4
votes

Tslint has an rule no-string-literal rule is there an equivalent rule in eslint as well

I am using eslint and when I do ng lint it gives me error "object access via string literals is disallowed ", I will fix it manually now but I want to set rule in eslint config file so no one else working on code makes same mistake

1

1 Answers

2
votes

The equivalent rule in Eslint is dot-notation . See this page reference.

Also here is a corresponding table of rules between TSlint and Eslint.