jfmengels / eslint-plugin-fp

ESLint rules for functional programming
MIT License
970 stars 36 forks source link

`fp/no-unused-expression` with `'use strict'` #56

Open nfantone opened 2 years ago

nfantone commented 2 years ago

image

Consider making allowUseStrict options true by default (or making that part of plugin:fp/recommended). 'use strict' should never be flagged as an "unused expression".

nfantone commented 2 years ago

Same reasoning applies for module.exports on CJS.

Unallowed reassignment. You may want to activate the `commonjs` option for this ruleeslint(fp/no-mutation)

IMHO, this should be either baked into the plugin logic or be turned on by default.