sinonjs / eslint-config Goto Github PK
View Code? Open in Web Editor NEWCommon eslint config for Sinon
License: Other
Common eslint config for Sinon
License: Other
Noticed this when trying out sinonjs/sinon#262 manually. It failed when I tried to run the precommit step, due to not having the prettier eslint plugin.
This implicit dependency was introduced in 849e706:
+const prettier = {
+ "prettier/prettier": "error"
+};
+
module.exports = {
+ "extends": ["plugin:prettier/recommended"],
"env": {
"browser": true,
"node": true,
@@ -298,6 +302,7 @@ module.exports = {
"ecmaVersion": 5,
"ecmaFeatures": {},
},
+ "plugins": ["prettier"],
The full error in lolex is
> eslint .
Oops! Something went wrong! :(
ESLint: 6.5.1.
ESLint couldn't find the plugin "eslint-plugin-prettier".
(The package "eslint-plugin-prettier" was not found when loaded as a Node module from the directory "/Users/carlerik/dev/lolex".)
It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
npm install eslint-plugin-prettier@latest --save-dev
The plugin "eslint-plugin-prettier" was referenced from the config file in "package.json » eslint-config-sinon".
If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.
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.