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

'use strict';

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

const config = {
	extends: [require.resolve('./react')],
	parserOptions: {
		ecmaFeatures: {
			jsx: true,
		},
	},
	plugins: [local('liferay-portal')],
	rules: {
		'liferay-portal/no-explicit-extend': 'error',
		'liferay-portal/no-global-fetch': 'error',
		'liferay-portal/no-loader-import-specifier': 'error',
		'liferay-portal/no-metal-plugins': 'error',
		'liferay-portal/no-react-dom-render': 'error',
		'liferay-portal/no-side-navigation': 'error',
		'no-restricted-globals': ['error', 'event'],
	},
};

module.exports = config;
