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

⬆️ Upgrade dependencies #114

Merged
merged 10 commits into from
Oct 17, 2018
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ That way, the `prettier` configurations will override any `zeal` configurations

This plugin contains all of the rules available in:

- [ESLint](http://eslint.org/): 5.1.0
- [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react): 7.10.0
- [eslint-plugin-react-native](https://github.com/intellicode/eslint-plugin-react-native): 3.2.1
- [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import): 2.13.0
- [eslint-plugin-jest](https://www.npmjs.com/package/eslint-plugin-jest): 21.15.0
- [ESLint](http://eslint.org/): 5.6.1
- [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react): 7.11.1
- [eslint-plugin-react-native](https://github.com/intellicode/eslint-plugin-react-native): 3.4.0
- [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import): 2.14.0
- [eslint-plugin-jest](https://www.npmjs.com/package/eslint-plugin-jest): 21.24.1

## License

Expand Down
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module.exports = {
"for-direction": "warn",
// enforce return statements in getters
"getter-return": "warn",
// disallow using an async function as a Promise executor
"no-async-promise-executor": "warn",
// disallow await inside of loops
"no-await-in-loop": "warn",
// disallow comparing against -0
Expand Down Expand Up @@ -62,6 +64,8 @@ module.exports = {
"no-invalid-regexp": "warn",
// disallow irregular whitespace outside of strings and comments
"no-irregular-whitespace": "warn",
// Disallow characters which are made with multiple code points in character class syntax
"no-misleading-character-class": "warn",
// disallow the use of object properties of the global object (Math and
// JSON) as functions
"no-obj-calls": "warn",
Expand All @@ -82,6 +86,8 @@ module.exports = {
"no-unsafe-finally": "warn",
// disallow negating the left operand of relational operators
"no-unsafe-negation": "warn",
// Disallow assignments that can lead to race conditions due to usage of await or yield
"require-atomic-updates": "warn",
// disallow comparisons with the value NaN
"use-isnan": "warn",
// Ensure JSDoc comments are valid
Expand Down Expand Up @@ -238,6 +244,8 @@ module.exports = {
radix: "warn",
// disallow async functions which have no await expression
"require-await": "warn",
// Enforce the use of u flag on RegExp
"require-unicode-regexp": "warn",
// require declaration of all vars at the top of their containing scope
"vars-on-top": "warn",
// require immediate function invocation to be wrapped in parentheses
Expand Down
16 changes: 16 additions & 0 deletions jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@ module.exports = {
//
// Enforce consistent test or it keyword
"jest/consistent-test-it": ["warn", { fn: "test", withinDescribe: "test" }],
// Enforce assertion to be made in a test body
// Off for now, pending a resolution to https://github.com/jest-community/eslint-plugin-jest/issues/175
"jest/expect-expect": [
"warn",
{ assertFunctionNames: ["expect", "td.verify"] }
],
// Disallow capitalized test names
"jest/lowercase-name": "warn",
// Don't use alias methods
"jest/no-alias-methods": "off",
// Disallow disabled tests
"jest/no-disabled-tests": "warn",
// Disallow focused tests
Expand All @@ -35,14 +43,22 @@ module.exports = {
"jest/no-large-snapshots": "warn",
// Disallow using f & x prefixes to define focused/skipped tests
"jest/no-test-prefixes": "off",
// Disallow explicitly returning from tests
"jest/no-test-return-statement": "warn",
// Suggest using expect.assertions() OR expect.hasAssertions()
"jest/prefer-expect-assertions": "off",
// Suggest using inline snapshots
"jest/prefer-inline-snapshots": "off",
// Suggest using toStrictEqual()
"jest/prefer-strict-equal": "warn",
// Suggest using toHaveLength()
"jest/prefer-to-have-length": "warn",
// Suggest using toBeNull()
"jest/prefer-to-be-null": "warn",
// Suggest using toBeUndefined()
"jest/prefer-to-be-undefined": "warn",
// Require a message for toThrow()
"jest/require-tothrow-message": "warn",
// Enforce valid describe() callback
"jest/valid-describe": "warn",
// Ensure expect is called correctly
Expand Down
32 changes: 18 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"missing-rules:jest": "eslint-find-rules --no-core --unused --deprecated jest.js",
"missing-rules:react": "eslint-find-rules --no-core --unused --deprecated react.js",
"missing-rules:react-native": "eslint-find-rules --no-core --unused --deprecated react-native.js",
"precommit": "lint-staged",
"test": "eslint .",
"validate": "run-p test missing-rules"
},
Expand Down Expand Up @@ -44,23 +43,28 @@
"style linter"
],
"devDependencies": {
"babel-eslint": "^8.2.6",
"eslint": "5.1.0",
"eslint-config-prettier": "^2.9.0",
"babel-eslint": "^10.0.1",
"eslint": "5.6.1",
"eslint-config-prettier": "^3.1.0",
"eslint-find-rules": "^3.3.1",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-jest": "21.17.0",
"eslint-plugin-react": "7.10.0",
"eslint-plugin-react-native": "3.2.1",
"husky": "^0.14.3",
"lint-staged": "^7.2.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jest": "21.24.2",
"eslint-plugin-react": "7.11.1",
"eslint-plugin-react-native": "3.4.0",
"husky": "^1.1.2",
"lint-staged": "^7.3.0",
"npm-run-all": "^4.1.3",
"prettier": "^1.13.7"
"prettier": "^1.14.3"
},
"peerDependencies": {
"babel-eslint": ">=8.2.6",
"eslint": ">=5.1.0",
"eslint-plugin-import": ">=2.13.0"
"babel-eslint": ">=10.0.1",
"eslint": ">=5.6.1",
"eslint-plugin-import": ">=2.14.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"linters": {
Expand Down
7 changes: 4 additions & 3 deletions react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ module.exports = {
},
plugins: ["react-native"],
rules: {
"react-native/no-unused-styles": "warn",
"react-native/split-platform-components": "warn",
"react-native/no-color-literals": "warn",
"react-native/no-inline-styles": "warn",
"react-native/no-color-literals": "warn"
"react-native/no-raw-text": "warn",
"react-native/no-unused-styles": "warn",
"react-native/split-platform-components": "warn"
}
};
8 changes: 6 additions & 2 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ module.exports = {
}
},
plugins: ["react"],

settings: {
react: {
version: "16.5.2"
}
},
rules: {
// Enforces consistent naming for boolean props
"react/boolean-prop-naming": "off",
Expand Down Expand Up @@ -75,7 +79,7 @@ module.exports = {
// Disallow undeclared variables in JSX
"react/jsx-no-undef": "warn",
// One JSX Element Per Line
"react/jsx-one-expression-per-line": "warn",
"react/jsx-one-expression-per-line": ["warn", { allow: "literal" }],
// Enforce PascalCase for user-defined JSX components
"react/jsx-pascal-case": "warn",
// Disallow multiple spaces between inline JSX props
Expand Down
Loading