1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/.eslintrc

129 lines
3.7 KiB
Plaintext
Raw Normal View History

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