Creating a .jshintrc
file is not necessary.
If you are using ECMAScript 6 then all you need to do is tell JSHint that:
- Go to File > Settings
- Navigate to Languages & Frameworks > JavaScript > Code Quality Tools > JSHint.
- Scroll down to find Warn about incompatibilities with the specified ECMAScript version.
- Click on Set.
- Enter 6 and then press [Set].
- Click [OK]