
Product
Introducing Manifest Alerts
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.
@ken0x0a/eslint-config
Advanced tools
yarn add @ken0x0a/eslint-config
# if you use `react` configuration, also need to install `@ken0x0a/eslint-config-react-deps`
yarn add @ken0x0a/eslint-config @ken0x0a/eslint-config-react-deps # optional
module.exports = require('@ken0x0a/eslint-config')
module.exports = {
extends: ['@ken0x0a/eslint-config'],
}
module.exports = {
extends: ['@ken0x0a/eslint-config', '@ken0x0a/eslint-config/autofix'],
}
// or if you prefer to pick only what you want ( the following is default )
module.exports = {
/**
* NOTE: The **order is important**, to properly override rules by later one
*/
extends: [
'@ken0x0a/eslint-config/base',
'@ken0x0a/eslint-config/import',
'@ken0x0a/eslint-config/jest',
// '@ken0x0a/eslint-config/autofix', // DO NOT USE WITH TypeScript, as it doesn't care about `interface` & `type` and remove them.
// '@ken0x0a/eslint-config/graphql', // requires to install `eslint-plugin-graphql`
/**
* if you need to use `react` related configs like following,
* you need to install optional dependency "@ken0x0a/eslint-config-react-deps" by
* `yarn add -D "@ken0x0a/eslint-config-react-deps"`
*/
'@ken0x0a/eslint-config/react',
// '@ken0x0a/eslint-config/react-native',
'@ken0x0a/eslint-config/expo', // extends "./react-native"
'@ken0x0a/eslint-config/typescript',
],
}
https://eslint.org/docs/user-guide/command-line-interface
yarn --silent eslint -c .eslintrc.js --ext .ts,.tsx .
yarn --silent eslint --ext .ts,.tsx .
yarn --silent eslint --ext .ts,.tsx --report-unused-disable-directives .
# "--no-error-on-unmatched-pattern" from 3.8.0
yarn --silent eslint --ext .ts,.tsx --report-unused-disable-directives --no-error-on-unmatched-pattern .
yarn --silent eslint --ext .ts,.tsx --ignore-pattern '**/*.d.ts' --report-unused-disable-directives
yarn --silent eslint '**/*.ts{,x}'
yarn --silent eslint '*.ts{,x}'
yarn --silent eslint --report-unused-disable-directives '*.ts'
yarn --silent eslint --cache '*.ts'
yarn --silent eslint --no-inline-config some-file.ts
module.exports = {
'*.{ts,tsx}': [
/**
* https://eslint.org/docs/user-guide/command-line-interface#--ignore-pattern
*/
"eslint --fix --ext .ts,.tsx --ignore-pattern '**/*.d.ts' --report-unused-disable-directives",
'git add',
],
}
eslint-plugin-autofix doesn't care interface & type. Thus, really useless with TypeScript
FAQs
Examples of eslint configuration
We found that @ken0x0a/eslint-config 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.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.