Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalmaciejewski committed Oct 25, 2018
0 parents commit a97daa4
Show file tree
Hide file tree
Showing 9 changed files with 260 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
indent_style = space
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.{js}]
indent_size = 4

[*.{json}]
indent_size = 2
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "eslint-config-getresponse-base",
"rules": {
"quote-props": "off"
}
}
116 changes: 116 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# CMake
cmake-build-debug/

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
### macOS template
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

package-lock.json
.idea/
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
sudo: false
dist: trusty

language: node_js
node_js:
- "10"
- "9"

cache:
directories:
- "node_modules"

jobs:
include:
- stage: test
name: test
script: npm test
- stage: deploy
name: npm
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
tag: latest
on:
tags: true
stages:
- test
- name: deploy
if: tag IS present
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1.0.0 / 2018-10-25
==================
- First release
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 GetResponse

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# stylelint-config-getresponse-styled-components

[![npm version](https://badge.fury.io/js/stylelint-config-getresponse-styled-components.svg)](https://badge.fury.io/js/stylelint-config-getresponse-styled-components)
[![Build Status](https://travis-ci.com/GetResponse/stylelint-config-getresponse-styled-components.svg?branch=master)](https://travis-ci.com/GetResponse/stylelint-config-getresponse-styled-components)
[![Dependencies](https://img.shields.io/david/getresponse/stylelint-config-getresponse-styled-components.svg)](https://david-dm.org/getresponse/stylelint-config-getresponse-styled-components)
[![peerDependencies Status](https://david-dm.org/getresponse/stylelint-config-getresponse-styled-components/peer-status.svg)](https://david-dm.org/getresponse/stylelint-config-getresponse-styled-components?type=peer)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://badges.mit-license.org)

---

This package contains all of our stylelint rules for [styled-components](https://www.styled-components.com/). It requires [stylelint](https://stylelint.io/).

1. Install correct versions of each dependant package:

```bash
npx install-peerdeps --dev stylelint-config-getresponse-styled-components
```

2. Add `"extends": "stylelint-config-getresponse-styled-components"` to your stylelint config.
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
rules: {
'value-keyword-case': null,
'declaration-empty-line-before': ['never', {
'ignore': 'after-declaration',
}],
'comment-empty-line-before': null,
'block-opening-brace-newline-after': 'always-multi-line',
'block-closing-brace-newline-after': 'always-multi-line',
'block-closing-brace-newline-before': 'always-multi-line',
'declaration-block-single-line-max-declarations': null,
'declaration-block-semicolon-newline-after': null,
},
};
37 changes: 37 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "stylelint-config-getresponse-styled-components",
"version": "1.0.0",
"description": "GetResponse stylelint shareable config for styled-components",
"keywords": [
"config",
"getresponse",
"styled-components",
"styleguide",
"stylelint",
"stylelintconfig"
],
"homepage": "https://github.com/getresponse/stylelint-config-getresponse-styled-components#readme",
"bugs": {
"url": "https://github.com/getresponse/stylelint-config-getresponse-styled-components/issues"
},
"license": "MIT",
"author": "Rafał Maciejewski (https://github.com/rafalmaciejewski)",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/getresponse/stylelint-config-getresponse-styled-components.git"
},
"scripts": {
"lint": "eslint .",
"test": "npm run lint"
},
"devDependencies": {
"eslint": "^4.8.0",
"eslint-config-getresponse-base": "^1.0.0",
"eslint-plugin-import": "^2.7.0",
"stylelint": "^8.2.0"
},
"peerDependencies": {
"stylelint": "^8.2.0"
}
}

0 comments on commit a97daa4

Please sign in to comment.