@noveo/eslint-config-codestyle
v2.1.0
Published
Shareable configuration package with code style settings
Downloads
13
Readme
@noveo/eslint-config-codestyle
This module add eslint config and pre-commit hook based on AirBnB Style Guid with few differences:
"rules": {
"indent": ["error", 4],
"strict": [2, "global"],
"no-console": "error",
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}],
"valid-jsdoc": ["error", {
"requireReturn": false,
"preferType": {
"boolean": "Boolean",
"number": "Number",
"object": "Object",
"string": "String"
}
}],
"comma-dangle": ["off", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}]
}
Install
npm install @noveo/eslint-config-codestyle --save-dev