nyg-static-jam3
Version:
Jam3 frontend static project scaffold generator based on nyg
70 lines (69 loc) • 1.72 kB
Plain Text
{
"extends": ["react-tools", "jam3"],
"plugins": ["jam3"],
"rules": {
"prettier/prettier": "warn",
"jam3/no-sanitizer-with-danger": [
2,
{
"wrapperName": ["sanitizer"]
}
],
"jam3/forbid-methods": 2,
"no-console": "off",
"react/sort-comp": [
1,
{
"order": ["static-methods", "lifecycle", "everything-else", "render"],
"groups": {
"lifecycle": [
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"constructor",
"getDefaultProps",
"getInitialState",
"state",
"getChildContext",
"componentWillMount",
"UNSAFE_componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"UNSAFE_componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"UNSAFE_componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount",
"componentWillAppear",
"componentWillEnter",
"componentWillLeave"
]
}
}
]
},
"overrides": [
{
"files": ["src/util/**/*.js"],
"rules": {
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"ClassDeclaration": true,
"MethodDefinition": false,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}
]
}
}
]
}