eslint-config-node-meca
v1.3.8
Published
Eslint configuration to configure each nodeJs Config
Downloads
13
Readme
Meca Node Package to import Eslint config to each nodeJs Project.
How import Eslint config from this package to a node project?
You need to overwrite your eslintrc.js local project file with this configuration :
module.exports = {
"extends": "node-meca"
};
Avoid npm incompatible dependencies
Please remove these packages from your own project dependencies to avoid to install 2 different versions. There are already installed by the eslint-config-node-meca.
- "@typescript-eslint/eslint-plugin"
- "@typescript-eslint/parser"
- "eslint-config-prettier"
- "eslint-plugin-prettier"
Alternatively, put the same version as in the eslint-config-node-meca package.
PhpStorm additionnal config
You can auto format your code with Phpstorm in Settings > Tools > Action On Save Enable "Reformat code" and "Rearrange code"
Ensure you enable "Run eslint --fix on save" in Settings > Languages & Frameworks > JavaScript > Code Quality Tools > ESlint