lbry-desktop/.eslintrc.json
2019-03-08 15:15:45 -05:00

68 lines
1.6 KiB
JSON

{
"plugins": ["flowtype", "import"],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.base.config.js"
}
}
},
"extends": [
"airbnb",
"plugin:import/electron",
"plugin:flowtype/recommended",
"plugin:prettier/recommended"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"globals": {
"__static": true,
"i18n": true,
"__": true,
"__n": true,
"app": true
},
"rules": {
"import/no-commonjs": "warn",
"import/no-amd": "warn",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"printWidth": 100,
"singleQuote": true
}
],
"func-names": ["warn", "as-needed"],
"no-param-reassign": [
"error",
{
"props": false
}
],
"jsx-a11y/label-has-for": 0,
"import/prefer-default-export": 0,
"no-return-assign": 0,
"react/require-default-props": 0,
"react/jsx-closing-tag-location": 0,
"jsx-a11y/no-noninteractive-element-to-interactive-role": 0,
"class-methods-use-this": 0,
"jsx-a11y/interactive-supports-focus": 0,
"jsx-a11y/click-events-have-key-events": 0,
"consistent-return": 0,
"no-prototype-builtins": 0,
"flowtype/space-after-type-colon": [2, "always", { "allowLineBreak": true }],
"no-restricted-syntax": 0,
"no-empty": 0,
"react/prefer-stateless-function": 0,
"react/sort-comp": 0,
"jsx-a11y/media-has-caption": 0,
"no-underscore-dangle": 0,
"import/extensions": 0,
"react/default-props-match-prop-types": 0
}
}