Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@sparticuz/eslint-config
Advanced tools
I use this on projects that I develop.
Included in the readme is also Typescript, Prettier, Vitest configs for bootstrapping new projects.
npm install --save-dev @sparticuz/eslint-config typescript-eslint typescript prettier vitest @tsconfig/node20 @tsconfig/strictest
"scripts": {
"build": "rm -rf dist/** && tsc -p tsconfig.build.json",
"lint": "eslint \"**/*.?(c|m)[jt]s?(x)\"",
"test": "vitest run --coverage"
},
// @ts-check
import myConfig from "@sparticuz/eslint-config";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: ["dist/**/*"],
},
...myConfig,
);
/** @type {import("prettier").Config} */
export const config = {
trailingComma: "all",
};
export default config;
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Base Default TSConfig",
"extends": ["@tsconfig/node20/tsconfig", "@tsconfig/strictest/tsconfig"],
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"exactOptionalPropertyTypes": false,
"lib": ["DOM", "ES2023"],
"module": "NodeNext",
"moduleResolution": "nodenext",
"noUnusedLocals": false,
"outDir": "dist",
"resolveJsonModule": true,
"sourceMap": true
},
"include": ["src", "test"]
}
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"removeComments": true,
"sourceMap": false
},
"exclude": ["test"]
}
import { loadEnv } from "vite";
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
coverage: {
reportOnFailure: true,
reporter: ["json", "json-summary", "text"],
},
env: loadEnv("", process.cwd(), ""),
},
});
FAQs
Sparticuz's shareable config for eslint
The npm package @sparticuz/eslint-config receives a total of 144 weekly downloads. As such, @sparticuz/eslint-config popularity was classified as not popular.
We found that @sparticuz/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
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.