josh-stillman / lintier Goto Github PK
View Code? Open in Web Editor NEWCLI to setup Eslint & Prettier in Typescript projects.
Home Page: https://www.npmjs.com/package/lintier
CLI to setup Eslint & Prettier in Typescript projects.
Home Page: https://www.npmjs.com/package/lintier
Hey,
it seems like the e2e test work fine but npx linter
fails on a fresh project that just had npm init
run before.
The error is that it seems that eslint-plugin-import
and eslint-config-airbnb-typescript
can fully resolve the dependencies.
Edit: When using yarn yarn init
and then ending a random dep so that yarn.lock
is created npx linter
works without any issues, seems to be an npm issue
?
Log:
PS A:\Git\Notification-Bot> npx lintier
? Install which plugins? Node
? Install AirBnb Style Guide Config? Yes
? Install lint-staged? Yes
โ Installing dependencies...
/ Installing airbnb...Error: Command failed with exit code 1: npm install eslint-config-airbnb-typescript -E -D
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint-plugin-import
npm ERR! dev eslint-plugin-import@"2.25.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-import@"^2.25.3" from [email protected]
npm ERR! node_modules/eslint-config-airbnb-typescript
npm ERR! dev eslint-config-airbnb-typescript@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\Artur\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Artur\AppData\Local\npm-cache\_logs\2022-04-16T12_25_21_182Z-debug-0.log
at makeError (C:\Users\Artur\AppData\Local\npm-cache\_npx\c474b1945def7d56\node_modules\execa\lib\error.js:59:11)
at handlePromise (C:\Users\Artur\AppData\Local\npm-cache\_npx\c474b1945def7d56\node_modules\execa\index.js:114:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
shortMessage: 'Command failed with exit code 1: npm install eslint-config-airbnb-typescript -E -D',
command: 'npm install eslint-config-airbnb-typescript -E -D',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: 'npm ERR! code ERESOLVE\n' +
'npm ERR! ERESOLVE unable to resolve dependency tree\n' +
'npm ERR! \n' +
'npm ERR! While resolving: [email protected]\n' +
'npm ERR! Found: [email protected]\n' +
'npm ERR! node_modules/eslint-plugin-import\n' +
'npm ERR! dev eslint-plugin-import@"2.25.2" from the root project\n' +
'npm ERR! \n' +
'npm ERR! Could not resolve dependency:\n' +
'npm ERR! peer eslint-plugin-import@"^2.25.3" from [email protected]\n' +
'npm ERR! node_modules/eslint-config-airbnb-typescript\n' +
'npm ERR! dev eslint-config-airbnb-typescript@"*" from the root project\n' +
'npm ERR! \n' +
'npm ERR! Fix the upstream dependency conflict, or retry\n' +
'npm ERR! this command with --force, or --legacy-peer-deps\n' +
'npm ERR! to accept an incorrect (and potentially broken) dependency resolution.\n' +
'npm ERR! \n' +
'npm ERR! See C:\\Users\\Artur\\AppData\\Local\\npm-cache\\eresolve-report.txt for a full report.\n' +
'\n' +
'npm ERR! A complete log of this run can be found in:\n' +
'npm ERR! C:\\Users\\Artur\\AppData\\Local\\npm-cache\\_logs\\2022-04-16T12_25_21_182Z-debug-0.log',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
\ Installing airbnb...Terminate batch job (Y/N)? y
I have tried to manually rerun the commands with --force
without any success.
Regards,
Artur
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.