/**
 * © 2017 Liferay, Inc. <https://liferay.com>
 *
 * SPDX-License-Identifier: MIT
 */

'use strict';

const local = require('./utils/local');

const config = {
	extends: [require.resolve('./index')],
	parserOptions: {
		ecmaFeatures: {
			jsx: true,
		},
	},
	plugins: [local('liferay-portal')],
	rules: {
		'liferay-portal/no-side-navigation': 'error',
	},
};

module.exports = config;

@@ -98,16 +98,72 @@
 rict';%0A%0A
+const fs = require('fs');%0Aconst path = require('path');%0A
 const lo
@@ -414,16 +414,518 @@
 %09%7D,%0A%7D;%0A%0A
+/**%0A * The standard configuration (in %22./index%22) only looks for a template%0A * in the current working directory; here we make things work when run from a%0A * project directory of the form %22modules/apps/foo/bar%22 in the liferay-portal%0A * repo.%0A */%0Aif (%0A%09path.basename(process.cwd()) !== 'modules' &&%0A%09path.basename(path.resolve('../../..')) === 'modules' &&%0A%09fs.existsSync('../../../copyright.js')%0A) %7B%0A%09config.rules%5B'notice/notice'%5D = %5B%0A%09%09'error',%0A%09%09%7B%0A%09%09%09templateFile: '../../../copyright.js',%0A%09%09%7D,%0A%09%5D;%0A%7D%0A%0A
 module.e

make notice/notice plugin work in liferay-portal projects