Add a script to package.json that allows to fix linter errors with the help of eslint --fix.
package.json
eslint --fix