Skip to content

Commit

Permalink
bugfix(initial rules): corrects a typo that prevented spec files to b…
Browse files Browse the repository at this point in the history
…e detected correctly
  • Loading branch information
sverweij committed Jan 20, 2018
1 parent 930de32 commit 86cb294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/rules.starter.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"comment": "Don't allow dependencies to (typescript/ javascript/ coffeescript) spec files",
"severity": "error",
"from": {},
"to": { "path": "\\.spec\\.[js|ts|ls|coffee|litcoffee|coffee\\.md]$" }
"to": { "path": "\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$" }
},{
"name": "no-circular",
"severity": "warn",
Expand Down Expand Up @@ -39,7 +39,7 @@
"name": "not-to-dev-dep",
"severity": "error",
"comment": "Don't allow dependencies from src/app/lib to a development only package",
"from": { "path": "^(src|app|lib)", "pathNot": "\\.spec\\.[js|ts|ls|coffee|litcoffee|coffee\\.md]$" },
"from": { "path": "^(src|app|lib)", "pathNot": "\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$" },
"to": { "dependencyTypes": ["npm-dev"] }
},{
"name": "no-non-package-json",
Expand Down

0 comments on commit 86cb294

Please sign in to comment.