Skip to:
Content

bbPress.org

Changeset 6403


Ignore:
Timestamp:
04/21/2017 09:52:51 AM (8 years ago)
Author:
netweb
Message:

Build Tools: Update stylelint

  • Update stylelint to v7.10.1
  • Update grunt-stylelint to v0.7.0
  • Switch from .stylelintrc format to stylelint shared config stylelint-config-wordpress
  • Add SCSS linting support that's now included in stylelint-config-wordpress

See #2924.

Location:
trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r6217 r6403  
    4747
    4848        // PostCSS
    49         autoprefixer = require('autoprefixer');
     49        autoprefixer = require('autoprefixer'),
     50        configCss    = require('stylelint-config-wordpress/index.js');
     51        configScss   = require('stylelint-config-wordpress/scss.js');
    5052
    5153    // Load tasks.
     
    307309            css: {
    308310                options: {
    309                     configFile: '.stylelintrc',
     311                    config: configCss,
    310312                    format: 'css'
    311313                },
     
    316318            scss: {
    317319                options: {
    318                     configFile: '.stylelintrc',
     320                    config: configScss,
    319321                    format: 'scss'
    320322                },
  • trunk/package.json

    r6268 r6403  
    2323    "grunt-rtlcss": "~2.0.1",
    2424    "grunt-sass": "~2.0.0",
    25     "grunt-stylelint": "~0.6.0",
     25    "grunt-stylelint": "~0.7.0",
    2626    "grunt-wp-i18n": "~0.5.2",
    2727    "matchdep": "~1.0.1",
    2828    "postcss-scss": "~0.4.0",
    29     "stylelint": "~7.7.1"
     29    "stylelint": "^7.10.1",
     30    "stylelint-config-wordpress": "^10.0.1"
    3031  },
    3132  "engines": {
Note: See TracChangeset for help on using the changeset viewer.