🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter with built-in ESLint and Babel support for js, jsx typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏
MIT License
Bot releases are hidden (Show)
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Just added new exit code CANNOT_LINT_STAGED
:
assert
to with
This feature would ideally use the
with
keyword to denote attributes, but there are existing implementations based on a previous version of the proposal using theassert
keyword. Due to potential web compatibility risks, the proposal still includesassert
marked as deprecated. Usage of the old syntax is discouraged, and its removal is being investigated.(c) tc39
The "import assertions" proposal's syntax changed to use the
with
keyword instead ofassert
, and it has also been renamed to "import attributes".(c) Babel
Before:
import x1 from 'y' assert {type: 'json'};
import("foo.json", { assert: { type: "json" } });
After:
import x2 from 'y' with {type: 'json'};
import("foo.json", { with: { type: "json" } });
Checkout in 🐊Putout Editor.
New syntax is not support for now by node.js
and chrome
, they supports assertions anyways it will be useful in a future.
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago
Published by coderaiser over 1 year ago