@egy186/eslint-config 0.92.0 → 0.94.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.
package/base.js CHANGED
@@ -168,7 +168,6 @@ module.exports = {
168
168
  'no-restricted-properties': 'off',
169
169
  'no-restricted-syntax': 'off',
170
170
  'no-return-assign': 'error',
171
- 'no-return-await': 'error',
172
171
  'no-script-url': 'error',
173
172
  'no-sequences': 'error',
174
173
  'no-shadow': 'error',
package/modules.js CHANGED
@@ -4,7 +4,7 @@ module.exports = {
4
4
  parserOptions: { sourceType: 'module' },
5
5
  plugins: ['import'],
6
6
  rules: {
7
- 'import/consistent-type-specifier-style': 'error',
7
+ 'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
8
8
  'import/default': 'error',
9
9
  'import/dynamic-import-chunkname': 'error',
10
10
  'import/export': 'error',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "0.92.0",
4
+ "version": "0.94.0",
5
5
  "author": "egy186",
6
6
  "bugs": {
7
7
  "url": "https://github.com/egy186/eslint-config/issues"
@@ -10,18 +10,18 @@
10
10
  "lodash": "^4.17.21"
11
11
  },
12
12
  "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "~5.60.0",
14
- "@typescript-eslint/parser": "~5.60.0",
15
- "eslint": "~8.43.0",
16
- "eslint-plugin-import": "~2.27.5",
17
- "eslint-plugin-jest": "~27.2.2",
18
- "eslint-plugin-jsdoc": "~46.2.6",
19
- "eslint-plugin-n": "~16.0.0",
20
- "eslint-plugin-react": "~7.32.2",
13
+ "@typescript-eslint/eslint-plugin": "~6.2.0",
14
+ "@typescript-eslint/parser": "~6.2.0",
15
+ "eslint": "~8.46.0",
16
+ "eslint-plugin-import": "~2.28.0",
17
+ "eslint-plugin-jest": "~27.2.3",
18
+ "eslint-plugin-jsdoc": "~46.4.5",
19
+ "eslint-plugin-n": "~16.0.1",
20
+ "eslint-plugin-react": "~7.33.1",
21
21
  "eslint-plugin-react-hooks": "~4.6.0",
22
22
  "husky": "^8.0.1",
23
23
  "require-dir": "^1.2.0",
24
- "typescript": "~5.1.3"
24
+ "typescript": "~5.1.6"
25
25
  },
26
26
  "engines": {
27
27
  "node": ">=16.19.1"
@@ -45,8 +45,8 @@
45
45
  "license": "MIT",
46
46
  "main": "index.js",
47
47
  "peerDependencies": {
48
- "@typescript-eslint/eslint-plugin": "^5.58.0",
49
- "@typescript-eslint/parser": "^5.58.0",
48
+ "@typescript-eslint/eslint-plugin": "^6.2.0",
49
+ "@typescript-eslint/parser": "^6.2.0",
50
50
  "eslint": "^8.27.0",
51
51
  "eslint-plugin-import": "^2.27.4",
52
52
  "eslint-plugin-jest": "^27.2.0",
package/typescript.js CHANGED
@@ -13,6 +13,7 @@ module.exports = {
13
13
  '@typescript-eslint/block-spacing': ['error', 'always'],
14
14
  '@typescript-eslint/brace-style': 'error',
15
15
  '@typescript-eslint/class-literal-property-style': 'error',
16
+ '@typescript-eslint/class-methods-use-this': 'error',
16
17
  '@typescript-eslint/comma-dangle': ['error', 'never'],
17
18
  '@typescript-eslint/comma-spacing': 'error',
18
19
  '@typescript-eslint/consistent-generic-constructors': 'error',
@@ -126,7 +127,6 @@ module.exports = {
126
127
  '@typescript-eslint/no-shadow': 'error',
127
128
  '@typescript-eslint/no-this-alias': 'error',
128
129
  '@typescript-eslint/no-throw-literal': 'error',
129
- '@typescript-eslint/no-type-alias': ['error', { allowAliases: 'in-unions-and-intersections' }],
130
130
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
131
131
  '@typescript-eslint/no-unnecessary-condition': 'error',
132
132
  '@typescript-eslint/no-unnecessary-qualifier': 'error',
@@ -191,6 +191,7 @@ module.exports = {
191
191
  '@typescript-eslint/unified-signatures': 'error',
192
192
  'block-spacing': 'off',
193
193
  camelcase: 'off',
194
+ 'class-methods-use-this': 'off',
194
195
  'comma-dangle': 'off',
195
196
  'dot-notation': 'off',
196
197
  'init-declarations': 'off',