"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const getImportSettings_1 = __importDefault(require("../../helpers/getImportSettings"));
const utils_1 = require("../../utils");
const reactTypescriptExtensionsConfig = [
    {
        name: 'airbnb/config/react-typescript-react',
        files: utils_1.tsFiles,
        rules: {
            // only .jsx and .tsx files may have JSX
            // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
            'react/jsx-filename-extension': [
                'error',
                {
                    extensions: ['.jsx', '.tsx'],
                },
            ],
        },
    },
    {
        name: 'airbnb/config/react-typescript-settings-extensions-configurations',
        files: utils_1.tsFiles,
        settings: (0, getImportSettings_1.default)({ javascript: false, typescript: true, jsx: true }),
    },
];
exports.default = reactTypescriptExtensionsConfig;
