eslint-plugin-coffee-scope

1.0.1 • Public • Published

eslint-plugin-coffee-scope

const for coffeescript. requires eslint-plugin-coffee

npm i -D eslint-plugin-coffee eslint-plugin-coffee-scope

usage

module.exports = {
	plugins: ['coffee', 'coffee-scope'],
	parser: 'eslint-plugin-coffee',
	rules: {
		'coffee-scope/const': 'error'
	}
}

code treated as an error with this rule

variable = 10

variable = 20 # "Can't reassign variable 'variable'"

func = ->
	variable = 30 # "Can't reassign variable 'variable'"

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-coffee-scope

Weekly Downloads

18

Version

1.0.1

License

ISC

Unpacked Size

4.44 kB

Total Files

5

Last publish

Collaborators

  • quarterto