![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
@codacy/ui-components
Advanced tools
Codacy ui-components is a component library and design guide built to help us create the best experience for the Codacy platform.
Readme
Codacy ui-components is a component library and design guide built to help us create the best experience for the Codacy platform.
Visit our Storybook documentation to learn more.
ThemeProvider
yarn
To run storybook locally as a development environment use the following command:
yarn storybook
To build the components library for publishing run the following:
yarn build
yarn test
You can also run the tests in watch mode by running:
yarn test:watch
Running storybook locally doesn't type-check. You can run the type-checking with the following command:
yarn check-types
You can also run the type-checking in watch mode by running:
yarn check-types:watch
There's a template for new components. You can create the base structure for a new component just by running:
./make_component.sh [your component name here]
For example: ./make_component.sh Input
.
We use babel for the build process using the react-app preset as well as the typescript compiler for the declarations output.
However take note that storybook uses its own webpack and babel configurations, even though they match the react-app preset, any other configurations might need adding in both .storybook/webpack.config.js and .babelrc
You might want these extensions for linting, code style, MDX support, and styled-components highlighting:
VSCode by default uses its own version of typescript for typechecking instead of the workspace's. The ESLint Visual Studio Code extension currently doesn't have TypeScript support enabled by default. You can also run Prettier to format your code on save.
For these reasons here's an example settings file for vscode. Add the following to your project's Visual Studio Code settings file, located at .vscode/settings.json (you can create this file if it doesn't already exist):
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "markdown", "mdx"],
"[javascript]": {
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.formatOnSave": true
},
"[markdown]": {
"editor.formatOnSave": true
},
"[mdx]": {
"editor.formatOnSave": true
}
}
Codacy is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.
Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.
Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.
Codacy is free for Open Source projects.
FAQs
Codacy ui-components is a component library and design guide built to help us create the best experience for the Codacy platform.
The npm package @codacy/ui-components receives a total of 165 weekly downloads. As such, @codacy/ui-components popularity was classified as not popular.
We found that @codacy/ui-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.