lbry-desktop/.eslintrc.json

65 lines
1.5 KiB
JSON
Raw Normal View History

2017-12-13 22:35:07 +01:00
{
"plugins": ["flowtype"],
2017-12-13 22:35:07 +01:00
"extends": [
"airbnb",
"plugin:import/electron",
2017-12-13 22:35:07 +01:00
"plugin:flowtype/recommended",
"plugin:prettier/recommended"
2017-12-13 22:35:07 +01:00
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.renderer.additions.js"
}
}
2017-12-13 22:35:07 +01:00
},
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"globals": {
"__static": true,
"staticResourcesPath": true,
"__": true,
"__n": true,
"app": true
2017-12-20 16:35:13 +01:00
},
"rules": {
"import/no-commonjs": "warn",
"import/no-amd": "warn",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"printWidth": 100,
"singleQuote": true
}
],
"func-names": ["warn", "as-needed"],
2019-02-22 06:01:59 +01:00
"no-param-reassign": [
"error",
{
"props": false
}
],
"jsx-a11y/label-has-for": 0,
2018-05-16 04:32:13 +02:00
"import/prefer-default-export": 0,
2018-05-25 06:36:43 +02:00
"no-return-assign": 0,
2018-06-01 04:51:07 +02:00
"react/require-default-props": 0,
"react/jsx-closing-tag-location": 0,
2018-09-26 02:12:07 +02:00
"jsx-a11y/no-noninteractive-element-to-interactive-role": 0,
2018-10-04 06:11:08 +02:00
"class-methods-use-this": 0,
"jsx-a11y/interactive-supports-focus": 0,
"jsx-a11y/click-events-have-key-events": 0,
"consistent-return": 0,
2018-11-21 22:20:55 +01:00
"no-prototype-builtins": 0,
"flowtype/space-after-type-colon": [2, "always", { "allowLineBreak": true }],
"no-restricted-syntax": 0,
2019-01-19 19:54:06 +01:00
"no-empty": 0,
"react/prefer-stateless-function": 0,
2019-02-22 06:01:59 +01:00
"react/sort-comp": 0,
"jsx-a11y/media-has-caption": 0
2017-12-13 22:35:07 +01:00
}
}