Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Jan 31, 2019
1 parent f4cac8c commit 02b144a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion __tests__/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const config = require('../');
const fs = require('fs');
const stylelint = require('stylelint');
const config = require('../');

const validCss = fs.readFileSync('./__tests__/css-valid.css', 'utf-8');
const invalidCss = fs.readFileSync('./__tests__/css-invalid.css', 'utf-8');
Expand Down
17 changes: 9 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
module.exports = {
extends: 'stylelint-config-standard',
rules: {
// Override stylelint-config-standard:
// Override stylelint-config-standard
indentation: 4,

// Extend with more strict rules:
'at-rule-no-vendor-prefix': true,
// Extend with more strict rules
// (Disable ESlint as we intentionally break alphabetical order rule here.)
'at-rule-no-vendor-prefix': true, // eslint-disable-line sort-keys
'declaration-no-important': true,
'declaration-property-value-blacklist': [
{
'/^transition/': [
'/all/',
],
'/^background/': [
'http:',
'https:',
],
'/^border/': [
'none',
],
'/^transition/': [
'/all/',
],
},
{
message: 'Transitioning all properties, absolute background URLs and `border: none` are '
Expand All @@ -37,15 +38,15 @@ module.exports = {
'property-no-vendor-prefix': true,
'selector-attribute-quotes': 'always',
'selector-max-compound-selectors': 3,
'selector-max-id': 0,
'selector-max-specificity': '0,4,0',
'selector-max-universal': 0,
'selector-nested-pattern': [
'^&:',
{
message: 'Only pseudo-classes and pseudo-elements can be nested (selector-nested-pattern)',
},
],
'selector-max-id': 0,
'selector-max-universal': 0,
'selector-no-qualifying-type': true,
'selector-no-vendor-prefix': true,
'value-no-vendor-prefix': true,
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
"stylelint-config-standard": "^18.2.0"
},
"devDependencies": {
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"jest": "^22.4.3",
"stylelint": "^9.2.0"
"@visionappscz/eslint-config-visionapps": "^1.0.0",
"eslint": "^5.6.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"jest": "^24.0.0",
"stylelint": "^9.10.1"
},
"peerDependencies": {
"stylelint": "^9.2.0"
"stylelint": "^9.0.0"
},
"scripts": {
"lint": "eslint . --ignore-path .gitignore",
Expand All @@ -40,7 +40,7 @@
},
"eslintConfig": {
"extends": [
"airbnb"
"@visionappscz/eslint-config-visionapps"
],
"env": {
"es6": true,
Expand Down

0 comments on commit 02b144a

Please sign in to comment.