No tienes acceso a esta clase

¡Continúa aprendiendo! Únete y comienza a potenciar tu carrera

Definir requerimientos

3/15
Recursos

Aportes 2

Preguntas 2

Ordenar por:

¿Quieres ver más aportes, preguntas y respuestas de la comunidad?

npm install @emotion/css
"devDependencies": {
    "@babel/cli": "^7.17.6",
    "@babel/core": "^7.17.7",
    "@babel/eslint-parser": "^7.17.0",
    "@babel/plugin-transform-runtime": "^7.17.0",
    "@babel/preset-env": "^7.16.11",
    "@babel/preset-react": "^7.16.7",
    "@testing-library/dom": "^8.11.3",
    "@testing-library/jest-dom": "^5.16.2",
    "@testing-library/react": "^12.1.4",
    "babel-loader": "^8.2.3",
    "babel-preset-minify": "^0.5.1",
    "eslint": "^8.11.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-import": "^2.25.4",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-react": "^7.29.4",
    "jest": "^27.5.1",
    "prettier": "^2.5.1",
    "prop-types": "^15.8.1",
    "react": "^17.0.2",
    "react-dom": "^17.0.2"
  }

.gitignore:

node_modules

.eslintrc.js:

module.exports = {
    env: {
        browser: true,
        es2021: true,
        jest: true,
    },
    extends: ['eslint:recommended', 'plugin:react/recommended', 'airbnb', 'airbnb/hooks', 'prettier'],
    parserOptions: {
        ecmaFeatures: {
            jsx: true,
        },
        ecmaVersion: 13,
        sourceType: 'module',
    },
    plugins: ['react', 'prettier'],
    rules: {
        'import/prefer-default-export': 'off',
        'import/no-unresolved': 'off',
        'arrow-body-style': 'off',
        'react/jsx-fragments': ['error', 'element'],
        'import/no-extraneous-dependencies': 'off',
        'react/function-component-definition': [
            'error',
            {
                namedComponents: 'arrow-function',
            },
        ],
    },
    overrides: [
        {
            files: ['./src/components/**/index.js'],
            rules: {
                'no-restricted-exports': 'off',
            },
        },
    ],
  };

.prettierrc:

{
  "trailingComma": "es5",
  "semi": true,
  "singleQuote": true
}

babel.config.js:

module.exports = {
    presets: ['@babel/preset-env', ['@babel/preset-react', { runtime: 'automatic' }], 'minify'],
    plugins: ['@babel/plugin-transform-runtime']
  };

config/test.config.js:

module.exports = {
    presets: ['@babel/preset-env', ['@babel/preset-react', { runtime: 'automatic' }], 'minify'],
    plugins: ['@babel/plugin-transform-runtime']
  };

config/jest.config.js:

module.exports = {
    rootDir: '../',
    testPathIgnorePatterns: ['<rootDir>/node_modules/'],
    setupFilesAfterEnv: ['<rootDir>/config/tests.config.js'],
    testEnvironment: 'jsdom',
    modulePathIgnorePatterns: ['dist']
  };

Linea 36 jest ha salido del chat