You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

77 lines
2.5 KiB

7 years ago
{
"env": {
"es6": true,
"node" : true,
"browser" : true,
"webextensions": true
7 years ago
},
7 years ago
"plugins": ["react"],
7 years ago
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
7 years ago
"extends": [ "eslint:all", "plugin:react/recommended" ],
7 years ago
"rules": {
7 years ago
"array-bracket-newline": ["error", { "multiline": true }],
"array-element-newline": "off",
7 years ago
"arrow-body-style": "off",
7 years ago
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
7 years ago
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
7 years ago
"capitalized-comments": "off",
"class-methods-use-this": "off",
7 years ago
"comma-dangle": "off",
"consistent-return": "off",
"default-case": "off",
7 years ago
"dot-location": ["error", "property"],
7 years ago
"function-paren-newline": "off",
7 years ago
"id-length": "off",
"indent": ["error", 2],
7 years ago
"jsx-quotes": ["error", "prefer-single"],
6 years ago
"max-classes-per-file": "off",
"max-params": ["error", 5],
7 years ago
"max-statements": ["error", 15],
"multiline-comment-style": "off",
7 years ago
"multiline-ternary": "off",
7 years ago
"newline-after-var": "off",
"newline-before-return": "off",
7 years ago
"newline-per-chained-call": "off",
"no-alert": "off",
7 years ago
"no-bitwise": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
6 years ago
"no-continue": "off",
7 years ago
"no-empty-function": "off",
7 years ago
"no-magic-numbers": "off",
7 years ago
"no-mixed-operators": "off",
"no-plusplus": "off",
7 years ago
"no-ternary": "off",
7 years ago
"no-undefined": "off",
7 years ago
"no-undef-init": "off",
7 years ago
"no-unused-vars": ["error", { "varsIgnorePattern": "h" }],
7 years ago
"no-use-before-define": "off",
"no-warning-comments": "off",
7 years ago
"object-curly-newline": ["error", { "consistent": true }],
7 years ago
"object-curly-spacing": ["error", "always", { "arraysInObjects": false, "objectsInObjects": false }],
7 years ago
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
7 years ago
"object-shorthand": "off",
7 years ago
"one-var": "off",
7 years ago
"padded-blocks": "off",
7 years ago
"prefer-const": "off",
"prefer-destructuring": ["error", { "AssignmentExpression": {"array": false}}],
7 years ago
"prefer-template": "off",
7 years ago
"quote-props": "off",
7 years ago
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
7 years ago
"require-jsdoc": "off",
6 years ago
"require-unicode-regexp": "off",
7 years ago
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
7 years ago
"space-before-function-paren": ["error", "never"],
"react/jsx-indent": ["error", 2],
"react/prop-types": "off",
7 years ago
"react/react-in-jsx-scope": "off"
7 years ago
}
}