2018-08-30 17:25:33 +03:00
|
|
|
{
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
|
|
|
|
"extends": [
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"airbnb-base"
|
|
|
|
],
|
|
|
|
|
|
|
|
"env": {
|
|
|
|
"jest": true,
|
|
|
|
"node": true,
|
|
|
|
"browser": true,
|
|
|
|
"commonjs": true
|
|
|
|
},
|
|
|
|
|
2018-10-12 15:20:59 +03:00
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"pragma": "React",
|
|
|
|
"version": "16.4"
|
2020-01-31 15:57:20 +03:00
|
|
|
},
|
|
|
|
"import/resolver": {
|
|
|
|
"webpack": {
|
|
|
|
"config": "webpack.common.js"
|
|
|
|
}
|
2018-10-12 15:20:59 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-08-30 17:25:33 +03:00
|
|
|
"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", "JSXText", "JSXEmptyExpression", "JSXSpreadChild"],
|
|
|
|
"ignoreComments": false
|
|
|
|
}],
|
|
|
|
"class-methods-use-this": "off",
|
|
|
|
"no-shadow": "off",
|
2019-01-23 17:22:04 +03:00
|
|
|
"camelcase": "off",
|
2018-08-30 17:25:33 +03:00
|
|
|
"no-console": ["warn", { "allow": ["warn", "error"] }],
|
|
|
|
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
|
2020-01-30 13:58:54 +03:00
|
|
|
"import/prefer-default-export": "off",
|
|
|
|
"no-alert": "off"
|
2018-08-30 17:25:33 +03:00
|
|
|
}
|
|
|
|
}
|