From b03920b5343b766a006623892da3a006b43662d9 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 6 Jan 2023 15:34:53 +0000 Subject: [PATCH] Don't ignore dotfiles when running eslint --- .automation/test/json/.dotfile_json_bad_2.json | 12 ++++++++++++ .automation/test/json/.dotfile_json_good_2.json | 10 ++++++++++ TEMPLATES/.eslintrc.yml | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 .automation/test/json/.dotfile_json_bad_2.json create mode 100644 .automation/test/json/.dotfile_json_good_2.json diff --git a/.automation/test/json/.dotfile_json_bad_2.json b/.automation/test/json/.dotfile_json_bad_2.json new file mode 100644 index 00000000..096c082a --- /dev/null +++ b/.automation/test/json/.dotfile_json_bad_2.json @@ -0,0 +1,12 @@ +{ + "arrow_spacing": { + "level": ["ignore"] + }, + "foo": "bar", + "foo": "baz", + "braces_spacing": { + "level": 'ignore', + "spaces": 0 + "empty_object_spaces": 0 + } +} diff --git a/.automation/test/json/.dotfile_json_good_2.json b/.automation/test/json/.dotfile_json_good_2.json new file mode 100644 index 00000000..de60584a --- /dev/null +++ b/.automation/test/json/.dotfile_json_good_2.json @@ -0,0 +1,10 @@ +{ + "arrow_spacing": { + "level": "ignore" + }, + "braces_spacing": { + "level": "ignore", + "spaces": 0, + "empty_object_spaces": 0 + } +} diff --git a/TEMPLATES/.eslintrc.yml b/TEMPLATES/.eslintrc.yml index b5c6439d..55f854b2 100644 --- a/TEMPLATES/.eslintrc.yml +++ b/TEMPLATES/.eslintrc.yml @@ -20,6 +20,10 @@ globals: Atomics: readonly SharedArrayBuffer: readonly +ignorePatterns: + - "!.*" + - "**/node_modules/.*" + ############### # Parser vars # ###############