Updated linting scripts and fixed linting errors