Shareable code style and best practice for Logux projects.
Pure JavaScript:
yarn add --dev @logux/eslint-config eslint-config-standard eslint-plugin-promise eslint-plugin-jest eslint-plugin-node eslint-plugin-security eslint-plugin-import eslint-plugin-prefer-let eslint-plugin-prettierx eslint-plugin-unicorn eslint
TypeScript:
yarn add --dev @logux/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-config-standard eslint-plugin-promise eslint-plugin-jest eslint-plugin-node eslint-plugin-security eslint-plugin-import eslint-plugin-prefer-let eslint-plugin-prettierx eslint-plugin-unicorn eslint
For JavaScript add config to package.json
or other ESLint configs.
"eslintConfig": {
"extends": "@logux/eslint-config"
}
For TypeScript:
"eslintConfig": {
"extends": "@logux/eslint-config/ts"
}