{"id":20020660,"url":"https://github.com/netcentric/stylelint-config","last_synced_at":"2025-05-05T01:30:43.676Z","repository":{"id":37434407,"uuid":"427323442","full_name":"Netcentric/stylelint-config","owner":"Netcentric","description":"Cognizant Netcentric's coding and style rules for Stylelint","archived":false,"fork":false,"pushed_at":"2024-06-25T11:31:32.000Z","size":144,"stargazers_count":4,"open_issues_count":5,"forks_count":1,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-08-09T07:41:54.088Z","etag":null,"topics":["netcentric","stylelint","stylelint-config"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Netcentric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","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":"2021-11-12T10:45:09.000Z","updated_at":"2024-06-25T11:31:36.000Z","dependencies_parsed_at":"2024-01-04T13:28:26.360Z","dependency_job_id":"bdd7590c-bd2f-4a9e-bd64-5b696dc75f45","html_url":"https://github.com/Netcentric/stylelint-config","commit_stats":{"total_commits":20,"total_committers":5,"mean_commits":4.0,"dds":0.55,"last_synced_commit":"8ddc2109cc5a7633e8595cedfd83be3613c0594c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fstylelint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fstylelint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fstylelint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fstylelint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Netcentric","download_url":"https://codeload.github.com/Netcentric/stylelint-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252422932,"owners_count":21745515,"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":["netcentric","stylelint","stylelint-config"],"created_at":"2024-11-13T08:33:32.976Z","updated_at":"2025-05-05T01:30:43.316Z","avatar_url":"https://github.com/Netcentric.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @netcentric/stylelint-config\n\n[![Version](https://img.shields.io/npm/v/@netcentric/stylelint-config.svg)](https://npmjs.org/package/@netcentric/stylelint-config)\n[![Build Status](https://github.com/netcentric/stylelint-config/workflows/CI/badge.svg?branch=main)](https://github.com/netcentric/stylelint-config/actions)\n[![CodeQL Analysis](https://github.com/netcentric/stylelint-config/workflows/CodeQL/badge.svg?branch=main)](https://github.com/netcentric/stylelint-config/actions)\n[![semver: semantic-release](https://img.shields.io/badge/semver-semantic--release-blue.svg)](https://github.com/semantic-release/semantic-release)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nIf StyleLint is new to you, you might want to check out  [what it does](https://stylelint.io/) and [how to configure it](https://stylelint.io/user-guide/configure/).\n\n## Install\n\n```bash\nnpm install --save-dev @netcentric/stylelint-config stylelint\n```\n\n## Setup\n\n### .stylelintrc\n\nCreate or update your `.stylelintrc` file in the folder of your project's `package.json`:\n\n```json\n{\n  \"extends\": \"@netcentric/stylelint-config\"\n}\n```\n\nPlease do not add it as a property `stylelint` within the `package.json` as it is not supported by all essential IDEs (e.g. Webstorm wouldn't pick it).\n\nNote that Stylelint is different to eslint as it uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) to load the configuration file. Biggest difference: the first config file it finds is used, and it will stop looking for further files in upper folders. That means, you only can define one `.stylelintrc`  file, preferably on the same folder as your project's `package.json`.\n\n## IDE integration\n\nMost IDEs should have an [integration for Stylelint](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/complementary-tools.md#editor-plugins).\n\n## Build system integration\n\nIn your `package.json`\n\n```json\n  \"scripts\": {\n    \"lint\": \"stylelint \"\\\"\u003croot-css-files\u003e/**/*.css\\\"\"\n  }\n```\n\nMake sure you do not accidently lint files you are not interested that are out of scope for your build; e.g. files within the `node_modules` folder.\n\n## Overwriting rules\n\nPlease stick to the Netcentric rules as they are battle tested and were created to form a company wide basis for CSS code quality. If there's a very specific case you want to deactivate a rule for consider using [StyleLint inline comments](http://stylelint.io/user-guide/configuration/#turning-rules-off-from-within-your-css) instead.\n\nIf there's a rule you consider as outdated or simply wrong please contact the package's maintainer or file an issue in JIRA (`bugs` in `package.json`) or create a PR on the package's repository (`repository` in `package.json`).\n\nIf you have a very project specific case where adding or deactivating a rule makes perfectly sense, you can overwrite any rule using the `rules` property.\n\n## I don't understand why I violated rule X\n\nYou can find a description of all rules on the [Stylelint Homepage](http://stylelint.io/user-guide/rules/).\n\n## Plugins\n\n### no-unsupported-browser-features\n\n[https://github.com/ismay/stylelint-no-unsupported-browser-features](https://github.com/ismay/stylelint-no-unsupported-browser-features)\n\nWhen working with this plugin we've found some browser issues that might help you save some time investigating:\n\n```javascript\n\"plugin/no-unsupported-browser-features\": [true, {\n  severity: `warning`,\n  browsers,\n  ignore: [\n    // \"css-hyphens\" is only partially supported by Chrome and Android Browser 56\n    // autoprefixer does the job\n    `css-hyphens`,\n    // we expect full CSS grid support on target browsers nowadays\n    `multicolumn`,\n    // most of the values are well supported, just clip is partially suppported by Safari\n    'css-overflow',\n    // most of the values are well supported, just old versions of Firefox and Safari have a few issues with transparent colors\n    'css-gradients',\n    // following rules need to be disabled if using SCSS, since the CSS nesting is going to be converted to compatible CSS by the build tools\n    'css-nesting',\n    'css-when-else',\n    // it might give false positives when using together with SCSS functions, such as column-gap: scss-function();\n    'column-gap',\n  ]\n}],\n```\n\n### @stylistic/stylelint-plugin\n\n[@stylistic/stylelint-plugin](https://www.npmjs.com/package/@stylistic/stylelint-plugin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcentric%2Fstylelint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetcentric%2Fstylelint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcentric%2Fstylelint-config/lists"}