
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
@verkstedt/eslint-config-verkstedt
Advanced tools
ESLint and Prettier config
First, install the package along with itβs peer dependencies:
npx install-peerdeps --dev @verkstedt/eslint-config-verkstedt@latest
npx install-peerdeps --yarn --dev @verkstedt/eslint-config-verkstedt@latest
Then:
If your project uses TypeScript:
npm install --save-dev "typescript@^5.4.3" "@typescript-eslint/eslint-plugin@^7.3.1" "@typescript-eslint/parser@^7.3.1"
yarn add --dev "typescript@^5.4.3" "@typescript-eslint/eslint-plugin@^7.3.1" "@typescript-eslint/parser@^7.3.1"
If your project does not use TypeScript, but uses Babel:
npm install --save-dev "@babel/core@^7.24.3" "@babel/eslint-parser@^7.24.1"
yarn add --dev "@babel/core@^7.24.3" "@babel/eslint-parser@^7.24.1"
In your EsLint config use one of those for extends
:
β use this \ if your project uses β | Babel | TypeScript | React | Next.js |
---|---|---|---|---|
@verkstedt/verkstedt/typescript-react 1 | β /βοΈ | β | β | βοΈ |
@verkstedt/verkstedt/typescript-next | β /βοΈ | β | β | β |
@verkstedt/verkstedt/typescript | β /βοΈ | β | βοΈ | βοΈ |
@verkstedt/verkstedt/next | β /βοΈ | βοΈ | β | β |
@verkstedt/verkstedt/react | β | βοΈ | β | βοΈ |
@verkstedt/verkstedt/babel | β | βοΈ | βοΈ | βοΈ |
@verkstedt/verkstedt/vanilla | βοΈ | βοΈ | βοΈ | βοΈ |
E.g. make your .eslintrc.cjs
the following:
module.exports = {
extends: ['@verkstedt/verkstedt/typescript-next'],
}
Add the following .prettierrc.json
:
"@verkstedt/eslint-config-verkstedt/prettier-config"
You probably also want .prettierignore
with something like:
/.next/
/node_modules/
If you have any generated files (e.g. lingui locales), also add them in there.
Add the following to stylelint.config.cjs
:
module.exports = require('@verkstedt/eslint-config-verkstedt/stylelint-config.cjs')
Use the same commands as in previous section.
After upgrading, review if all of your projects EsLint rule overwrites are still needed.
We recommend to use CoC with coc-eslint
extension.
To get this working with VS Code, you will first need to install the Prettier - Code formatter extension.
Next, add the following values to global settings, or to to your per project folder settings (./.vscode/settings.json
):
// probably best to use these only in workspace or
// folder config, and not in global settings:
"prettier.useEditorConfig": false,
"eslint.format.enable": true,
// Per language settings:
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
dependencies
β the usual
peerDependencies
β stuff that needs to be installed as a direct dependency of a project using this config. These are packages that provide binaries (eslint
, prettier
, stylelint
) as well as some weird packages that donβt work as regular dependency cough eslint-plugin-prettier
cough).
devDependencies
β stuff required to run npm run lint
in this repository. Itβs peerDependencies
and optionalDependencies
merged together
This package is published to npmjs.com and also to github package registry when you push new version tag:
npm version patch # or minor, or major -- depending on changes
git push --follow-tags
@verkstedt/verkstedt/typescript-react
is also aliased as @verkstedt/verkstedt
. β©
FAQs
ESLint config
The npm package @verkstedt/eslint-config-verkstedt receives a total of 82 weekly downloads. As such, @verkstedt/eslint-config-verkstedt popularity was classified as not popular.
We found that @verkstedt/eslint-config-verkstedt 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.