fixed linting rules and associated errors