Giter Club home page Giter Club logo

kiprasmel / eslint-config-kiprasmel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wesbos/eslint-config-wesbos

5.0 5.0 3.0 394 KB

๐Ÿ‰ ESLint v5/v7, Prettier & TypeScript setup โ€” supports all environments โ€” global, local, vscode, react, CRA etc.

Home Page: https://npmjs.com/eslint-config-sarpik

License: MIT License

JavaScript 100.00%
all environments eslint global local prettier react sarpik support typescript vscode

eslint-config-kiprasmel's People

Contributors

0xflotus avatar arapl3y avatar dependabot[bot] avatar endormi avatar geoangelotti avatar gillkyle avatar johanquiroga avatar kiprasmel avatar nickymeuleman avatar thebrandonallen avatar vpicone avatar wesbos avatar zaklaughton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

eslint-config-kiprasmel's Issues

React (CRA) broken with eslint `5.x` (manual work-around available)

Issue originally reported by @okovalov ๐Ÿ”ฅ

I will:

  • attempt upgrading eslint to 6.x.
    Previously I've had numerous issues with the v6; it's time to try again.

  • upgrade eslint to 6.x in this config

  • take care of related dependencies to match the upgraded version of eslint.


Edit:

Manual work-around: #3 (comment):

  • upgrade eslint to 6.x in your react app manually, and
  • append --ext js,jsx,ts,tsx every time you call eslint, since v6 seems to require it -- see #4

See also https://github.com/sarpik/eslint-config-sarpik#with-create-react-app

Configuration for rule "no-unused-vars" is invalid

When using the eslint-config-sarpik with the latest version of cra typescript, the commands yarn start and yarn build give this error:

.eslintrc.js ยป eslint-config-sarpik:
Configuration for rule "no-unused-vars" is invalid:
Value {"ignoreSiblings":true,"argsIgnorePattern":"res|next|^err"} should be equal to one of the allowed values.
Value {"ignoreSiblings":true,"argsIgnorePattern":"res|next|^err"} should NOT have additional properties.
Value {"ignoreSiblings":true,"argsIgnorePattern":"res|next|^err"} should match exactly one schema in oneOf.

overriding the rule on my .eslintrc does not change the error

{
  "no-unused-vars": [
    1,
    {
      "ignoreSiblings": true,
      "argsIgnorePattern": "res"
    }
  ]
}

The package.json is

"eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest",
      "sarpik"
    ]
  },
"dependencies": {
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "@types/jest": "^26.0.15",
    "@types/node": "^12.0.0",
    "@types/react": "^16.9.53",
    "@types/react-dom": "^16.9.8",
    "axios": "^0.21.0",
    "bootstrap": "^4.5.3",
    "node-sass": "4.14.1",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.0",
    "react-webcam-barcode-scanner": "^0.0.2-rc2",
    "reactstrap": "^8.7.1",
    "typescript": "3.7.3",
    "web-vitals": "^0.2.4"
  },
"devDependencies": {
    "@types/react-router-dom": "^5.1.6",
    "@types/reactstrap": "^8.7.2",
    "@typescript-eslint/eslint-plugin": "2.11.0",
    "@typescript-eslint/parser": "2.11.0",
    "babel-eslint": "10.0.3",
    "eslint": "6.8.0",
    "eslint-config-airbnb": "18.0.0",
    "eslint-config-prettier": "6.7.0",
    "eslint-config-sarpik": "0.2.8",
    "eslint-plugin-flowtype": "4.5.2",
    "eslint-plugin-html": "6.0.0",
    "eslint-plugin-import": "2.18.0",
    "eslint-plugin-jsx-a11y": "6.2.3",
    "eslint-plugin-monorepo": "0.2.1",
    "eslint-plugin-prettier": "3.0.1",
    "eslint-plugin-react": "7.14.2",
    "eslint-plugin-react-hooks": "2.3.0",
    "esprima": "4.0.1",
    "prettier": "1.16.4"
  }

node version: v14.15.0
npm version: 6.14.8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.