From 29f849879ba05ff2ba54416cb77f94597df83d87 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 15 Oct 2018 15:24:21 +0300 Subject: Move docs .eslintrc in site/. --- package.json | 2 +- site/.eslintrc.json | 26 ++++++++++++++++++++++++++ site/docs/4.1/assets/js/.eslintrc.json | 26 -------------------------- 3 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 site/.eslintrc.json delete mode 100644 site/docs/4.1/assets/js/.eslintrc.json diff --git a/package.json b/package.json index df44a2cec..f22056911 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "js-main": "npm-run-all js-lint js-compile js-minify", "js-docs": "npm-run-all js-lint-docs js-minify-docs", "js-lint": "eslint js/src js/tests build/", - "js-lint-docs": "eslint site/docs/4.1/assets/js/ site/sw.js", + "js-lint-docs": "eslint site/", "js-compile": "npm-run-all --parallel js-compile-* --sequential js-copy", "js-compile-standalone": "rollup --environment BUNDLE:false --config build/rollup.config.js --sourcemap", "js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap", diff --git a/site/.eslintrc.json b/site/.eslintrc.json new file mode 100644 index 000000000..04ac49314 --- /dev/null +++ b/site/.eslintrc.json @@ -0,0 +1,26 @@ +{ + "env": { + "es6": false, + "jquery": true + }, + "parserOptions": { + "ecmaVersion": 5, + "sourceType": "script" + }, + "extends": "../.eslintrc.json", + "rules": { + // Best Practices + "no-magic-numbers": "off", + "vars-on-top": "off", + + // Stylistic Issues + "spaced-comment": "off", + + // ECMAScript 6 + "no-var": "off", + "object-shorthand": "off", + "prefer-arrow-callback": "off", + "prefer-template": "off", + "prefer-rest-params": "off" + } +} diff --git a/site/docs/4.1/assets/js/.eslintrc.json b/site/docs/4.1/assets/js/.eslintrc.json deleted file mode 100644 index e24f3dd09..000000000 --- a/site/docs/4.1/assets/js/.eslintrc.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "env": { - "es6": false, - "jquery": true - }, - "parserOptions": { - "ecmaVersion": 5, - "sourceType": "script" - }, - "extends": "../../../../../.eslintrc.json", - "rules": { - // Best Practices - "no-magic-numbers": "off", - "vars-on-top": "off", - - // Stylistic Issues - "spaced-comment": "off", - - // ECMAScript 6 - "no-var": "off", - "object-shorthand": "off", - "prefer-arrow-callback": "off", - "prefer-template": "off", - "prefer-rest-params": "off" - } -} -- cgit v1.2.3