Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@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 7 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.