UNPKG

react-gear-chart

Version:
101 lines (89 loc) 3.11 kB
module.exports = { "parser": "babel-eslint", "extends": ["eslint:recommended", "plugin:react/recommended"], "parserOptions": { "ecmaVersion": 6, "sourceType": "module", "ecmaFeatures": { "impliedStrict": true, "jsx": true, "experimentalObjectRestSpread": true } }, "env": { "browser": true, "node": true, "es6": true, "mocha": true }, "plugins": [ "react", "flowtype" ], "globals": { "define": true }, "settings": { "flowtype": { "onlyFilesWithFlowAnnotation": true } }, "rules": { "strict": ["error", "global"], "no-unused-vars": ["error", { "vars": "all", "args": "all", "caughtErrors": "none" }], "no-console": ["warn", { allow: ["warn", "error"] }], "camelcase": ["error", { "properties": "always" }], "consistent-return": "error", "arrow-spacing": "error", "arrow-parens": "off", "arrow-body-style": ["error", "as-needed"], "semi": ["error", "never"], "no-confusing-arrow": ["error", { "allowParens": false }], "no-constant-condition": "error", "no-labels": "error", "no-multiple-empty-lines": ["error", { max: 1, maxEOF: 1 }], "func-style": "off", // ESLint-plugin-React // https://github.com/yannickcr/eslint-plugin-react "react/prop-types": "off", "react/forbid-prop-types": ["error", { "forbid": ["any"] }], "react/jsx-boolean-value": "warn", "react/jsx-closing-bracket-location": "off", "react/jsx-curly-spacing": "warn", "react/jsx-indent-props": "off", "react/jsx-key": "warn", "react/jsx-max-props-per-line": "off", "react/jsx-no-bind": "off", "react/jsx-no-literals": "off", "react/jsx-pascal-case": "warn", "react/jsx-sort-prop-types": "off", "react/sort-props": "off", "react/jsx-wrap-multilines": "error", "react/no-multi-comp": "off", "react/no-set-state": "off", "react/prefer-es6-class": "warn", "react/self-closing-comp": "warn", "react/sort-comp": "off", "react/sort-prop-types": "off", // ESLint-plugin-Flowtype // https://github.com/gajus/eslint-plugin-flowtype#configuration // marks Flow type identifiers as defined 'flowtype/define-flow-type': "error", // requires that all function parameters have type annotations 'flowtype/require-parameter-type': "off", // requires that functions have return type annotation 'flowtype/require-return-type': "off", // makes sure that files have a valid @flow annotation 'flowtype/require-valid-file-annotation': "error", // enforces consistent spacing after the type annotation colon 'flowtype/space-after-type-colon': ["error", 'always'], // enforces consistent spacing before the type annotation colon 'flowtype/space-before-type-colon': ["error", 'never'], // enforces a consistent naming pattern for type aliases 'flowtype/type-id-match': "off", // marks Flow type alias declarations as used 'flowtype/use-flow-type': "off", // checks for simple Flow syntax errors 'flowtype/valid-syntax': "error" } }