mirror of
https://github.com/plausible/analytics.git
synced 2024-12-29 20:42:01 +03:00
49ca6b859a
* Update dependencies as per the funnels branch Co-authored-by: Uku Taht <uku.taht@gmail.com> * Mute sigil_E deprecation errors * Use Phoenix.Component in PlausbileWeb * Add tooltip to react/no-unknown-property whitelist --------- Co-authored-by: Uku Taht <uku.taht@gmail.com> Co-authored-by: Vinicius Brasil <vini@hey.com>
41 lines
1.4 KiB
JSON
41 lines
1.4 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"extends": ["eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"prettier"
|
|
],
|
|
"parser": "babel-eslint",
|
|
"plugins": ["prettier"],
|
|
"rules": {
|
|
"max-len": [0, {"code": 120}],
|
|
"prettier/prettier": [2],
|
|
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
|
|
"react/destructuring-assignment": [0],
|
|
"react/prop-types": [0],
|
|
"max-classes-per-file": [0],
|
|
"react/display-name": [0],
|
|
"react/jsx-one-expression-per-line": [0],
|
|
"react/self-closing-comp": [0],
|
|
"no-unused-expressions": [1, { "allowShortCircuit": true }],
|
|
"no-unused-vars": [2, { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
|
|
"no-prototype-builtins": [0],
|
|
"react/jsx-props-no-spreading": [0],
|
|
"jsx-a11y/click-events-have-key-events": [0],
|
|
"jsx-a11y/no-static-element-interactions": [0],
|
|
"react/no-did-update-set-state": [0],
|
|
"react/no-unknown-property": [2, {"ignore": ["tooltip"]}]
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"createClass": "createReactClass", // Regex for Component Factory to use,
|
|
// default to "createReactClass"
|
|
"pragma": "React", // Pragma to use, default to "React"
|
|
"fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
|
|
"version": "detect"
|
|
}
|
|
}
|
|
}
|