Spoke/.eslintrc.js

25 строки
594 B
JavaScript
Исходник Обычный вид История

2018-05-29 04:35:21 +03:00
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
es6: true,
node: true
},
globals: {
2018-06-06 08:55:27 +03:00
THREE: true,
Components: true
2018-05-29 04:35:21 +03:00
},
plugins: ["prettier", "react"],
rules: {
"prettier/prettier": "error",
"prefer-const": "error",
"no-use-before-define": "error",
"no-var": "error",
"no-throw-literal": "error",
// Light console usage is useful but remove debug logs before merging to master.
"no-console": "off",
"lines-between-class-members": 2
2018-05-29 04:35:21 +03:00
},
extends: ["prettier", "plugin:react/recommended", "eslint:recommended"]
};