npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

prettier-config-imp

v1.3.6

Published

prettier config extension

Downloads

8

Readme

Prettier

This packages is helpful for beautify your code with eslint/tslint rules and guidelines

To install package

npm i -g prettier-config-imp OR npm i prettier-config-imp --save

After Installation

prettier-config-imp --init OR node_module/.bin/prettier-config-imp

OR

npx prettier-config-imp

STEPS

After installation user will be prompted if they are using TSLINT, ESLINT or Vanillajs, Select according to your project type.

ESLINT

  1. After selecting ESLINT user will be prompted that is typescript exist (y/n)

1.i) if you enter 'y'. you are using ESLINT with typescript then following dependencies will be added to your package.json file

i) eslint :- A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease. Prettier cannot work independently. ii) eslint-config-prettier :- this config only turns rules off, so it only makes sense using it together with some other config. iii) eslint-config-react-lint :- it is used for eslint rules only iv) eslint-plugin-import :- This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, and prevent issues with misspelling of file paths and import names. All the goodness that the ES2015+ static module syntax intends to provide, marked up in your editor. v) eslint-plugin-prettier :- Runs Prettier as an ESLint rule and reports differences as individual ESLint issues.

1.i.i) you can manually change the rules :- 'open .eslintrc.js file and then add the rule which you want to change or off'

i.e :- "rules": { '@typescript-eslint/indent': [2, 2] }

1.ii) if you enter 'n'. you are using ESLINT without typescript then following dependencies will be added to your package.json file

i) eslint :- A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease. Prettier cannot work independently ii) eslint-config-prettier :- this config only turns rules off, so it only makes sense using it together with some other config. iii) eslint-config-angulars-lint :- it is used for eslint rules only iv) eslint-plugin-import :- This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, and prevent issues with misspelling of file paths and import names. All the goodness that the ES2015+ static module syntax intends to provide, marked up in your editor. v) eslint-plugin-prettier :- Runs Prettier as an ESLint rule and reports differences as individual ESLint issues.

Screenshot

1.ii.i) you can manually change the rules :- 'open .eslintrc file and then add the rule which you want to change or off'

i.e :- "rules": { "semi": [0, "never"], "quotes":[ 1, "single", "avoid-escape"] }

Screenshot

TSLINT

  1. if you are using TSLINT then following dependencies will be added to your package.json file

    1) tslint :- TSLint is an extensible static analysis tool that checks TypeScript code for readability, maintainability, and functionality errors. Prettier doesn't work independently so we need tslint. ii) tslint-plugin-prettier :- Runs Prettier as a TSLint rule and reports differences as individual TSLint issues.

    Screenshot

  2. you can manually change the rules :- 'open tslint.json file and then add the rule which you want to change or off'

    i.e :- "rules": { "semi": [0, "never"], "quotes":[ 1, "single", "avoid-escape"] }

    Screenshot

Vanillajs

  1. you can manually change the rules :- 'open prettier.config.js file and then add the rule which you want to modify

    i.e :- "module.exports"= { ...require('@prettier-config-imp'), semi: false }

    Screenshot

For removing package

prettier-config-imp remove

OR

node_module/.bin/prettier-config-imp remove