
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
@ptsecurity/eslint-config
Advanced tools
ESLint shareable config for the Positive Technologies JavaScript style guide.
npm install eslint @ptsecurity/eslint-config --save-dev
.eslintrc.js проекта должен выглядеть так:
module.exports = {
extends: '@ptsecurity/eslint-config'
}
Можно подключать наборы правил, или конфигурации для плагинов отдельно
// .eslintrc.js
module.exports = {
extends: [
'@ptsecurity/eslint-config/base',
'@ptsecurity/eslint-config/core/best-practices',
'@ptsecurity/eslint-config/plugins/typescript-eslint',
'@ptsecurity/eslint-config/plugins/import'
]
};
Пакет содержит конфигурацию eslint, подключаемую в проект.
Стандартные конфигурации для js и ts находятся в overrides/.
Собственные конфигурации можно создавать по аналогии с уже имеющимися стандартными,
используя утилиты load-core, load-plugins, находящиеся в utils.
Так же можно подключить частичные наборы правил (core), либо конфигурации для плагинов (plugins).
За основу можно взять базовый конфиг base.js
Errors должны указывать только на недопустимый или сломанный код.Warrnings должны указывать только на потенциальные ошибки или сбивающий с толку код.В данный момент в конфигурацию включены следующие плагины:
Вы можете расширять стандартную конфигурацию локально плагинами, вот некоторые из них:
Следующие плагины расширяют ESLint для работы с файлами json и lint JavaScript, содержащимися в HTML и MarkDown:
Следующие плагины ESLint обеспечивают соблюдение часто встречающихся практик:
FAQs
ESLint shareable config for the Positive Technologies JavaScript style guide.
The npm package @ptsecurity/eslint-config receives a total of 0 weekly downloads. As such, @ptsecurity/eslint-config popularity was classified as not popular.
We found that @ptsecurity/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.