Git Product home page Git Product logo

eslint-prettier-airbnb-react's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eslint-prettier-airbnb-react's Issues

Running npm run start

To fix the dependency tree, try following the steps below in the exact order:

  1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
  2. Delete node_modules in your project folder.
  3. Remove "babel-eslint" from dependencies and/or devDependencies in the package.json file in your project folder.
  4. Run npm install or yarn, depending on the package manager you use.

In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:

  1. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
    This may help because npm has known issues with package hoisting which may get resolved in future versions.

  2. Check if C:\Users\klmaa\OneDrive\Bureaublad\dexhub\client\node_modules\babel-eslint is outside your project directory.
    For example, you might have accidentally installed something in your home folder.

  3. Try running npm ls babel-eslint in your project folder.
    This will tell you which other package (apart from the expected react-scripts) installed babel-eslint.

If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.

P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\klmaa\AppData\Roaming\npm-cache_logs\2020-10-22T15_14_13_603Z-debug.log

I keep getting these , any idea how to solve this?

Does this modifies package.json?

Does this script modifies package.json to add all the dependencies?
Because I'm running the script and it only adds files to node_modeles (besides the configuration files for eslint and prettier).

Changing settings via the .prettierrc.json file does not work

Running the command given in the README file, generates this .prettierrc file

{
  "printWidth": 100,
  "singleQuote": true,
  "trailingComma": "none"
}

This includes the printWidth that was set during the setup procedure (100) as the maximum line length. However, this does not limit the line length to 100 characters. It instead limits them to 80 characters. I also observed a similar issue with the singleQuotes setting. Turning it off,singleQuotes: false, will not work and on saving the file, it will still permit single quotes within the current file.

This may be due to the fact that there are already enforced restrictions in the generated .eslintrc. Something like :-

    "quotes": [
      2,
      "single",
      {
        "avoidEscape": true,
        "allowTemplateLiterals": true
      }
    ],

I believe doing it this way would make the prettierrc file redundant for the most part.

Cannot run the script

PS C:\Users\dafaa\Documents\Project\FUN PROJECT\instagram-clone> exec 3<&1;bash <&3 <(curl https://raw.githubusercontent.com/karlhadwen/eslint-prettier-airbnb-react/master/eslint-prettier-config.sh 2> /dev/null)
At line:1 char:8
+ exec 3<&1;bash <&3 <(curl https://raw.githubusercontent.com/karlhadwe ...
+        ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a   
string.
At line:1 char:17
+ exec 3<&1;bash <&3 <(curl https://raw.githubusercontent.com/karlhadwe ...
+                 ~
Missing file specification after redirection operator.
At line:1 char:16
+ exec 3<&1;bash <&3 <(curl https://raw.githubusercontent.com/karlhadwe ...
+                ~
The '<' operator is reserved for future use.
At line:1 char:17
+ exec 3<&1;bash <&3 <(curl https://raw.githubusercontent.com/karlhadwe ...
+                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a   
string.
At line:1 char:20
+ exec 3<&1;bash <&3 <(curl https://raw.githubusercontent.com/karlhadwe ...
+                    ~
The '<' operator is reserved for future use.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmpersandNotAllowed

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.