Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@qingshaner/eslint-config
Advanced tools
A collection of ESLint configurations for different types of projects.
To use this configuration, it's highly recommended to include Biome as part of your linter tool for optimal results.
npm install --save-dev @qingshaner/eslint-config
// eslint.config.mjs
import { resolve } from 'node:path'
import { presetESLintConfig } from '@qingshaner/eslint-config'
const ROOT = import.meta.dirname // this require Node.js 20+
// Node.js < 20
// const ROOT = new URL('.', import.meta.url).pathname
export default presetESLintConfig({
a11y: true,
biome: true,
ignores: [resolve(ROOT, '.gitignore')],
jsonc: true,
perfectionist: true,
prettier: true,
typescript: [ROOT],
vue: true
})
Also provide a optional Biome configuration.
// biome.json
{
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@qingshaner/eslint-config/biome"],
"files": {
"ignoreUnknown": true
},
"javascript": {
"jsxRuntime": "transparent"
}
}
Include plugins
Disable Biome
has implemented rules.
react-plugin-refresh
, react-plugin-react-hooks
is replaced by Biome.
JavaScript, TypeScript, CSS is formatted by Biome.
antfu/sort/package-json
is used to sort package.json
.
antfu/sort/tsonfig-json
is used to sort *.tsconfig.json
.
Include plugins
Sort import statements, sort object properties.
Include plugins
Format code with Prettier
, if the file can't be formatted by Biome
, it will be formatted by Prettier
.
Incude plugins
For React
project.
Include plugins
For TypeScript
project.
Include plugins
Include plugins
For Vue2
| Vue3
project.
Include plugins
MIT License © 2023-Present qingshaner
0.8.0
FAQs
ESLint configs for qingshaner
The npm package @qingshaner/eslint-config receives a total of 4 weekly downloads. As such, @qingshaner/eslint-config popularity was classified as not popular.
We found that @qingshaner/eslint-config 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.