Skip to content

Commit

Permalink
first commit of new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole Cua authored and Nicole Cua committed Aug 15, 2018
0 parents commit 23b0f23
Show file tree
Hide file tree
Showing 8 changed files with 1,128 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "eslint-config-payscale",
"rules": {
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn-error.log
node_modules
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid"
}
13 changes: 13 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2018 PayScale

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# stylelint-config-payscale
PayScale's sharable stylelint config

For more information on stylelint, visit: https://stylelint.io/
56 changes: 56 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
'use strict';

module.exports = {
'extends': 'stylelint-config-standard',
'plugins': ['stylelint-order', 'stylelint-scss'],
'rules': {
'at-rule-blacklist': ['debug'],
'at-rule-no-unknown': null,
'at-rule-no-vendor-prefix': true,
'color-named': 'never',
'comment-empty-line-before': 'always',
'declaration-block-no-duplicate-properties': true,
'declaration-block-no-redundant-longhand-properties': true,
'declaration-block-semicolon-newline-after': 'always',
'font-family-name-quotes': 'always-unless-keyword',
'font-weight-notation': 'numeric',
'function-parentheses-space-inside': 'never',
'function-url-quotes': 'always',
'indentation': 2,
'max-line-length': 120,
'max-nesting-depth': 5,
'media-feature-name-no-vendor-prefix': true,
'no-unknown-animations': true,
'number-max-precision': 2,
'order/properties-alphabetical-order': true,
'property-no-vendor-prefix': null,
'scss/at-extend-no-missing-placeholder': true,
'scss/at-function-pattern': '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/at-mixin-pattern': '^[a-z]+([a-zA-Z0-9-]+[a-zA-Z0-9]+)?$',
'scss/dollar-variable-colon-space-after': 'always',
'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-pattern': '^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/percent-placeholder-pattern': '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/selector-no-redundant-nesting-selector': true,
'selector-class-pattern': [
'^[a-z0-9\\-]+(__[a-z0-9\\-]*[a-z0-9])*(--[a-z0-9\\-]+)?$',
{
'message': 'Selector should be written in lowercase with hyphens (selector-class-pattern)'
}
],
'selector-max-compound-selectors': 5,
'selector-max-id': 1,
'selector-no-qualifying-type': [
true,
{
'ignore': ['class']
}
],
'selector-no-vendor-prefix': true,
'shorthand-property-no-redundant-values': true,
'string-quotes': 'single',
'value-keyword-case': 'lower',
'value-list-comma-newline-after': null,
'value-no-vendor-prefix': true
}
};
32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "stylelint-config-payscale",
"version": "0.1.0",
"description": "PayScale's own stylelint configuration.",
"main": "index.js",
"scripts": {
"lint": "eslint \"**/*.js\"",
"lint-fix": "eslint --fix \"**/*.js\""
},
"keywords": [
"stylelint",
"css",
"scss",
"lint"
],
"author": "PayScale",
"license": "Apache-2.0",
"devDependencies": {
"babel-eslint": "8.2.6",
"eslint": "5.3.0",
"eslint-config-payscale": "1.0.3",
"eslint-plugin-react": "7.11.1"
},
"dependencies": {
"stylelint-config-standard": "18.2.0"
},
"peerDependencies": {
"stylelint": ">=9.4.0",
"stylelint-order": ">=1.0.0",
"stylelint-scss": ">=3.3.0"
}
}
Loading

0 comments on commit 23b0f23

Please sign in to comment.