@eea/eslint-config-reactjs
Version:
EEA's extendable eslint config for reactjs
25 lines (24 loc) • 1.12 kB
Plain Text
{
"extends": "airbnb",
"rules": {
"indent": ["error", 4, {
"SwitchCase": 1,
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"FunctionDeclaration": { "parameters": 1, "body": 1 },
"FunctionExpression": { "parameters": 1, "body": 1 },
"CallExpression": { "arguments": 1 },
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1,
"flatTernaryExpressions": false,
"ignoredNodes": ["JSXElement", "JSXElement > *", "JSXAttribute", "JSXIdentifier", "JSXNamespacedName", "JSXMemberExpression", "JSXSpreadAttribute", "JSXExpressionContainer", "JSXOpeningElement", "JSXClosingElement", "JSXFragment", "JSXOpeningFragment", "JSXClosingFragment", "JSXText", "JSXEmptyExpression", "JSXSpreadChild"],
"ignoreComments": false
}],
"no-console": [1, { "allow": ["warn", "error"] }],
"no-plusplus": "off",
"radix": ["error", "as-needed"],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4]
}
}