eslint-plugin
eslint-plugin copied to clipboard
more rules candidates
Also max-len, which will be hard.
Do we need to consider indent if we implement "max-len"?
every rule should be standalone. that's means it could not depend on rule indent.
related issue: https://github.com/eslint/eslint/issues/11325
If we implement "max-len", I think I don't need to use Prettier in other projects any more.
Should we add autofix for "no-unreachable"?
Does no-async-promise-executor need to be fixed?
no-unreachabl sounds good to me!
not very sure about no-async-promise-executor. :(
我们不妨去 ESLint 的列表找找哪些规则还没有 autofix 的,然后看看哪些值得去实现,接着在这个 repo 针对每个规则单独开 issue 进行讨论(实现思路),如果讨论没问题就打个 accepted 的 label,如果思路不可行就直接关闭掉 issue。你怎么看?
可以,优先考虑在 eslint:recommended 中的规则
我不确定还要不要实现 max-len 的 autofix,因为修复出来的结果往往是 opinionated 的,而我们也许不能保证这是不是用户想要的结果。
- sort-keys
refs: https://github.com/eslint/eslint/issues/11542
How about no-lone-blocks?`https://eslint.org/docs/rules/no-lone-blocks
@mekwall sounds good to me!
Someone implemented sort-keys but it was a year ago https://www.npmjs.com/package/eslint-plugin-sort-keys-fix
any updates on max-len?
Please add max-len. Its the only thing holding me (and it seems others) back from throwing Prettier out …