@innovixx/eslint-config 1.0.10 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,7 +125,7 @@ module.exports = {
125
125
 
126
126
  // Require modules with a single export to use a default export
127
127
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
128
- 'import/prefer-default-export': 'off',
128
+ 'import/prefer-default-export': 'error',
129
129
 
130
130
  // Restrict which files can be imported in a given folder
131
131
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
@@ -362,7 +362,12 @@ module.exports = {
362
362
 
363
363
  // disallow dangling underscores in identifiers
364
364
  // https://eslint.org/docs/rules/no-underscore-dangle
365
- 'no-underscore-dangle': 'off',
365
+ 'no-underscore-dangle': ['error', {
366
+ allow: [],
367
+ allowAfterThis: false,
368
+ allowAfterSuper: false,
369
+ enforceInMethodNames: true,
370
+ }],
366
371
 
367
372
  // disallow the use of Boolean literals in conditional expressions
368
373
  // also, prefer `a || b` over `a ? a : b`
package/configs/index.js CHANGED
@@ -1,20 +1,8 @@
1
- const path = require('path');
2
- const { existsSync } = require('fs');
3
-
4
- const extensions = [];
5
-
6
- if (existsSync(path.resolve(__dirname, '../../../eslint-plugin-jest'))) {
7
- extensions.push('jest');
8
- }
9
-
10
- if (existsSync(path.resolve(__dirname, '../../../eslint-plugin-react'))) {
11
- extensions.push('react');
12
- }
13
-
14
1
  module.exports = {
15
2
  extends: [
16
3
  './base',
17
- ...extensions,
4
+ './jest',
5
+ './react',
18
6
  ].map(require.resolve),
19
7
  rules: {},
20
8
  };
@@ -18,7 +18,7 @@ module.exports = {
18
18
  'jest/no-large-snapshots': 'error',
19
19
  'jest/no-mocks-import': 'error',
20
20
  'jest/no-standalone-expect': 'error',
21
- 'jest/no-done-callback': 'off',
21
+ 'jest/no-done-callback': 'error',
22
22
  'jest/no-test-prefixes': 'error',
23
23
  'jest/no-test-return-statement': 'error',
24
24
  'jest/no-truthy-falsy': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "1.0.10",
3
+ "version": "1.1.0",
4
4
  "main": "configs/index.js",
5
5
  "repository": "git@github.com:Innovixx-Development/eslint-config.git",
6
6
  "description": "Opinionated ESLint config for JavaScript developers",
@@ -45,18 +45,18 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "confusing-browser-globals": "^1.0.10",
48
+ "confusing-browser-globals": "^1.0.9",
49
49
  "object.assign": "^4.1.0",
50
50
  "object.entries": "^1.1.1"
51
51
  },
52
52
  "devDependencies": {
53
- "eslint": "^8.23.0",
53
+ "eslint": "^7.16.0",
54
54
  "eslint-plugin-import": "^2.20.0",
55
- "eslint-plugin-jest": "^27.0.1",
56
- "eslint-plugin-jest-dom": "^4.0.2",
55
+ "eslint-plugin-jest": "^24.1.3",
56
+ "eslint-plugin-jest-dom": "^3.6.5",
57
57
  "eslint-plugin-jsx-a11y": "^6.2.3",
58
58
  "eslint-plugin-node": "^11.1.0",
59
- "eslint-plugin-react": "7.31.1",
59
+ "eslint-plugin-react": "7.20.2",
60
60
  "eslint-plugin-react-hooks": "^4.2.0",
61
61
  "husky": "^4.2.1",
62
62
  "lint-staged": "^10.0.6"
@@ -1,11 +0,0 @@
1
- # To get started with Dependabot version updates, you'll need to specify which
2
- # package ecosystems to update and where the package manifests are located.
3
- # Please see the documentation for all configuration options:
4
- # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
-
6
- version: 2
7
- updates:
8
- - package-ecosystem: "npm" # See documentation for possible values
9
- directory: "/" # Location of package manifests
10
- schedule:
11
- interval: "weekly"