aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2017-12-16 13:44:17 +0200
committerXhmikosR <[email protected]>2018-01-11 18:48:46 +0200
commit6d336502c7e26c4cc5b35f1d7a19c067b774cb1f (patch)
tree249843876c99ceda24f3a1a65006a5753811d4e9 /docs
parent92cc0aba7be08add9833e1303088928363c3c199 (diff)
downloadbootstrap-6d336502c7e26c4cc5b35f1d7a19c067b774cb1f.tar.xz
bootstrap-6d336502c7e26c4cc5b35f1d7a19c067b774cb1f.zip
Clean up and tweak ESLint rules.
Also, refactor ESLint and stylelint config files; now everything will work from our root dir.
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/examples/.eslintrc.json11
-rw-r--r--docs/4.0/examples/.stylelintrc2
2 files changed, 12 insertions, 1 deletions
diff --git a/docs/4.0/examples/.eslintrc.json b/docs/4.0/examples/.eslintrc.json
new file mode 100644
index 000000000..f04fd6ae1
--- /dev/null
+++ b/docs/4.0/examples/.eslintrc.json
@@ -0,0 +1,11 @@
+{
+ "env": {
+ "es6": false,
+ "jquery": true
+ },
+ "parserOptions": {
+ "ecmaVersion": 5,
+ "sourceType": "script"
+ },
+ "extends": "../../../js/tests/unit/.eslintrc.json"
+}
diff --git a/docs/4.0/examples/.stylelintrc b/docs/4.0/examples/.stylelintrc
index 44cf7c0e0..6a77dcedb 100644
--- a/docs/4.0/examples/.stylelintrc
+++ b/docs/4.0/examples/.stylelintrc
@@ -1,5 +1,5 @@
{
- "extends": "../../../build/.stylelintrc",
+ "extends": "../../../.stylelintrc",
"rules": {
"at-rule-no-vendor-prefix": null,
"comment-empty-line-before": null,