markdown Eslint没有projeto

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Eslint没有projeto相关的知识,希望对你有一定的参考价值。

## Instalação dos pacotes
`yarn add eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react -D`

## ".eslintrc.json" na raiz do projeto
```json
{
  "env": {
    "browser": true,
    "jest": true,
    "es6": true
  },
  "extends": ["react-app", "airbnb"],
  "plugins": ["import", "jsx-a11y", "react"],
  "rules": {
    "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"]}],
    "import/prefer-default-export": "off",
    "react/jsx-one-expression-per-line": "off"
  }
}

```

以上是关于markdown Eslint没有projeto的主要内容,如果未能解决你的问题,请参考以下文章

markdown Projetos [前端]

markdown Iniciando projeto com venv

markdown Como criar um novo projeto utilizar o Angular CLI

markdown [ESLint js] Js代码检查器#eslint #js

markdown Eslint配置

markdown Eslint提示