* chartjs test * [WIP] Modified for Chart.js * Tweaking styles ( tooltips and lines ) * Almost done TODO: Change tooltips to HTML tag Improve color function * More work on Tooltips * Improve update logic Fix linting * resolve conflict * [WIP] Create new tooltip mode hack. Add axis padding to top and botton to prevent axis cutoff * TODO: cleanup * FIXME: tooltip in history graph not working correctly reorganize some code * fix build problem * Fix color and tooltip issue Fix label max width for timeline chart * update dep * Fix strange color after build due to `uglify` bug with reference the minified version. Make line chart behavior more similar to Google Charts. Make the chart honor to `unknown` and other state by manually calculate point value. * fix bugs * Remove label for only one data in timeline chart. Fix bug for infinite loop in some cases * Add HTML legend to chart. * Fix isSingleDevice bug due to calculation. Add isSingleDevice property support. * fix for lint * Replace innerHTML code with polymer node. * Replace tooltip with HTML code * fix tooltip style * move default tooltip mode to plugin * LINTING * fix Move localize history data to Timeline Chart. Fix timeline static color. Rework on chart resize. * Bug fix: Chart may disappear on some case. Timeline chart calculation issue. Change timeline chart hidden logic. * fix tooltip rework for resize event * lint * element * Replace `var` to `let`. Move import and ChartJs injection code to `ha-chart-scripts.html`. * lint: convert more let to const * fix font fix undef * update bower.json * move * Load chart code on demand
73 lines
1.6 KiB
JSON
73 lines
1.6 KiB
JSON
{
|
|
"extends": "airbnb-base",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true,
|
|
"modules": true
|
|
}
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"pragma": "h"
|
|
}
|
|
},
|
|
"globals": {
|
|
"__DEV__": false,
|
|
"__DEMO__": false,
|
|
"__BUILD__": false,
|
|
"__VERSION__": false,
|
|
"__ROOT__": false,
|
|
"Polymer": true,
|
|
"webkitSpeechRecognition": false,
|
|
"ResizeObserver": false
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"mocha": true
|
|
},
|
|
"rules": {
|
|
"class-methods-use-this": 0,
|
|
"new-cap": 0,
|
|
"prefer-template": 0,
|
|
"object-shorthand": 0,
|
|
"func-names": 0,
|
|
"prefer-arrow-callback": 0,
|
|
"no-underscore-dangle": 0,
|
|
"no-var": 0,
|
|
"strict": 0,
|
|
"prefer-spread": 0,
|
|
"no-plusplus": 0,
|
|
"no-bitwise": 0,
|
|
"comma-dangle": 0,
|
|
"vars-on-top": 0,
|
|
"no-continue": 0,
|
|
"no-param-reassign": 0,
|
|
"no-multi-assign": 0,
|
|
"radix": 0,
|
|
"no-alert": 0,
|
|
"prefer-destructuring": 0,
|
|
"no-restricted-globals": [2, "event"],
|
|
"prefer-promise-reject-errors": 0,
|
|
"import/prefer-default-export": 0,
|
|
"import/no-unresolved": 0,
|
|
"import/extensions": [2, "ignorePackages"],
|
|
"object-curly-newline": 0,
|
|
"react/jsx-no-bind": [2, { "ignoreRefs": true }],
|
|
"react/jsx-no-duplicate-props": 2,
|
|
"react/self-closing-comp": 2,
|
|
"react/prefer-es6-class": 2,
|
|
"react/no-string-refs": 2,
|
|
"react/require-render-return": 2,
|
|
"react/no-find-dom-node": 2,
|
|
"react/no-is-mounted": 2,
|
|
"react/jsx-no-comment-textnodes": 2,
|
|
"react/jsx-curly-spacing": 2,
|
|
"react/jsx-no-undef": 2,
|
|
"react/jsx-uses-react": 2,
|
|
"react/jsx-uses-vars": 2
|
|
},
|
|
"plugins": [
|
|
"react"
|
|
]
|
|
}
|