mirror of
https://github.com/flarum/core.git
synced 2025-07-22 09:11:19 +02:00
Allow some more globals in eslint
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"parser": "babel-eslint", // https://github.com/babel/babel-eslint
|
"parser": "babel-eslint", // https://github.com/babel/babel-eslint
|
||||||
"env": { // http://eslint.org/docs/user-guide/configuring.html#specifying-environments
|
"env": { // http://eslint.org/docs/user-guide/configuring.html#specifying-environments
|
||||||
"browser": true // browser global variables
|
"browser": true // browser global variables
|
||||||
},
|
},
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
"arrowFunctions": true,
|
"arrowFunctions": true,
|
||||||
@@ -22,7 +22,10 @@
|
|||||||
"jsx": true
|
"jsx": true
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"m": true
|
"m": true,
|
||||||
|
"app": true,
|
||||||
|
"$": true,
|
||||||
|
"moment": true
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user