fix: ESLint no-undef
This commit is contained in:
Родитель
a2515468d5
Коммит
ab92e4367c
|
@ -4,11 +4,9 @@ module.exports = {
|
|||
overrides: [
|
||||
{
|
||||
files: ['**/*.js'],
|
||||
rules: {
|
||||
'no-undef': 'off',
|
||||
},
|
||||
env: {
|
||||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
@ -27,8 +27,8 @@ module.exports = function (graphApi) {
|
|||
|
||||
// 1: load URL/resource links from a parallel painless config environment
|
||||
if (pkg && pkg[painlessConfigEnvPkgName] && environmentName) {
|
||||
try {
|
||||
let pkgName = pkg[painlessConfigEnvPkgName];
|
||||
try {
|
||||
if (pkgName.startsWith('./')) {
|
||||
pkgName = path.join(typescriptConfig.appDirectory, pkgName);
|
||||
}
|
||||
|
|
|
@ -44,8 +44,8 @@ module.exports = (graphApi) => {
|
|||
|
||||
if (templateSourceType === 'fs') {
|
||||
templates.directory = path.join(typescriptConfig.appDirectory, templates.directory);
|
||||
try {
|
||||
const filename = path.join(templates.directory, 'definitions.json');
|
||||
try {
|
||||
const str = fs.readFileSync(filename, 'utf8');
|
||||
templates.definitions = JSON.parse(str);
|
||||
} catch (notFound) {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-env browser,jquery */
|
||||
var timer;
|
||||
var inputQuery = $('#inputQuery');
|
||||
inputQuery.on('keyup input', function () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче