Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@btmills/eslint-config-btmills
Advanced tools
My personal ESLint shareable configurations.
My personal ESLint shareable configurations.
npm install --save-dev eslint @btmills/eslint-config-btmills
If using ES6 modules, install eslint-plugin-import:
npm install --save-dev eslint-plugin-import
If using React, install eslint-plugin-react and eslint-plugin-react-hooks:
npm install --save-dev eslint-plugin-react eslint-plugin-react-hooks
If using TypeScript, install typescript-eslint:
npm install --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
If using Flow, install babel-eslint and eslint-plugin-flowtype:
npm install --save-dev babel-eslint eslint-plugin-flowtype
Add one of the following lines to your project's .eslintrc.js
:
module.exports = {
"extends": "@btmills/eslint-config-btmills", // Defaults to es5
"extends": "@btmills/eslint-config-btmills/es5",
"extends": "@btmills/eslint-config-btmills/es2015",
"extends": "@btmills/eslint-config-btmills/es2016",
"extends": "@btmills/eslint-config-btmills/es2017",
"extends": "@btmills/eslint-config-btmills/es2018",
"extends": "@btmills/eslint-config-btmills/es2019",
"extends": "@btmills/eslint-config-btmills/es2020",
"extends": "@btmills/eslint-config-btmills/es2021",
"extends": "@btmills/eslint-config-btmills/es2022",
// Use React and Flow with a language config by extending multiple configs
"extends": [
"@btmills/eslint-config-btmills/es2015",
"@btmills/eslint-config-btmills/react",
"@btmills/eslint-config-btmills/flow"
],
// Use TypeScript
"overrides": [
{
"files": ["**/*.ts{,x}"],
"extends": ["@btmills/eslint-config-btmills/typescript"]
},
// Optionally include rules that require type information
{
"files": ["**/*.ts{,x}"],
"extends": ["@btmills/eslint-config-btmills/typescript-project"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
]
};
MIT © Brandon Mills
FAQs
My personal ESLint shareable configurations.
The npm package @btmills/eslint-config-btmills receives a total of 4 weekly downloads. As such, @btmills/eslint-config-btmills popularity was classified as not popular.
We found that @btmills/eslint-config-btmills 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.