securityos/node_modules/eslint-plugin-react/configs/jsx-runtime.js

19 lines
546 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
const all = require('./all');
module.exports = Object.assign({}, all, {
languageOptions: Object.assign({}, all.languageOptions, {
parserOptions: Object.assign({}, all.languageOptions.parserOptions, {
jsxPragma: null, // for @typescript/eslint-parser
}),
}),
rules: {
'react/react-in-jsx-scope': 0,
'react/jsx-uses-react': 0,
},
});
// this is so the `languageOptions` property won't be warned in the new config system
Object.defineProperty(module.exports, 'languageOptions', { enumerable: false });