From f02e2d3e86e3094d708846414de616d79f1f4978 Mon Sep 17 00:00:00 2001 From: Date: Fri, 30 Jun 2017 20:47:27 -0700 Subject: [PATCH] Move eslint and stylelint configs to package.json --- .eslintrc | 43 ------------------------------------------- .stylelintrc | 3 --- package.json | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 46 deletions(-) delete mode 100644 .eslintrc delete mode 100644 .stylelintrc diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 77eb73b..0000000 --- a/.eslintrc +++ /dev/null @@ -1,43 +0,0 @@ -{ - "root": true, - "extends": "eslint:recommended", - "globals": { - "wp": true - }, - "env": { - "node": true, - "es6": true, - "amd": true, - "browser": true, - "jquery": true - }, - "parserOptions": { - "ecmaFeatures": { - "globalReturn": true, - "generators": false, - "objectLiteralDuplicateProperties": false, - "experimentalObjectRestSpread": true - }, - "ecmaVersion": 2017, - "sourceType": "module" - }, - "plugins": [ - "import", - ], - "settings": { - "import/core-modules": [], - "import/ignore": [ - "node_modules", - "\\.(coffee|scss|css|less|hbs|svg|json)$" - ] - }, - "rules": { - "comma-dangle": ["error", { - "arrays": "always-multiline", - "objects": "always-multiline", - "imports": "always-multiline", - "exports": "always-multiline", - "functions": "ignore" - }] - } -} diff --git a/.stylelintrc b/.stylelintrc deleted file mode 100644 index 40db42c..0000000 --- a/.stylelintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "stylelint-config-standard" -} diff --git a/package.json b/package.json index 363e8ab..dd7c16f 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,55 @@ "android 4", "opera 12" ], + "eslintConfig": { + "root": true, + "extends": "eslint:recommended", + "globals": { + "wp": true + }, + "env": { + "node": true, + "es6": true, + "amd": true, + "browser": true, + "jquery": true + }, + "parserOptions": { + "ecmaFeatures": { + "globalReturn": true, + "generators": false, + "objectLiteralDuplicateProperties": false, + "experimentalObjectRestSpread": true + }, + "ecmaVersion": 2017, + "sourceType": "module" + }, + "plugins": [ + "import" + ], + "settings": { + "import/core-modules": [], + "import/ignore": [ + "node_modules", + "\\.(coffee|scss|css|less|hbs|svg|json)$" + ] + }, + "rules": { + "comma-dangle": [ + "error", + { + "arrays": "always-multiline", + "objects": "always-multiline", + "imports": "always-multiline", + "exports": "always-multiline", + "functions": "ignore" + } + ] + } + }, + "stylelint": { + "extends": "stylelint-config-standard" + }, "scripts": { "build": "webpack --progress --config resources/assets/build/webpack.config.js", "build:production": "webpack --progress -p --config resources/assets/build/webpack.config.js",