eslint-plugin-no-func-space

custom eslint rules, no space between 'function' and '()'.

Usage no npm install needed!

<script type="module">
  import eslintPluginNoFuncSpace from 'https://cdn.skypack.dev/eslint-plugin-no-func-space';
</script>

README

eslint-plugin-no-func-space

custom ESLint rule, ckeck function/*no space here!!*/()

Rule Details

The following patterns are considered warnings:

var a = function (){}
var a = function () {}
(function () {})()
(function () {}())

The following patterns are not warnings:

var a = function(){}
var a = function() {}
(function() {})()
(function() {}())

Usage

plugins:
  - no-func-space

rules:
  # Plugins
  no-func-space/no-func-space : 2

License

MIT