From 8760923593ecc7a65530bd4fb32a1a34cbacf4cf Mon Sep 17 00:00:00 2001 From: Jozef Harag <32jojo32@gmail.com> Date: Mon, 15 Jun 2020 15:38:34 +0200 Subject: [PATCH] Add stylelint-config-base (#30) --- packages/stylelint-config-base/.npmrc | 1 + packages/stylelint-config-base/index.js | 18 +++++++++++++++++ packages/stylelint-config-base/package.json | 22 +++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 120000 packages/stylelint-config-base/.npmrc create mode 100644 packages/stylelint-config-base/index.js create mode 100644 packages/stylelint-config-base/package.json diff --git a/packages/stylelint-config-base/.npmrc b/packages/stylelint-config-base/.npmrc new file mode 120000 index 0000000..cba44bb --- /dev/null +++ b/packages/stylelint-config-base/.npmrc @@ -0,0 +1 @@ +../../.npmrc \ No newline at end of file diff --git a/packages/stylelint-config-base/index.js b/packages/stylelint-config-base/index.js new file mode 100644 index 0000000..cbf4f68 --- /dev/null +++ b/packages/stylelint-config-base/index.js @@ -0,0 +1,18 @@ +module.exports = { + extends: [ + 'stylelint-config-twbs-bootstrap/css', + 'stylelint-config-css-modules', + 'stylelint-prettier/recommended', + ], + rules: { + 'at-rule-no-unknown': [true, { ignoreAtRules: ['extend'] }], + 'max-nesting-depth': [ + 3, + { ignore: ['blockless-at-rules', 'pseudo-classes'] }, + ], + 'rule-empty-line-before': [ + 'always', + { except: ['after-single-line-comment', 'first-nested'] }, + ], + }, +} diff --git a/packages/stylelint-config-base/package.json b/packages/stylelint-config-base/package.json new file mode 100644 index 0000000..93d66a3 --- /dev/null +++ b/packages/stylelint-config-base/package.json @@ -0,0 +1,22 @@ +{ + "name": "@oacore/stylelint-config-base", + "version": "1.0.5", + "description": "Global stylelint configuration across our projects", + "author": "CORE Team ", + "homepage": "https://github.com/oacore/configs#readme", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/oacore/configs.git", + "directory": "@oacore/configs" + }, + "dependencies": { + "stylelint-config-css-modules": "^2.2.0", + "stylelint-config-prettier": "^8.0.1", + "stylelint-config-twbs-bootstrap": "^2.0.3", + "stylelint-prettier": "^1.1.2" + }, + "peerDependencies": { + "stylelint": ">=13.6.0" + } +}