All Projects → praveenperera → spacemacs-prettier

praveenperera / spacemacs-prettier

Licence: other
Adds prettier-js formatter to spacemacs locally. Temporary solution until prettier-js is launched on MELPA

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to spacemacs-prettier

luozhu
Luozhu's practice in Front End Engineering and Components Development.
Stars: ✭ 28 (+75%)
Mutual labels:  prettier
react-component-library-lerna
Build your own React component library managed with lerna, presented with storybook and published in private npm registry.
Stars: ✭ 55 (+243.75%)
Mutual labels:  prettier
react-native-template-ts
[DEPRECATED] ⚛️ Start a new React Native project with TypeScript, Prettier & TSLint
Stars: ✭ 34 (+112.5%)
Mutual labels:  prettier
ying-template
这是一个基于 `webpack@^5.27.2` + `typescript@^4.2.3` + `@babel/core@^7.2.2` + `jest@^26.6.3` + `eslint@^7.22.0` 的多页面脚手架。
Stars: ✭ 125 (+681.25%)
Mutual labels:  prettier
prettier-eslint-atom
DEPRECATED IN FAVOR OF prettier-atom + ESLint integration
Stars: ✭ 64 (+300%)
Mutual labels:  prettier
prettier-webpack-plugin
Process your Webpack dependencies with Prettier
Stars: ✭ 47 (+193.75%)
Mutual labels:  prettier
vscode-react-javascript-snippets
Extension for React/Javascript snippets with search supporting ES7+ and babel features
Stars: ✭ 782 (+4787.5%)
Mutual labels:  prettier
node-backend-template
A template for NodeJS backend projects
Stars: ✭ 19 (+18.75%)
Mutual labels:  prettier
OSAPI
👋 OSAPI 是依靠通用性后台管理平台搭建的API管理平台,基于 vue3、Nestjs 技术栈实现,包含 RBAC 角色权限模块、数据展示、编辑等模块。
Stars: ✭ 32 (+100%)
Mutual labels:  prettier
prettier-markdown
Parse code blocks in markdown files and run prettier on them
Stars: ✭ 37 (+131.25%)
Mutual labels:  prettier
next.js-tailwindcss-template
Opinionated Next.js and TailwindCSS template.
Stars: ✭ 15 (-6.25%)
Mutual labels:  prettier
React-Native-Web-TypeScript-Prettier-Boilerplate
A starterkit to work with nextjs, react-native, storybook… all with prettified typescript and in a monorepo
Stars: ✭ 16 (+0%)
Mutual labels:  prettier
nextjs-baseweb
Slightly opinionated scaffold of Next.js and Base Web.
Stars: ✭ 46 (+187.5%)
Mutual labels:  prettier
expo-multi-screen-starter
react native / expo / react navigation v6
Stars: ✭ 74 (+362.5%)
Mutual labels:  prettier
gatsby-starter-antoine
My opinionated Gatsby.js starter
Stars: ✭ 17 (+6.25%)
Mutual labels:  prettier
eslint-config
My shared ESLint & Prettier configuration for projects
Stars: ✭ 12 (-25%)
Mutual labels:  prettier
eslint-config-adjunct
A reasonable collection of plugins to use alongside your main esLint configuration
Stars: ✭ 39 (+143.75%)
Mutual labels:  prettier
vite-react-ts-tailwind-firebase-starter
Starter using Vite + React + TypeScript + Tailwind CSS. And already set up Firebase(v9), Prettier and ESLint.
Stars: ✭ 108 (+575%)
Mutual labels:  prettier
cosmos-nvim
A must-have configuration for Spacemacs users after defecting to Vim
Stars: ✭ 62 (+287.5%)
Mutual labels:  spacemacs
react16-seed-with-apollo-graphql-scss-router4-ssr-tests-eslint-prettier-docker-webpack3-hot
Seed to create your own project using React with Apollo GraphQL client
Stars: ✭ 19 (+18.75%)
Mutual labels:  prettier

Deprecated

This package is no longer needed as prettier-js was added to MELPA

  • To install the MELPA package add prettier-js to dotspacemacs-additional-packages in your spacemacs file.


Instructions

  1. Clone this project into ~/.emacs.d/private/
  2. Add ~/.emacs.d/private/ to dotspacemacs-configuration-layer-path
  3. Add spacemacs-prettier to dotspacemacs-configuration-layers
  4. Install prettier-js yarn global add prettier or npm i -g prettier

Enable on-save

If you want prettier to run on save you need to add the hooks to your favourite javascript mode(s) into your .spacemacs file

(add-hook 'js2-mode-hook 'prettier-js-mode)
(add-hook 'web-mode-hook 'prettier-js-mode)
...

Optional Args

You can set prettier arguments in your .spacemacs file:

  ;; prettier settings
  (setq prettier-js-args '(
    "--trailing-comma" "all"
    "--bracket-spacing" "false"
  ))
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].