lbry-desktop/.eslintrc.json

53 lines
1.2 KiB
JSON
Raw Normal View History

2017-12-13 22:35:07 +01:00
{
2019-03-18 06:09:50 +01:00
"parser": "babel-eslint",
2019-05-07 04:35:04 +02: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 22:35:07 +01:00
"env": {
"browser": true,
"node": true
},
"globals": {
"__static": true,
2019-03-05 05:46:57 +01:00
"i18n": true,
"__": true,
"__n": true,
2019-03-18 06:06:41 +01:00
"app": true,
"IS_WEB": true,
"WEBPACK_PORT": true
2017-12-20 16:35:13 +01:00
},
"rules": {
2019-06-28 09:33:07 +02:00
"brace-style": 0,
2019-05-07 04:35:04 +02:00
"comma-dangle": ["error", "always-multiline"],
2019-03-18 06:09:50 +01:00
"handle-callback-err": 0,
2019-05-10 16:50:33 +02:00
"indent": 0,
2019-05-07 04:35:04 +02:00
"jsx-quotes": ["error", "prefer-double"],
"new-cap": 0,
"no-multi-spaces": 0,
2019-03-18 06:09:50 +01:00
"no-redeclare": 0,
"no-return-await": 0,
2019-05-07 04:35:04 +02: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 06:09:50 +01:00
"space-before-function-paren": ["error", "never"],
2019-05-07 04:35:04 +02:00
"standard/object-curly-even-spacing": 0,
"standard/no-callback-literal": 0,
"react/display-name": 0,
2019-03-18 06:09:50 +01:00
"semi": [
2019-02-22 06:01:59 +01:00
"error",
2019-03-18 06:09:50 +01:00
"always",
2019-02-22 06:01:59 +01:00
{
2019-03-18 06:09:50 +01:00
"omitLastInOneLineBlock": true
2019-02-22 06:01:59 +01:00
}
2019-03-18 06:09:50 +01:00
]
2017-12-13 22:35:07 +01:00
}
}