@w5s/eslint-config 1.3.1 → 1.4.1

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.
@@ -42,6 +42,8 @@ const config = dev_1.ESLintConfig.concat(baseConfig,
42
42
  },
43
43
  reportUnusedDisableDirectives: true,
44
44
  rules: {
45
+ // Too many errors in components
46
+ 'class-methods-use-this': 'off',
45
47
  // Annoying because it is not always wanted
46
48
  'default-case': 'off',
47
49
  // We do not want console.* in production. Disable this rule on a per line basis if needed
@@ -155,8 +155,8 @@ const config = dev_1.ESLintConfig.concat(
155
155
  baseImportRules['import/extensions'][1],
156
156
  {
157
157
  ...baseImportRules['import/extensions'][2],
158
- ts: 'never',
159
- tsx: 'never',
158
+ // ts: 'never',
159
+ // tsx: 'never',
160
160
  },
161
161
  ],
162
162
  'import/no-extraneous-dependencies': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/eslint-config",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "ESLint configuration presets",
5
5
  "keywords": [
6
6
  "eslint",
@@ -29,30 +29,16 @@
29
29
  "!**/__tests__/**"
30
30
  ],
31
31
  "scripts": {
32
- "build": "concurrently \"npm:build:*\" \":\"",
33
- "build:tsc": "tsc -b tsconfig.build.json",
34
- "clean": "concurrently \"npm:clean:*\" \":\"",
35
- "clean:tsc": "rm -rf dist",
36
- "docs": "node ../../markdown.mjs",
37
- "format": "concurrently \"npm:format:*\" \":\"",
38
- "format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
39
- "lint": "concurrently \"npm:lint:*\" \":\"",
40
- "lint:src": "eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
41
- "prepare": "concurrently \"npm:prepare:*\" \":\"",
42
- "prepublishOnly": "npm run clean;npm run build",
43
- "spellcheck": "cspell --no-progress '**'",
44
- "test": "concurrently \"npm:test:*\" \":\"",
45
- "test:script": "scripts/test",
46
- "test_:rule-coverage": "eslint-find-rules --unused"
32
+ "postpack": "npx clean-package restore"
47
33
  },
48
34
  "dependencies": {
49
35
  "@rushstack/eslint-patch": "^1.1.0",
50
36
  "@typescript-eslint/eslint-plugin": "^6.0.0",
51
37
  "@typescript-eslint/parser": "^6.0.0",
52
- "@w5s/dev": "^1.3.0",
53
- "@w5s/prettier-config": "^1.1.2",
38
+ "@w5s/dev": "^1.3.2",
39
+ "@w5s/prettier-config": "^1.1.4",
54
40
  "eslint-config-airbnb-base": "^15.0.0",
55
- "eslint-config-prettier": "^8.0.0",
41
+ "eslint-config-prettier": "^9.0.0",
56
42
  "eslint-plugin-import": "^2.25.0",
57
43
  "eslint-plugin-jest": "^27.0.0",
58
44
  "eslint-plugin-jsdoc": "^46.0.0",
@@ -64,19 +50,6 @@
64
50
  "find-up": "^5.0.0",
65
51
  "parse-gitignore": "^2.0.0"
66
52
  },
67
- "devDependencies": {
68
- "@types/eslint": "8.44.1",
69
- "@types/parse-gitignore": "1.0.0",
70
- "@types/react": "18.2.18",
71
- "@typescript-eslint/parser": "6.2.1",
72
- "eslint": "8.46.0",
73
- "eslint-config-prettier": "8.9.0",
74
- "eslint-find-rules": "4.1.0",
75
- "prettier": "3.0.0",
76
- "react": "18.2.0",
77
- "vite": "4.4.7",
78
- "vitest": "0.33.0"
79
- },
80
53
  "peerDependencies": {
81
54
  "eslint": "8.x",
82
55
  "prettier": "2.x || 3.x",
@@ -96,5 +69,5 @@
96
69
  "publishConfig": {
97
70
  "access": "public"
98
71
  },
99
- "gitHead": "024ef9515d39f1c6eb891d7e7427212b2b06c952"
72
+ "gitHead": "7c7006522408a5ab144f8def71edab7fface1e18"
100
73
  }
@@ -51,6 +51,8 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
51
51
  },
52
52
  reportUnusedDisableDirectives: true,
53
53
  rules: {
54
+ // Too many errors in components
55
+ 'class-methods-use-this': 'off',
54
56
  // Annoying because it is not always wanted
55
57
  'default-case': 'off',
56
58
  // We do not want console.* in production. Disable this rule on a per line basis if needed
@@ -156,8 +156,8 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
156
156
  baseImportRules['import/extensions'][1],
157
157
  {
158
158
  ...baseImportRules['import/extensions'][2],
159
- ts: 'never',
160
- tsx: 'never',
159
+ // ts: 'never',
160
+ // tsx: 'never',
161
161
  },
162
162
  ],
163
163
  'import/no-extraneous-dependencies': [