Comments (3)
That's because snazzy
is designed to convert from "compact" format, not from "stylish" format. By default, eslint outputs "stylish".
Why do you even need snazzy
if you're using eslint directly? It doesn't look like it's changing the output at all.
from snazzy.
@feross Could you please re-open this issue.
We use snazzy with standardx, the goal is to add warnings on max-len
, complexity
, no-console
, ...
Here is an example, with snazzy:
> standardx --verbose | snazzy
standardx: Use JavaScript Standard Style (tweaked by standardx) (https://github.com/standard/standardx)
/Users/olivier/Projects/Sagacify/sagastandard-test/index.js
4:3 error Unexpected console statement no-console
✖ 1 problem
npm ERR! code 1
npm ERR! path /Users/olivier/Projects/Sagacify/sagastandard-test
npm ERR! command failed
npm ERR! command sh -c standardx --verbose | snazzy
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/olivier/.npm/_logs/2021-01-21T10_38_18_612Z-debug.lo
Without snazzy:
> standardx --verbose
standardx: Use JavaScript Standard Style (tweaked by standardx) (https://github.com/standard/standardx)
/Users/olivier/Projects/Sagacify/sagastandard-test/index.js:4:3: Unexpected console statement. (no-console)
We would like to differentiate error vs warning so this can be used for local dev and for the CI.
from snazzy.
At the end we used directly eslint extending eslint-config-standard
with our addition rules and with eslint -f stylish .
command.
Sorry for the bothering...
from snazzy.
Related Issues (19)
- Error running `snazzy` HOT 10
- Support version node 0.8.0 HOT 3
- snazzy --stdin doesn't work HOT 3
- snazzy gives incorrect message for "Missing '()' invoking a constructor" HOT 3
- Have Snazzy output the same exit code as Standard HOT 3
- Incompatible with standard 10 HOT 4
- Please update to chalk HOT 3
- Formatting standard itself HOT 1
- TypeError: chalk.stripColor is not a function HOT 2
- happy state? HOT 4
- Changelog Missing HOT 1
- Add warning support to Snazzy to allow Standard 17 HOT 4
- Upgrade to standard@5 HOT 1
- I want to join and your development full control program file HOT 1
- 在 YouTube 上觀看「Hacking Live Streams」
- Not all errors are displayed when piping linter output into snazzy HOT 2
- Cannot find module 'eslint-plugin-react' with Node 4.2.6 (5.6 works) HOT 16
- Issue with solarized-dark HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snazzy.