2017-07-13 16:28:45 -05:00
|
|
|
{
|
|
|
|
"plugins": [
|
2018-10-09 07:24:17 -05:00
|
|
|
"babel",
|
2018-12-05 17:53:20 -05:00
|
|
|
"react",
|
2017-11-01 11:47:20 -05:00
|
|
|
"flowtype",
|
2018-12-03 01:18:45 -05:00
|
|
|
"jest",
|
2018-12-05 17:53:20 -05:00
|
|
|
"verdaccio",
|
|
|
|
"jsx-a11y"
|
2017-07-13 16:28:45 -05:00
|
|
|
],
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"google",
|
2017-11-01 11:47:20 -05:00
|
|
|
"plugin:flowtype/recommended",
|
2018-08-15 15:17:41 -05:00
|
|
|
"plugin:jest/recommended",
|
2018-12-03 01:18:45 -05:00
|
|
|
"plugin:prettier/recommended",
|
2018-12-15 10:33:57 -05:00
|
|
|
"plugin:react/recommended",
|
2018-12-05 17:53:20 -05:00
|
|
|
"plugin:verdaccio/recommended",
|
|
|
|
"plugin:jsx-a11y/recommended"
|
2017-07-13 16:28:45 -05:00
|
|
|
],
|
2018-10-04 07:19:50 -05:00
|
|
|
"settings": {
|
|
|
|
"react": {
|
2018-12-15 10:33:57 -05:00
|
|
|
"pragma": "React",
|
|
|
|
"version": "16.4.2",
|
|
|
|
"flowVersion": "0.81.0"
|
2018-10-04 07:19:50 -05:00
|
|
|
}
|
|
|
|
},
|
2017-09-02 14:20:59 -05:00
|
|
|
"parser": "babel-eslint",
|
2017-07-13 16:28:45 -05:00
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaVersion": 7,
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"impliedStrict": true,
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
2017-11-01 11:47:20 -05:00
|
|
|
"es6": true,
|
|
|
|
"jest": true
|
2017-07-13 16:28:45 -05:00
|
|
|
},
|
2018-01-28 12:28:03 -05:00
|
|
|
"globals": {
|
|
|
|
"__APP_VERSION__": true
|
|
|
|
},
|
2017-07-13 16:28:45 -05:00
|
|
|
"rules": {
|
2018-10-09 07:24:17 -05:00
|
|
|
"babel/no-invalid-this": 1,
|
2018-08-15 15:17:41 -05:00
|
|
|
"prettier/prettier": ["error", null, "@prettier"],
|
2018-06-29 18:13:25 -05:00
|
|
|
"react/no-deprecated": 1,
|
2018-06-30 10:13:53 -05:00
|
|
|
"react/jsx-no-target-blank": 1,
|
2019-01-05 17:15:52 -05:00
|
|
|
"react/destructuring-assignment": ["error", "always"],
|
2018-12-15 02:55:39 -05:00
|
|
|
"react/forbid-component-props": ["warn", { "forbid": ["style"] }],
|
|
|
|
"react/no-this-in-sfc": ["warn"],
|
|
|
|
"react/no-unsafe": ["warn"],
|
|
|
|
"react/sort-comp": ["warn", {
|
2018-12-05 17:53:20 -05:00
|
|
|
"order": [
|
|
|
|
"static-methods",
|
|
|
|
"lifecycle",
|
|
|
|
"render",
|
|
|
|
"everything-else",
|
|
|
|
"/^on.+$/",
|
|
|
|
"/^render.+$/"
|
|
|
|
]
|
|
|
|
}],
|
2018-12-15 02:55:39 -05:00
|
|
|
"react/void-dom-elements-no-children": ["warn"],
|
2019-01-06 10:19:02 -05:00
|
|
|
"react/no-did-mount-set-state": ["error", "disallow-in-func"],
|
2018-12-15 11:34:32 -05:00
|
|
|
"react/jsx-wrap-multilines": ["error",{
|
2018-12-05 17:53:20 -05:00
|
|
|
"declaration": "parens",
|
|
|
|
"assignment": "parens",
|
|
|
|
"return": "parens",
|
|
|
|
"arrow": "parens",
|
|
|
|
"condition": "parens",
|
|
|
|
"logical": "parens",
|
|
|
|
"prop": "parens"
|
|
|
|
}],
|
2018-12-15 10:41:27 -05:00
|
|
|
"react/jsx-boolean-value": ["error", "always"],
|
2018-12-15 10:59:05 -05:00
|
|
|
"react/jsx-closing-tag-location": ["error"],
|
2018-12-15 10:39:51 -05:00
|
|
|
"react/jsx-curly-spacing": ["error", "never"],
|
2018-12-15 11:23:23 -05:00
|
|
|
"react/jsx-equals-spacing": ["error", "never"],
|
2018-12-15 10:59:05 -05:00
|
|
|
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
|
2018-12-15 02:55:39 -05:00
|
|
|
"react/jsx-handler-names": ["warn"],
|
2018-12-15 10:59:05 -05:00
|
|
|
"react/jsx-indent": ["error", 2],
|
2018-12-15 11:23:23 -05:00
|
|
|
"react/jsx-indent-props": ["error", 2],
|
|
|
|
"react/jsx-key": ["error"],
|
2019-01-06 06:44:24 -05:00
|
|
|
"react/jsx-max-depth": ["error", { "max": 2}],
|
2018-12-15 15:03:51 -05:00
|
|
|
"react/jsx-max-props-per-line": ["error", {"maximum": 3, "when": "multiline" }],
|
|
|
|
"react/jsx-no-bind": ["error"],
|
2019-01-06 05:40:15 -05:00
|
|
|
"react/jsx-no-comment-textnodes": ["error"],
|
2019-01-06 05:35:43 -05:00
|
|
|
"react/jsx-no-duplicate-props": ["error"],
|
2019-01-06 05:33:15 -05:00
|
|
|
"react/jsx-no-literals": ["error"],
|
2018-12-15 11:34:32 -05:00
|
|
|
"react/jsx-no-undef": ["error"],
|
2019-01-06 05:11:10 -05:00
|
|
|
"react/jsx-one-expression-per-line": ["error", {"allow": "single-child"}],
|
2018-12-16 12:54:40 -05:00
|
|
|
"react/jsx-curly-brace-presence": ["error", { "props": "always", "children": "ignore" }],
|
2018-12-15 11:23:23 -05:00
|
|
|
"react/jsx-pascal-case": ["error"],
|
2018-12-15 11:34:32 -05:00
|
|
|
"react/jsx-props-no-multi-spaces": ["error"],
|
2018-12-16 12:42:39 -05:00
|
|
|
"react/jsx-sort-default-props": ["error"],
|
2018-12-15 16:01:21 -05:00
|
|
|
"react/jsx-sort-props": ["error"],
|
|
|
|
"react/no-string-refs": ["error"],
|
|
|
|
"react/no-danger-with-children": ["error"],
|
2018-12-15 11:34:32 -05:00
|
|
|
"react/jsx-tag-spacing": ["error", {
|
2018-12-05 17:53:20 -05:00
|
|
|
"closingSlash": "never",
|
|
|
|
"beforeSelfClosing": "always",
|
|
|
|
"afterOpening": "allow-multiline",
|
|
|
|
"beforeClosing": "allow"
|
|
|
|
}],
|
2018-12-15 16:01:21 -05:00
|
|
|
"react/prefer-es6-class": [
|
|
|
|
2,
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"semi": ["error"],
|
|
|
|
"comma-dangle": ["error"],
|
|
|
|
"camelcase": 0,
|
2018-12-15 11:34:32 -05:00
|
|
|
"no-useless-escape": ["error"],
|
2018-12-05 17:53:20 -05:00
|
|
|
"no-invalid-this": 0,
|
2018-12-15 11:34:32 -05:00
|
|
|
"handle-callback-err": ["error"],
|
|
|
|
"no-fallthrough": ["error"],
|
|
|
|
"no-new-require": ["error"],
|
|
|
|
"max-len": ["error", 160],
|
2017-10-22 02:23:29 -05:00
|
|
|
"require-jsdoc": 0,
|
2017-10-22 04:53:16 -05:00
|
|
|
"valid-jsdoc": 0,
|
2017-07-13 16:28:45 -05:00
|
|
|
"prefer-spread": 1,
|
|
|
|
"prefer-rest-params": 1,
|
2018-06-11 15:22:45 -05:00
|
|
|
"linebreak-style": 0,
|
2019-01-06 05:03:41 -05:00
|
|
|
"quote-props":["error", "as-needed"],
|
2018-12-15 02:55:39 -05:00
|
|
|
"verdaccio/jsx-no-style": ["warn"],
|
|
|
|
"verdaccio/jsx-spread": ["warn"],
|
2018-12-16 13:05:52 -05:00
|
|
|
"jest/expect-expect": 0
|
2017-07-13 16:28:45 -05:00
|
|
|
}
|
|
|
|
}
|