-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add new es6 common config enforcing no-var * Add to index.js * Fix import? * Fix import? 2 * Add no-confusing-arrow and strict (global) * Add arrow-parens. Also comments and organization. * Revert change to old yml. Add no-const-assign to ES6. * rename key from ugly commonEs6 common-es6 * Improve comment
- Loading branch information
Showing
4 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
extends: | ||
"./eslint/common.yml" | ||
|
||
rules: | ||
strict: ["error", "global"] | ||
|
||
no-var: "error" | ||
no-const-assign: "error" | ||
|
||
# No parens single-arg arrow functions: | ||
# a => a; // instead of (a) => a | ||
# Other cases are still good: | ||
# () => {}; | ||
# (a, b, c) => a; | ||
arrow-parens: ["error", "as-needed"] | ||
# Don't write `a => 1 ? 2 : 3` (could be confused with `a <= 1 ? 2 : 3;`) | ||
no-confusing-arrow: "error" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters