mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-16 10:28:29 -07:00
56 lines
1.6 KiB
Plaintext
Vendored
56 lines
1.6 KiB
Plaintext
Vendored
{
|
|
"parser": "babel-eslint",
|
|
|
|
"extends": [
|
|
"plugin:react/recommended",
|
|
"airbnb-base"
|
|
],
|
|
|
|
"env": {
|
|
"jest": true,
|
|
"node": true,
|
|
"browser": true,
|
|
"commonjs": true
|
|
},
|
|
|
|
"settings": {
|
|
"react": {
|
|
"pragma": "React",
|
|
"version": "16.4"
|
|
}
|
|
},
|
|
|
|
"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",
|
|
"camelcase": ["error", {
|
|
"properties": "never"
|
|
}],
|
|
"no-console": ["warn", { "allow": ["warn", "error"] }],
|
|
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
|
|
"import/prefer-default-export": "off"
|
|
}
|
|
}
|