{"id":17472530,"url":"https://github.com/shinnn/stylelint-formatter-simplest","last_synced_at":"2026-05-02T14:34:47.984Z","repository":{"id":65997878,"uuid":"145636032","full_name":"shinnn/stylelint-formatter-simplest","owner":"shinnn","description":"A stylelint formatter to just identify whether there're any warnings or not","archived":false,"fork":false,"pushed_at":"2018-08-22T01:00:37.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-18T19:56:40.616Z","etag":null,"topics":["formatter","javascript","lint","nodejs","simple","styelint","stylelint-formatter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-22T00:51:19.000Z","updated_at":"2018-08-24T12:17:13.000Z","dependencies_parsed_at":"2023-06-05T08:00:47.909Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/stylelint-formatter-simplest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fstylelint-formatter-simplest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fstylelint-formatter-simplest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fstylelint-formatter-simplest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fstylelint-formatter-simplest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/stylelint-formatter-simplest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991582,"owners_count":20706129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formatter","javascript","lint","nodejs","simple","styelint","stylelint-formatter"],"created_at":"2024-10-18T17:25:53.150Z","updated_at":"2026-05-02T14:34:47.939Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylelint-formatter-simplest\n\n[![npm version](https://img.shields.io/npm/v/stylelint-formatter-simplest.svg)](https://www.npmjs.com/package/stylelint-formatter-simplest)\n[![Build Status](https://travis-ci.com/shinnn/stylelint-formatter-simplest.svg?branch=master)](https://travis-ci.com/shinnn/stylelint-formatter-simplest)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/stylelint-formatter-simplest.svg)](https://coveralls.io/github/shinnn/stylelint-formatter-simplest?branch=master)\n\nA [stylelint](https://github.com/stylelint/stylelint) [formatter](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/node-api.md#formatter) to just identify whether there's any warnings or not\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).\n\n```\nnpm install stylelint-formatter-simplest\n```\n\n## API\n\n```javascript\nconst stylelintFormatterSimplest = require('stylelint-formatter-simplest');\n```\n\n### stylelintFormatterSimplest(*stylelintResults*)\n\n*stylelintResults*: `Array\u003cObject\u003e`  \nReturn: `string` (`'!'` or `''`)\n\nWhen at least one of the [stylelint result](https://github.com/stylelint/stylelint/blob/master/docs/developer-guide/formatters.md)s is not [ignore](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#stylelintignore)d and has either non-empty `warnings` or `invalidOptionWarnings`, it returns a single character `!`. Otherwise it returns an empty string.\n\n```javascript\nstylelintFormatterSimplest([{\n  source: '/Users/shinnn/fixture.css',\n  deprecations: [],\n  invalidOptionWarnings: [],\n  parseErrors: [],\n  errored: true,\n  warnings: [{\n    line: 1,\n    column: 2,\n    rule: 'block-no-empty',\n    severity: 'error',\n    text: 'Unexpected empty block (block-no-empty)'\n  }],\n  ignored: false\n}]); //=\u003e '!'\n\nstylelintFormatterSimplest([{\n  source: '/Users/shinnn/another-fixture.css',\n  deprecations: [],\n  invalidOptionWarnings: [],\n  parseErrors: [],\n  errored: false,\n  warnings: [],\n  ignored: false\n}]); //=\u003e ''\n```\n\n## License\n\n[ISC License](./LICENSE) © 2018 Shinnosuke Watanabe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fstylelint-formatter-simplest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Fstylelint-formatter-simplest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fstylelint-formatter-simplest/lists"}