
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@tencentcloud/eslint-config-hybrid
Advanced tools
English | 中文
This project provides an extendable ESLint configuration for frontend code standards, supporting JavaScript, TypeScript, React, and Vue projects.
This project has the following features:
Globally, stylistic is used for code style beautification and validation.
For JavaScript rules, this project extends the excellent JavaScript standard eslint-config-airbnb-base. However, due to the lack of maintenance in that project, this project disables rules related to code style and uses stylistic for code style validation.
For TypeScript rules, this project extends the excellent TypeScript standard eslint-config-airbnb-typescript. However, due to compatibility issues with eslint-typescript@8, this project only adopts some rules from eslint-config-airbnb-typescript and resolves the compatibility issues with eslint-typescript@8.
For React rules, this project uses eslint-plugin-react/recommended
and eslint-plugin-react-hooks/recommended
. If you need a11y content, please add it yourself.
For Vue rules, this project uses eslint-plugin-vue/recommended
.
This project continues to use ESLint@8 and does not adopt the flat config introduced in ESLint@9.
This project provides configurable options for the following types of projects:
Project Type | Extends | Description |
---|---|---|
JavaScript | @tencentcloud/eslint-config-hybrid/javascript | Provides ESLint configuration for JavaScript projects |
TypeScript | @tencentcloud/eslint-config-hybrid | (default) Provides ESLint configuration for mixed JavaScript + TypeScript projects |
React | @tencentcloud/eslint-config-hybrid/react | Provides ESLint configuration for React projects |
Vue3 | @tencentcloud/eslint-config-hybrid/vue3 | Provides ESLint configuration for Vue3 projects, supports Vue 2.7 |
Vue2 | @tencentcloud/eslint-config-hybrid/vue2 | Provides ESLint configuration for Vue2 projects |
npm i -D @tencentcloud/eslint-config-hybrid
Assuming a TypeScript project, create .eslintrc.cjs
file in your project root:
module.exports = {
root: true,
extends: [
'@tencentcloud/eslint-config-hybrid'
],
parserOptions: {
// or replaced by the path of tsconfig.json file
project: true,
},
ignorePatterns: [
'node_modules',
'dist',
'public',
// else
],
};
For TypeScript projects, you need to configure parserOptions.project to point to your tsconfig.json file.
You can set parserOptions.project to true to use the tsconfig.json file in the current directory. If the project cannot find the tsconfig.json file, you can set parserOptions.project to the specific path of the tsconfig.json file.
If your project uses Vite, the tsconfig file may have a references field, such as:
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
}
You need to set parserOptions.project to an array:
parserOptions: {
project: [
`${__dirname}/tsconfig.json`,
`${__dirname}/tsconfig.app.json`,
`${__dirname}/tsconfig.node.json`,
],
}
FAQs
eslint config for tencendcloud hybrid web
The npm package @tencentcloud/eslint-config-hybrid receives a total of 10 weekly downloads. As such, @tencentcloud/eslint-config-hybrid popularity was classified as not popular.
We found that @tencentcloud/eslint-config-hybrid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.