Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@eddeee888/eslint-plugin
Advanced tools
An ESLint plugin with standard TypeScript and React config to be used in standalone repos or in Nx monorepos.
This plugin contains extendable ESLint configs.
yarn add -DE eslint @eddeee888/eslint-plugin @typescript-eslint/eslint-plugin @typescript-eslint/parser
yarn add -DE eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y
// .eslintrc.json
{
"plugins": ["@eddeee888"],
"parserOptions": {
"project": ["tsconfig.json"]
},
"overrides": [
{
// 👇 Omit ".tsx" if you don't use React TypeScript
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@eddeee888/typescript"],
"rules": {}
},
// 👇 Omit this block if you don't use React TypeScript
{
"files": ["*.tsx"],
"extends": ["plugin:@eddeee888/react-typescript"],
"rules": {}
}
]
}
// Root .eslintrc.json
{
// ... other options
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@nx/typescript",
// 👇 Add this line for TypeScript files
"plugin:@eddeee888/typescript"
],
"rules": {}
},
{
"files": ["*.tsx"],
"extends": [
"plugin:@nx/react-typescript",
// 👇 Add this line if you use React TypeScript
"plugin:@eddeee888/react-typescript"
],
"rules": {}
}
]
}
// Project .eslintrc.json
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
// ... other config
{
"files": ["*.ts", "*.tsx"],
// 👇 Add parserOptions.project that points to your project tsconfig.json file
"parserOptions": {
"project": ["pathto/project/tsconfig(.*)?.json"]
},
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
],
"env": {
"jest": true
}
}
// (Optional) Choose files to lint by using `project.json` 's `lintFilePatterns`
//
// Sometimes, the patterns set in a project's .eslintrc.json may not work correctly,
// especially when running Nx CLI: `nx lint <project>`
// In such case, try using `lintFilePatterns` in the project's `project.json`
{
// ... other configs
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["{projectRoot}/app/**/*.tsx", "{projectRoot}/app/**/*.ts"]
}
},
}
}
FAQs
An ESLint plugin with standard TypeScript and React config to be used in standalone repos or in Nx monorepos.
We found that @eddeee888/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.