JSLint

javascript lint extension for glim framework

JSLint extension is used for auto javascript linting while the glim web server starts. It uses jslint npm module to run linting from command line.

Installation

  • install jslint from npm
npm install -g jslint

Configuration

  • Add the following config to the extensions config;
# app/config/<env>.py
config = {
	'extensions' : {
		'jslint': {
            'source': os.path.join(paths.APP_PATH, 'assets/js'),
        }
    },
	# ...
}

Roadmap

  • Autolint after file changes without server start
  • Show lint errors on served page