Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@fauna/ts-dev-utils
Advanced tools
A collection of lint, format, and build configs used at Fauna for TypeScript projects.
A collection of lint, format, and build configs used at Fauna for TypeScript projects.
./config/
)eslint.config.js
, a minimal base eslint config.
js/eslint.config.js
, an extension of the base config intended for raw javascript projects..gitignore
, a minimal placeholder .gitignore file.prettierrc.js
, a base prettier config. this is a stand-alone prettier config; it's not integrated into eslint (by choice). Run it before running eslint. We use eslint-config-prettier to remove eslint rules that collide with prettier, so prettier is authoritative on the formatting it can do../script/
)eslint-formatter.js
, a custom eslint output formatter intended for estimating the cost of adding new rules to an eslint config. From a consumer of @fauna/ts-dev-utils
, run it like npx eslint --format ./node_modules/@fauna/ts-dev-utils/scripts/eslint-formatter.js .
.version-bump.js
, a script intended for use in CI environments to automatically version bump a npm package. Useful for packages that should be versioned and deployed on every merge to main
.npm install --save-dev @fauna/ts-dev-utils
yarn add -D @fauna/ts-dev-utils
In eslint.config.js
put:
import { config as defaultConfig } from "@fauna/ts-dev-utils/config/js/eslint.config.js";
export default [
...defaultConfig,
// ...any customizations you'd like
];
In prettier.config.js
import basePrettierConfig from "@fauna/ts-dev-utils/config/prettierrc.js";
/**
* @type {import("prettier").Config}
*/
const config = {
...basePrettierConfig,
// ...any customizations you'd like
};
export default config;
You can then write scripts in your package.json
such as:
"scripts": {
"lint": "eslint . --fix",
"format": "prettier -w --log-level silent .",
"format:check": "prettier -c ."
}
FAQs
A collection of lint, format, and build configs used at Fauna for TypeScript projects.
We found that @fauna/ts-dev-utils 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.