-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow-named-functions option #17
Comments
I think both of those things are good suggestions. Documentation is certainly lacking. Adding the additional option should be fairly easy. This might be an argument to change our I'll work on this stuff and close / comment this issue when I have something. |
@TristonJ I see that there's PR that should add this option. Can it be merged soon? |
For now I have an override in Angular that disables on classProperties in certain files {
// See no-restricted-syntax
"files": ["*[.-]component.ts", "*[.-]interceptor.ts"],
"rules": {
// Angular hooks should be named functions
// https://github.com/mojohaus/extra-enforcer-rules/issues/186
"extra-rules/potential-point-free": "warn",
"prefer-arrow/prefer-arrow-functions": [
"error",
{
...preferArrowFunctionsConfig,
https://github.com/TristonJ/eslint-plugin-prefer-arrow/issues/17
"classPropertiesAllowed": false,
},
],
},
}, But I would like to be able to tell this plugin to ignore: |
typescript-eslint lists this plugin as the TSLint replacement for
only-arrow-functions
https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/ROADMAP.md
If that's the case then it's missing the
allow-named-functions
optionhttps://palantir.github.io/tslint/rules/only-arrow-functions/
I'd also very much appreciate a rule details page that describe why we would want to use the rule etc.
Much like typescript-eslint do
https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-inferrable-types.md
The text was updated successfully, but these errors were encountered: