From 2e12833456582ee362d29ce7a3ff12035d008579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Thu, 16 Dec 2021 18:04:30 +0100 Subject: [PATCH] chore(config): move Stylelint to package.json and drop contribute.json --- .gitattributes | 25 ++++--------------------- .stylelintrc.json | 25 ------------------------- contribute.json | 27 --------------------------- package.json | 25 +++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 73 deletions(-) delete mode 100644 .stylelintrc.json delete mode 100644 contribute.json diff --git a/.gitattributes b/.gitattributes index 412eeda7..dc0e12c7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,22 +1,5 @@ -# Auto detect text files and perform LF normalization -* text=auto +# Enforce Unix newlines +* text=auto eol=lf -# Custom for Visual Studio -*.cs diff=csharp -*.sln merge=union -*.csproj merge=union -*.vbproj merge=union -*.fsproj merge=union -*.dbproj merge=union - -# Standard to msysgit -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain +# Don't diff or textually merge source maps +*.map binary diff --git a/.stylelintrc.json b/.stylelintrc.json deleted file mode 100644 index 5c5af8ff..00000000 --- a/.stylelintrc.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": "stylelint-config-standard-scss", - "rules": { - "no-invalid-position-at-import-rule": null, - "comment-whitespace-inside": null, - "string-quotes": null, - "color-function-notation": null, - "at-rule-empty-line-before": null, - "declaration-empty-line-before": null, - "comment-empty-line-before": null, - "max-line-length": 365, - "max-empty-lines": 2, - "no-duplicate-selectors": null, - "no-descending-specificity": null, - "selector-type-no-unknown": null, - "selector-list-comma-newline-after": null, - "number-leading-zero": null, - "scss/no-global-function-names": null, - "scss/operator-no-newline-before": null, - "scss/dollar-variable-colon-space-after": null, - "scss/function-quote-no-quoted-strings-inside": null, - "scss/function-unquote-no-unquoted-strings-inside": null, - "scss/dollar-variable-empty-line-before": null - } -} diff --git a/contribute.json b/contribute.json deleted file mode 100644 index 8dac22a3..00000000 --- a/contribute.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "a11y.css", - "description": "This file aims to warn front-end devs about mistakes and potential accessibility failures - but it also helps to rate client-side code and to spot its weaknesses.", - "repository": { - "url": "https://github.com/ffoodd/a11y.css", - "license": "MIT", - "tests": "https://travis-ci.org/ffoodd/a11y.css" - }, - "participate": { - "home": "https://ffoodd.github.io/a11y.css/", - "docs": "https://ffoodd.github.io/a11y.css/docs.html", - "wiki": "https://github.com/ffoodd/a11y.css/wiki" - }, - "bugs": { - "list": "https://github.com/ffoodd/a11y.css/issues", - "report": "https://github.com/ffoodd/a11y.css/issues/new" - }, - "keywords": [ - "a11y", - "css", - "json", - "sass", - "eleventy", - "accessibility", - "html" - ] -} diff --git a/package.json b/package.json index bd784ad6..e3fd25be 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,31 @@ "uglify-es": "^3.3.9", "webextension-polyfill": "^0.4.0" }, + "stylelint": { + "extends": "stylelint-config-standard-scss", + "rules": { + "no-invalid-position-at-import-rule": null, + "comment-whitespace-inside": null, + "string-quotes": null, + "color-function-notation": null, + "at-rule-empty-line-before": null, + "declaration-empty-line-before": null, + "comment-empty-line-before": null, + "max-line-length": 365, + "max-empty-lines": 2, + "no-duplicate-selectors": null, + "no-descending-specificity": null, + "selector-type-no-unknown": null, + "selector-list-comma-newline-after": null, + "number-leading-zero": null, + "scss/no-global-function-names": null, + "scss/operator-no-newline-before": null, + "scss/dollar-variable-colon-space-after": null, + "scss/function-quote-no-quoted-strings-inside": null, + "scss/function-unquote-no-unquoted-strings-inside": null, + "scss/dollar-variable-empty-line-before": null + } + }, "bundlewatch": { "files": [ {