зеркало из https://github.com/mozilla/hubs.git
25 строки
567 B
JavaScript
25 строки
567 B
JavaScript
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",
|
|
"no-var": "error",
|
|
"no-throw-literal": "error",
|
|
// Light console usage is useful but remove debug logs before merging to master.
|
|
"no-console": "off"
|
|
},
|
|
extends: ["prettier", "plugin:react/recommended", "eslint:recommended"]
|
|
};
|