Skip to content

Commit

Permalink
feat(ESLint): Disallow to import Q Promises in js files
Browse files Browse the repository at this point in the history
Ask ESLint to block commits which contain Q promise imports
  • Loading branch information
Sergey Nikitin authored and wejendorp committed Mar 4, 2019
1 parent 6afdea8 commit 5bd4941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"quotes": ["error", "single", "avoid-escape"],
"standard/computed-property-even-spacing": "off",
"standard/array-bracket-even-spacing": "off",
"standard/object-curly-even-spacing": "off"
"standard/object-curly-even-spacing": "off",
"no-restricted-imports": ["error", { "paths": [{ "name": "q", "message": "Use native Promises instead" }] }]
}
}

0 comments on commit 5bd4941

Please sign in to comment.