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

cloudify-ui-common-configs

v1.3.0

Published

Common Cloudify UI tools configuration library

Downloads

449

Readme

Cloudify UI Common Configurations

npm

This package contains shared configuration for development tools:

  1. ESLint configurations - see eslint-*.json files
  2. TypeScript configurations - see tsconfig.*.json files
  3. Prettier configuration - see prettier-common.json file

Installation

npm install cloudify-ui-common-configs

More packages should be installed depending on the chosen configuration file you use. See details below.

Usage

ESLint

ESLint configs should be extended by every Cloudify UI project/module.

Usage

Once cloudify-ui-common-configs is installed as a dependency it is required to modify project's ESLint config (most probably .eslintrc or .eslintrc.json file) by adding the following entry (assuming ESLint config file is located in top level directory and it is a React project):

{
  "extends": ["./node_modules/cloudify-ui-common-configs/eslint-common-react.json"]
}

It is also required to install peer dependencies as specified in package.json. There are few configuration files that can be extended. The table below describes their purpose and dependencies necessary to be installed prior using each configuration file.

Note: eslint-common.json and eslint-common-jest.json don't extend AirBnB ESLint configuration, so they should not be used alone in the UI projects.

| Configuration file | Used for | Dependencies | |------------------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | eslint-ts-overrides.json | TypeScript-based projects | @typescript-eslint/eslint-plugin, @typescript-eslint/parser | | eslint-common.json | a base for other configs | eslint, eslint-config-prettier, eslint-plugin-import, eslint-plugin-prettier, eslint-plugin-no-unsanitized, eslint-plugin-security, eslint-plugin-security-node, eslint-plugin-xss | | eslint-common-react.json | React-based projects | all from eslint-config-airbnb and eslint-common.json and eslint-plugin-react, eslint-plugin-react-hooks, eslint-plugin-jsx-a11y | | eslint-common-node.json | Node-based projects | all from eslint-config-airbnb-base and eslint-common.json, eslint-plugin-node | | eslint-common-cypress.json | Cypress subprojects | all from eslint-config-airbnb-base and eslint-common.json, eslint-plugin-cypress, eslint-plugin-chai-friendly | | eslint-common-jest.json | Jest subprojects | eslint-plugin-jest | | eslint-common-backend.json | Backends | eslint-common-node.json, eslint-common-jest.json |

TypeScript

There are 3 possible base tsconfig.json files:

  1. tsconfig.base.json - contains compiler options that help maintain code quality. They allow using JavaScript and TypeScript in the same project.

    This configuration should be used for user-facing projects that do not need to be used as dependencies in other projects (not libraries).

  2. tsconfig.composite.json - extends tsconfig.base.json with settings necessary to allow generating declaration maps.

    This is useful for libraries, which are consumed by other user-facing projects.

  3. tsconfig.node.json- extends tsconfig.base.json with settings specific to ts-node projects.

To use an existing tsconfig as a base, specify the extends property in your tsconfig.json:

{
    "extends": "./node_modules/cloudify-ui-common-configs/tsconfig.base.json"
}

Prettier

Prettier config should be extended by every Cloudify UI project/module.

Once cloudify-ui-common-configs is installed as a dependency it is required to modify project's Prettier config (you should use JS version - .prettierrc.js file) by requiring common configuration the following way:

module.exports = require('./node_modules/cloudify-ui-common-configs/prettier-common.json');