hubs/.eslintrc.js

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

2018-03-30 08:31:18 +03:00
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
es6: true,
node: true
},
globals: {
THREE: true,
AFRAME: true,
NAF: true
},
plugins: ["prettier", "react"],
rules: {
"prettier/prettier": "error",
"prefer-const": "error",
"no-use-before-define": "error",
2018-03-30 08:31:18 +03:00
"no-var": "error",
2018-03-30 10:02:13 +03:00
"no-throw-literal": "error",
2018-03-30 08:31:18 +03:00
// Light console usage is useful but remove debug logs before merging to master.
"no-console": "off"
},
extends: ["prettier", "plugin:react/recommended", "eslint:recommended"]
};