Shareable code style and best practice for Logux projects.
For browser and universal project:
yarn add --dev @logux/eslint-config eslint-config-standard eslint-plugin-promise eslint-plugin-jest eslint-plugin-node eslint-plugin-es5 eslint-plugin-standard eslint-plugin-security eslint-plugin-import eslint-plugin-import-helpers eslint
For the server-only project you can use config with ES2015+ support:
yarn add --dev @logux/eslint-config eslint-config-standard eslint-plugin-promise eslint-plugin-jest eslint-plugin-node eslint-plugin-standard eslint-plugin-security eslint-plugin-import eslint-plugin-import-helpers eslint-plugin-prefer-let eslint
Add this config to package.json
or other ESLint configs.
Browser and universal project:
"eslintConfig": {
"extends": "@logux/eslint-config/browser"
}
Server-only project:
"eslintConfig": {
"extends": "@logux/eslint-config/node"
}