Skip to content

Atom package that transforms pieces of JavaScript code

License

Notifications You must be signed in to change notification settings

gimenete/dakota

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dakota package

Atom package that transforms pieces of JavaScript code

dakota

Put the cursor inside a template string, a string literal or an arrow function and press shift-alt-d

Supported transforms

  • An arrow function without a block statement is transformed into an arrow function with block statement and a return statement
  • An arrow function with one statement being a return statement is transformed into an arrow function without braces and return
  • A template string is transformed into a regular literal string
  • A regular literal string is transformed into a template string

TODO

  • Make the code style configurable (semi colons, quotes, etc.)
  • Add more transforms (ES6/ES6 imports and exports for example)

About

Atom package that transforms pieces of JavaScript code

Resources

License

Stars

Watchers

Forks

Packages

No packages published