Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💚 add tests #13

Closed
wants to merge 9 commits into from
Closed

💚 add tests #13

wants to merge 9 commits into from

Conversation

blakek
Copy link
Contributor

@blakek blakek commented Feb 7, 2020

No description provided.

Modifies the [camelcase](https://eslint.org/docs/rules/camelcase) rule to be more lenient.

Removes the [sort-keys](https://eslint.org/docs/rules/sort-keys) rule. To try and reduce time spent doing stylistic tweaks, this has been removed. If it's valuable to specific projects, the project lead can add it to the project.

Adds the following rules:

- [array-callback-return](https://eslint.org/docs/rules/array-callback-return) - Enforces return statements in callbacks of array’s methods
- [no-extra-label](https://eslint.org/docs/rules/no-extra-label) - Disallow unnecessary Labels (catches incorrectly formed objects)
- [no-native-reassign](https://eslint.org/docs/rules/no-native-reassign) - Sets many (browser) globals as read-only
- [no-restricted-syntax](https://eslint.org/docs/rules/no-restricted-syntax) - ['warn', 'WithStatement'] Disallows `with`
- [no-restricted-globals](https://eslint.org/docs/rules/no-restricted-globals) - Disallow some globals (e.g. `'no-restricted-globals': ['error'].concat(restrictedGlobals),`). See https://github.com/facebook/create-react-app/blob/next/packages/confusing-browser-globals/index.js
- [no-unused-labels](https://eslint.org/docs/rules/no-unused-labels) - Disallow unnecessary Labels (catches incorrectly formed objects)
- [no-useless-concat](https://eslint.org/docs/rules/no-useless-concat) - Disallows concatenation of short (e.g. non-multiline) string literals
- [radix](https://eslint.org/docs/rules/radix) - ensures radix is specified (when using `as-needed`)
- [promise/no-new-statics](https://github.com/xjamundx/eslint-plugin-promise/blob/master/docs/rules/no-new-statics.md) - avoids TypeErrors from calling `new` on a Promise static method
`no-native-reassign` has been deprecated. Instead, we are using `no-restricted-globals` to ensure that in addition to not reassigning global variables, we don't even use them without a prefix.
* 💚 add initial testing using GitHub

* 💚 add initial testing using GitHub

* 🔥 remove testing on Node.js v8
@blakek blakek closed this Feb 7, 2020
@blakek blakek deleted the rules-updates branch February 7, 2020 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant