eslint-plugin-align-assignments
eslint-plugin-align-assignments copied to clipboard
Scenario :  Error :  This seems to work if I split the code into two different...
Feel free to modify it as required. ``` const hasRequire= /require\(/u; const spaceMatcher= /(?\s*)(?(?:\+|-|\*|\/|%|&|\^|\|||\*\*|>>>)?=)/u; const assignmentTokens= new Set ([ `>>>=`, `=`, `**=`, `&&=`, `||=`, `??=`, `+=`, `-=`, `*=`, `/=`, `%=`,...
Logical assignment operators such as `||=` and `&&=` are not supported
Edit: I also noticed it shows the error "Definition for rule 'align-assignments/align-assignments' was not found." with the plugin enabled. In .eslintrc.json I have: ``` "plugins": [ *** "align-assignments", *** ],...
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@ChALkeR). Fix boolean schemas with strictKeywords...
No detection/alignment of: ```typescript type MyType = [number, string, string]; type MyOtherType = [string, number]; ```
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...
This PR fixes an issue which affected destructuring assignment described in #13.
This patch causes the new assignment operators `??=`, `||=`, `&&=` defined in https://tc39.es/ecma262/ to be recognised and aligned by the parser.
First, very many thanks for writing this package. I have been looking for a way to enforce aligned assignment in eslint for over a year. I am finding that supplying...