-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove remaining style-only rules, add additional correctness rules, …
…update deps (#8) * remove remaining style-only rules * adds additional correctness rules * updates dependencies new projects will use this eslint config, and we want it to just be standardjs plus additional rules that help enforce correctness, no style. each existing project can add its own style rules or (suggested) use eslint --fix to automatically adhere to this config. reviewers: @samskeller @sawyerh
- Loading branch information
Showing
4 changed files
with
117 additions
and
168 deletions.
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 |
---|---|---|
@@ -1,20 +1,16 @@ | ||
module.exports = { | ||
extends: ['standard', 'standard-react'], | ||
rules: { | ||
/* | ||
Standard overrides | ||
*/ | ||
semi: ['error', 'always'], // churn-expensive to enforce | ||
'space-before-function-paren': ['error', 'never'], | ||
|
||
/* | ||
Nava-specific rules | ||
*/ | ||
'linebreak-style': ['error', 'unix'], | ||
'sort-vars': ['error', {ignoreCase: true}], | ||
'no-alert': 'error', | ||
'no-var': 'error', | ||
'prefer-const': 'error', | ||
'prefer-arrow-callback': 'error' | ||
'prefer-arrow-callback': 'error', | ||
'promise/no-native': 'error', | ||
'promise/catch-or-return': 'error', | ||
'promise/no-return-wrap': 'error', | ||
'promise/valid-params': 'error' | ||
} | ||
}; |
Oops, something went wrong.