ESLint: Using recommended default rules with angularjs applications
I can't speak to whether or not there was a code change between the time this SO article was entered but I am using "extends": ["eslint:recommended", "angular"]
in my .eslintrc
file and it is working fine. I have it at the same level as the "env"
property.
My package.json
file has eslint
and eslint-plugin-angular
versions 2.3.0 and 0.5.0, respectively.
If you are using TypeScript (like Angular2 is) you can use tslint.There are eslint rules for tslint and tslint-microsoft-contrib from Microsoft.
Finally, there's a rule set for Angular2: codelyzer