source: frontend/node_modules/eslint-plugin-import/config/flat/react.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 475 bytes
Line 
1/**
2 * Adds `.jsx` as an extension, and enables JSX parsing.
3 *
4 * Even if _you_ aren't using JSX (or .jsx) directly, if your dependencies
5 * define jsnext:main and have JSX internally, you may run into problems
6 * if you don't enable these settings at the top level.
7 */
8module.exports = {
9 settings: {
10 'import/extensions': ['.js', '.jsx', '.mjs', '.cjs'],
11 },
12 languageOptions: {
13 parserOptions: {
14 ecmaFeatures: {
15 jsx: true,
16 },
17 },
18 },
19};
Note: See TracBrowser for help on using the repository browser.