lbry-desktop/.eslintrc.json

53 lines
1.2 KiB
JSON
Raw Normal View History

2017-12-13 18:35:07 -03:00
{
2019-03-18 01:09:50 -04:00
"parser": "babel-eslint",
2019-05-06 22:35:04 -04:00
"extends": ["standard", "standard-jsx", "plugin:react/recommended", "plugin:flowtype/recommended"],
"plugins": ["flowtype", "import", "react-hooks"],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.base.config.js"
}
}
},
2017-12-13 18:35:07 -03:00
"env": {
"browser": true,
"node": true
},
"globals": {
"__static": true,
2019-03-04 23:46:57 -05:00
"i18n": true,
"__": true,
"__n": true,
2019-03-18 01:06:41 -04:00
"app": true,
"IS_WEB": true,
"WEBPACK_PORT": true
2017-12-20 12:35:13 -03:00
},
"rules": {
2019-06-28 03:33:07 -04:00
"brace-style": 0,
2019-05-06 22:35:04 -04:00
"comma-dangle": ["error", "always-multiline"],
2019-03-18 01:09:50 -04:00
"handle-callback-err": 0,
2019-05-10 10:50:33 -04:00
"indent": 0,
2019-05-06 22:35:04 -04:00
"jsx-quotes": ["error", "prefer-double"],
"new-cap": 0,
"no-multi-spaces": 0,
2019-03-18 01:09:50 -04:00
"no-redeclare": 0,
"no-return-await": 0,
2019-05-06 22:35:04 -04:00
"object-curly-spacing": 0,
"one-var": 0,
"prefer-promise-reject-errors": 0,
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
2019-03-18 01:09:50 -04:00
"space-before-function-paren": ["error", "never"],
2019-05-06 22:35:04 -04:00
"standard/object-curly-even-spacing": 0,
"standard/no-callback-literal": 0,
"react/display-name": 0,
2019-03-18 01:09:50 -04:00
"semi": [
2019-02-22 00:01:59 -05:00
"error",
2019-03-18 01:09:50 -04:00
"always",
2019-02-22 00:01:59 -05:00
{
2019-03-18 01:09:50 -04:00
"omitLastInOneLineBlock": true
2019-02-22 00:01:59 -05:00
}
2019-03-18 01:09:50 -04:00
]
2017-12-13 18:35:07 -03:00
}
}