
Security News
Free Certified Patch for Critical Rails Active Storage Vulnerability
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.
@harperfast/code-guidelines
Advanced tools
Coding Guidelines for Harper repositories. Includes types, linting, and formatting.
This repository contains code guideline tools and configurations for the Harper organization.
Currently exports shared configurations for Prettier, ESLint, and TS Node Type Checking. More tools will be added soon.
npm i --save-dev @harperfast/code-guidelines
Add "prettier": "@harperfast/code-guidelines/prettier" to package.json.
Run npx prettier .
We use Prettier for formatting. The default config is exported under the /prettier path (i.e. @harperfast/code-guidelines/prettier).
Review the Sharing Configurations documentation for more information how to use or extend the base config.
We use ESLint to enforce code quality and integrate Prettier formatting. The default config is exported under the /eslint path (i.e. @harperfast/code-guidelines/eslint).
You must create a local ESLint configuration that imports Harper's ESLint configuration, then you can extend or override the base configuration by adding your own rules.
For more detailed information about extending configurations, see the ESLint Configuration Files documentation.
npm i --save-dev @harperfast/code-guidelines eslint prettier
eslint.config.mjs file in your project root:import harperConfig from '@harperfast/code-guidelines/eslint';
import { defineConfig } from 'eslint/config';
export default defineConfig([
...harperConfig,
// Your custom configuration here
{
rules: {
// Override or add custom rules
},
},
]);
npx eslint .
TypeScript configuration files are available under the /tsconfig export path and can be used with the extends property in your own tsconfig.json files.
For example, to use the base Node.js configuration (supporting Node.js v20 or later):
npm i --save-dev typescript @types/node@20 @harperfast/code-guidelines
tsconfig.json file in your project with the following content:{
"extends": "@harperfast/code-guidelines/tsconfig.node.json",
"compilerOptions": {
// Your custom options here
}
}
npx tsc
# or
node src/index.ts
Configurations are based off of the popular tsconfig bases project.
The following list outlines the available configurations:
tsconfig.node.json - Node.js v20 or later with Node.js Type Stripping supportTo add a new TypeScript configuration:
tsconfig. and ending with .json. The name in between should be descriptive of the environment or relevant version (e.g. tsconfig.react.json or tsconfig.node-24.json).exports field in package.json to include the new configuration file using the same name as the file.FAQs
Coding Guidelines for Harper repositories. Includes types, linting, and formatting.
The npm package @harperfast/code-guidelines receives a total of 19,968 weekly downloads. As such, @harperfast/code-guidelines popularity was classified as popular.
We found that @harperfast/code-guidelines demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.

Security News
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.

Security News
/Threat Research
A malicious Ruby gem runs a credential-stealing worm during installation, poisons AI coding tools, and can wipe files when a stolen GitHub token is revoked.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.