From 4bfeb220d36f92af8e97c0715c5be9e74c003cdc Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Thu, 7 Dec 2017 00:32:09 -0400 Subject: [PATCH] Add default config. --- package.json | 49 +++++++++++++++---------------------------------- 1 file changed, 15 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 5fc6a43..142754c 100644 --- a/package.json +++ b/package.json @@ -17,47 +17,28 @@ "url": "https://opensource.org/licenses/GPL-3.0" } ], - "browserslist": [ - "last 2 versions", - "android 4", - "opera 12" - ], + "browserslist": ["last 2 versions", "android 4", "opera 12"], "eslintConfig": { - "extends": "humanmade", - "globals": { - "jQuery": true, - "wp": true - }, - "rules": { - "jsx-a11y/href-no-hash": 0 - } + "extends": "./node_modules/pressbooks-build-tools/config/eslint.js" }, "stylelint": { - "extends": [ - "stylelint-config-recommended-scss", - "./node_modules/prettier-stylelint/config.js" - ], - "rules": { - "media-feature-name-no-unknown": [ - true, - { - "ignoreMediaFeatureNames": [ - "min--moz-device-pixel-ratio" - ] - } - ], - "media-query-list-comma-space-after": "always-single-line" - } + "extends": "./node_modules/pressbooks-build-tools/config/stylelint.js" }, "scripts": { - "build": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", - "build:production": "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", - "build:profile": "cross-env NODE_ENV=production webpack --progress --profile --json --config=node_modules/laravel-mix/setup/webpack.config.js", - "start": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "build": + "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "build:production": + "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "build:profile": + "cross-env NODE_ENV=production webpack --progress --profile --json --config=node_modules/laravel-mix/setup/webpack.config.js", + "start": + "cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "rmdist": "rimraf dist", "lint": "npm run -s lint:scripts && npm run -s lint:styles", - "lint:scripts": "node_modules/eslint/bin/eslint.js \"resources/assets/scripts/*.js\"", - "lint:styles": "node_modules/stylelint/bin/stylelint.js \"resources/assets/styles/**/*.scss\" --syntax scss", + "lint:scripts": + "node_modules/eslint/bin/eslint.js \"resources/assets/scripts/*.js\"", + "lint:styles": + "node_modules/stylelint/bin/stylelint.js \"resources/assets/styles/**/*.scss\" --syntax scss", "test": "npm run -s lint" }, "engines": {