Skip to content

Commit

Permalink
feat(eslint): add ignorePatterns (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Apr 16, 2021
1 parent 1ee02f5 commit 14f79f7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const initCommand = (baseDir, logger) => {
packageInfo.eslintConfig = {
root: true,
extends: ["ybiquitous"],
ignorePatterns: ["coverage", "dist"],
reportUnusedDisableDirectives: true,
};

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
"eslintConfig": {
"root": true,
"ignorePatterns": [
"coverage"
"coverage",
"dist"
],
"reportUnusedDisableDirectives": true,
"extends": [
Expand Down
8 changes: 8 additions & 0 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ Object {
"extends": Array [
"ybiquitous",
],
"ignorePatterns": Array [
"coverage",
"dist",
],
"reportUnusedDisableDirectives": true,
"root": true,
},
Expand Down Expand Up @@ -79,6 +83,10 @@ Object {
"extends": Array [
"ybiquitous",
],
"ignorePatterns": Array [
"coverage",
"dist",
],
"reportUnusedDisableDirectives": true,
"root": true,
},
Expand Down

0 comments on commit 14f79f7

Please sign in to comment.