From 02b144a9dac6373b320ab82f48ab22d2adaf99a7 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Wed, 30 Jan 2019 23:21:08 +0100 Subject: [PATCH] Update dependencies --- __tests__/index.js | 2 +- index.js | 17 +++++++++-------- package.json | 18 +++++++++--------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/__tests__/index.js b/__tests__/index.js index fe276a4..fe03445 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -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'); diff --git a/index.js b/index.js index b82ad9b..b49327c 100644 --- a/index.js +++ b/index.js @@ -1,17 +1,15 @@ 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:', @@ -19,6 +17,9 @@ module.exports = { '/^border/': [ 'none', ], + '/^transition/': [ + '/all/', + ], }, { message: 'Transitioning all properties, absolute background URLs and `border: none` are ' @@ -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, diff --git a/package.json b/package.json index e1aff2a..0794655 100644 --- a/package.json +++ b/package.json @@ -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", @@ -40,7 +40,7 @@ }, "eslintConfig": { "extends": [ - "airbnb" + "@visionappscz/eslint-config-visionapps" ], "env": { "es6": true,