Product
Introducing Socket Optimize
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
eslint-config-flat-gitignore
Advanced tools
.gitignore
support for ESLint Flat Config.
npm i -D eslint-config-flat-gitignore
// eslint.config.js
import gitignore from 'eslint-config-flat-gitignore'
export default [
// recommended putting it at the first
gitignore(),
// your other configs here
]
By default it will only looks for .gitignore
but NOT .eslintignore
, as we would recommended move away from .eslintignore
to declare directly in eslint.config.js
for single source of truth. If you still want it, you can pass the files
option to specify the files to look for.
gitignore({
files: [
'.gitignore',
'.eslintignore',
]
})
By default, this plugin throws if any of the ignore files are missing. This can be disabled by passing setting the strict
option to false
.
gitignore({
files: [
'.gitignore',
'.eslintignore',
],
strict: false,
})
MIT License © 2023-PRESENT Anthony Fu
FAQs
.gitignore support for ESLint Flat Config
The npm package eslint-config-flat-gitignore receives a total of 197,546 weekly downloads. As such, eslint-config-flat-gitignore popularity was classified as popular.
We found that eslint-config-flat-gitignore demonstrated a healthy version release cadence and project activity because the last version was released less than 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
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
Product
We're excited to announce that Socket now supports the Java programming language.
Security News
Socket detected a malicious Python package impersonating a popular browser cookie library to steal passwords, screenshots, webcam images, and Discord tokens.