karlhadwen / eslint-prettier-airbnb-react Goto Github PK
View Code? Open in Web Editor NEWESlint + Prettier + Airbnb Style Guide Configuration for React
ESlint + Prettier + Airbnb Style Guide Configuration for React
To fix the dependency tree, try following the steps below in the exact order:
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:
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.
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.
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 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).
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.