From 1398faa7ab1b914e9b79241f4a7c8d74635d1179 Mon Sep 17 00:00:00 2001 From: neilcui Date: Thu, 24 May 2018 15:26:33 +0800 Subject: [PATCH] chore: use overrides instead of eslintrc file --- .eslintrc.json | 11 +++++++++++ bin/lib/util/mail/.eslintrc.json | 11 ----------- bin/tsw/util/auto-report/.eslintrc.json | 11 ----------- bin/tsw/util/h5-test/group/.eslintrc.json | 11 ----------- bin/tsw/util/h5-test/page/.eslintrc.json | 11 ----------- bin/tsw/util/home/.eslintrc.json | 11 ----------- 6 files changed, 11 insertions(+), 55 deletions(-) delete mode 100644 bin/lib/util/mail/.eslintrc.json delete mode 100644 bin/tsw/util/auto-report/.eslintrc.json delete mode 100644 bin/tsw/util/h5-test/group/.eslintrc.json delete mode 100644 bin/tsw/util/h5-test/page/.eslintrc.json delete mode 100644 bin/tsw/util/home/.eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json index 53c7f37c..d1d6f75b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -84,6 +84,17 @@ "globals": { "define": true } + }, { + "files": ["bin/lib/util/mail/tmpl.js", "bin/tsw/util/**/tmpl.js"], + "rules": { + "no-unused-vars": [ + "error", + { + "varsIgnorePattern": "out", + "args": "none" + } + ] + } } ] } diff --git a/bin/lib/util/mail/.eslintrc.json b/bin/lib/util/mail/.eslintrc.json deleted file mode 100644 index 0e4b665b..00000000 --- a/bin/lib/util/mail/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "rules": { - "no-unused-vars": [ - "error", - { - "varsIgnorePattern": "out", - "args": "none" - } - ] - } -} \ No newline at end of file diff --git a/bin/tsw/util/auto-report/.eslintrc.json b/bin/tsw/util/auto-report/.eslintrc.json deleted file mode 100644 index 0e4b665b..00000000 --- a/bin/tsw/util/auto-report/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "rules": { - "no-unused-vars": [ - "error", - { - "varsIgnorePattern": "out", - "args": "none" - } - ] - } -} \ No newline at end of file diff --git a/bin/tsw/util/h5-test/group/.eslintrc.json b/bin/tsw/util/h5-test/group/.eslintrc.json deleted file mode 100644 index 0e4b665b..00000000 --- a/bin/tsw/util/h5-test/group/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "rules": { - "no-unused-vars": [ - "error", - { - "varsIgnorePattern": "out", - "args": "none" - } - ] - } -} \ No newline at end of file diff --git a/bin/tsw/util/h5-test/page/.eslintrc.json b/bin/tsw/util/h5-test/page/.eslintrc.json deleted file mode 100644 index 0e4b665b..00000000 --- a/bin/tsw/util/h5-test/page/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "rules": { - "no-unused-vars": [ - "error", - { - "varsIgnorePattern": "out", - "args": "none" - } - ] - } -} \ No newline at end of file diff --git a/bin/tsw/util/home/.eslintrc.json b/bin/tsw/util/home/.eslintrc.json deleted file mode 100644 index 0e4b665b..00000000 --- a/bin/tsw/util/home/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "rules": { - "no-unused-vars": [ - "error", - { - "varsIgnorePattern": "out", - "args": "none" - } - ] - } -} \ No newline at end of file