Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yaodingyd/eslint-config-my

eslint config
https://github.com/yaodingyd/eslint-config-my

Last synced: about 1 month ago
JSON representation

eslint config

Awesome Lists containing this project

README

        

# eslint-config-my

Basic Javscript linting rules:

1. "no-cond-assign": disallow assignment operators in conditional expressions
2. "no-dupe-args": disallow duplicate arguments in function definitions
3. "no-dupe-keys": disallow duplicate keys in object literals
4. "no-duplicate-case": disallow duplicate case labels
5. "no-empty": disallow empty block statements
6. "no-func-assign": disallow reassigning function declarations
7. "no-invalid-regexp": disallow invalid regular expression strings in RegExp constructors
8. "no-template-curly-in-string": disallow template literal placeholder syntax in regular strings
9. "no-unreachable": disallow unreachable code after `return`, `throw`, `continue`, and `break` statements
10. "eqeqeq": require the use of `===` and `!==`
11. "no-redeclare": disallow variable redeclaration
12. "no-unused-vars": disallow unused variables