aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec/fixtures/eslintignore.git/ignored
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@stellenticket.de>2016-07-25 14:36:23 +0200
committerMarkus Doits <markus.doits@stellenticket.de>2016-07-25 14:51:26 +0200
commitfb94b0e6df4da3026b9fb4714ee7ceab6bbfa9bc (patch)
tree57d22b50d28eab271a8db6fe201a7f18bbe069f4 /spec/fixtures/eslintignore.git/ignored
parent604e30d99fdbb7c822efe31d05a0238064220037 (diff)
downloadpronto-hlint-fb94b0e6df4da3026b9fb4714ee7ceab6bbfa9bc.tar.gz
pronto-hlint-fb94b0e6df4da3026b9fb4714ee7ceab6bbfa9bc.tar.zst
pronto-hlint-fb94b0e6df4da3026b9fb4714ee7ceab6bbfa9bc.zip
Respect `.eslintignore`
If an `.eslintignore` is present, it's patterns are now respected. See http://eslint.org/docs/user-guide/configuring#ignoring-files-and-directories for more info. Due to the file format of `.eslintignore`, the gem `globby` has to be used for those patterns (which respects negations etc.).
Diffstat (limited to 'spec/fixtures/eslintignore.git/ignored')
-rw-r--r--spec/fixtures/eslintignore.git/ignored/ignored.js5
-rw-r--r--spec/fixtures/eslintignore.git/ignored/not_ignored.js5
2 files changed, 10 insertions, 0 deletions
diff --git a/spec/fixtures/eslintignore.git/ignored/ignored.js b/spec/fixtures/eslintignore.git/ignored/ignored.js
new file mode 100644
index 0000000..2d1b996
--- /dev/null
+++ b/spec/fixtures/eslintignore.git/ignored/ignored.js
@@ -0,0 +1,5 @@
1function HelloWorld(name)
2{
3 if (foo) foo++;
4 alert(name);
5}
diff --git a/spec/fixtures/eslintignore.git/ignored/not_ignored.js b/spec/fixtures/eslintignore.git/ignored/not_ignored.js
new file mode 100644
index 0000000..2d1b996
--- /dev/null
+++ b/spec/fixtures/eslintignore.git/ignored/not_ignored.js
@@ -0,0 +1,5 @@
1function HelloWorld(name)
2{
3 if (foo) foo++;
4 alert(name);
5}