PIbd-21_Danilov_V.V._Intern.../Lab4/node_modules/eslint-plugin-react/index.js
Владимир Данилов ab1cc7aeac Отчет лаб 4
2024-01-09 05:30:48 +04:00

32 lines
815 B
JavaScript

'use strict';
const configAll = require('./configs/all');
const configRecommended = require('./configs/recommended');
const configRuntime = require('./configs/jsx-runtime');
const allRules = require('./lib/rules');
// for legacy config system
const plugins = [
'react',
];
module.exports = {
deprecatedRules: configAll.plugins.react.deprecatedRules,
rules: allRules,
configs: {
recommended: Object.assign({}, configRecommended, {
parserOptions: configRecommended.languageOptions.parserOptions,
plugins,
}),
all: Object.assign({}, configAll, {
parserOptions: configAll.languageOptions.parserOptions,
plugins,
}),
'jsx-runtime': Object.assign({}, configRuntime, {
parserOptions: configRuntime.languageOptions.parserOptions,
plugins,
}),
},
};