Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@react-ddd/eslint-config
Advanced tools
This package is a draconian eslint-config largely based on airbnb and airbnb-typescript. It does NOT use Prettier, instead relying on only one tool to handle code formatting.
Use arrow functions for all components
Disable
Disable, as we use TypeScript and type the props
Only in .tsx files Ignore for generics, so that you can have a single unconstrained generic for components:
const GenericComponent<T,> = (...) => {}
Disable ignoring single line. ALL braces are required, no single line if's!
Force TypeScript 3.8 style type imports for all types
Error, except for short circuit and ternary
There are specific rules for *.spec.tsx?
files to accomodate jest-gwt
style testing:
rules: {
'max-len': [
'error',
{
code: 100,
ignoreUrls: true,
ignoreRegExpLiterals: true,
ignorePattern,
},
],
'react/no-this-in-sfc': 'off',
camelcase: 'off',
'@typescript-eslint/naming-convention': 'off',
'prefer-arrow-callback': 'off',
'func-names': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'no-param-reassign': 'off',
}
FAQs
ESLint config for TypeScript or React DDD projects
We found that @react-ddd/eslint-config 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
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.