Eslint shimmies up directories looking for more eslintrcs. As make-checkout now clones projects in a subdirectory of cockpit, this can result in some strange interactions. https://eslint.org/docs/user-guide/configuring Closes #212
53 lines
1.6 KiB
JSON
53 lines
1.6 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"extends": ["eslint:recommended", "standard", "standard-react"],
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"ecmaVersion": "7",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["flowtype", "react"],
|
|
"rules": {
|
|
"indent": ["error", 4,
|
|
{
|
|
"ObjectExpression": "first",
|
|
"CallExpression": {"arguments": "first"},
|
|
"MemberExpression": 2,
|
|
"ignoredNodes": [ "JSXAttribute" ]
|
|
}],
|
|
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
|
|
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
|
|
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
|
|
"react/jsx-indent": ["error", 4],
|
|
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
|
|
|
|
"camelcase": "off",
|
|
"comma-dangle": "off",
|
|
"curly": "off",
|
|
"jsx-quotes": "off",
|
|
"key-spacing": "off",
|
|
"no-console": "off",
|
|
"quotes": "off",
|
|
"react/jsx-curly-spacing": "off",
|
|
"react/jsx-indent-props": "off",
|
|
"react/prop-types": "off",
|
|
"space-before-function-paren": "off",
|
|
"standard/no-callback-literal": "off",
|
|
|
|
"eqeqeq": "off",
|
|
"import/no-webpack-loader-syntax": "off",
|
|
"object-property-newline": "off",
|
|
"react/jsx-no-bind": "off"
|
|
},
|
|
"globals": {
|
|
"require": false,
|
|
"module": false
|
|
}
|
|
}
|