eslint-config-seek 11.3.0 → 12.0.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.
Files changed (3) hide show
  1. package/base.js +2 -1
  2. package/index.js +16 -0
  3. package/package.json +6 -6
package/base.js CHANGED
@@ -118,8 +118,8 @@ const baseConfig = {
118
118
  warnOnUnsupportedTypeScriptVersion: false,
119
119
  },
120
120
  extends: [
121
- 'plugin:@typescript-eslint/eslint-recommended',
122
121
  'plugin:@typescript-eslint/recommended',
122
+ 'plugin:@typescript-eslint/stylistic',
123
123
  'prettier',
124
124
  ],
125
125
  settings: {
@@ -130,6 +130,7 @@ const baseConfig = {
130
130
  },
131
131
  },
132
132
  rules: {
133
+ '@typescript-eslint/array-simple': [ERROR, { default: 'array-simple' }],
133
134
  '@typescript-eslint/no-unused-expressions': ERROR,
134
135
  '@typescript-eslint/no-unused-vars': [
135
136
  ERROR,
package/index.js CHANGED
@@ -36,6 +36,22 @@ const eslintConfig = {
36
36
  rules: {
37
37
  ...reactRules,
38
38
  },
39
+ overrides: [
40
+ {
41
+ // temporary override until everybody removes the React import
42
+ files: [`**/*.tsx`],
43
+ rules: {
44
+ '@typescript-eslint/no-unused-vars': [
45
+ ERROR,
46
+ {
47
+ argsIgnorePattern: '^_',
48
+ ignoreRestSiblings: true,
49
+ varsIgnorePattern: '^React$',
50
+ },
51
+ ],
52
+ },
53
+ },
54
+ ],
39
55
  };
40
56
 
41
57
  module.exports = eslintConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "11.3.0",
3
+ "version": "12.0.0",
4
4
  "description": "ESLint configuration used by SEEK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -24,12 +24,12 @@
24
24
  "@babel/eslint-parser": "^7.22.6",
25
25
  "@babel/preset-react": "^7.22.5",
26
26
  "@finsit/eslint-plugin-cypress": "^3.1.1",
27
- "@typescript-eslint/eslint-plugin": "^5.61.0",
28
- "@typescript-eslint/parser": "^5.61.0",
27
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
28
+ "@typescript-eslint/parser": "^6.0.0",
29
29
  "eslint-config-prettier": "^8.8.0",
30
30
  "eslint-import-resolver-typescript": "3.5.5",
31
31
  "eslint-plugin-import": "^2.27.5",
32
- "eslint-plugin-jest": "^27.2.2",
32
+ "eslint-plugin-jest": "^27.2.3",
33
33
  "eslint-plugin-react": "^7.32.2",
34
34
  "eslint-plugin-react-hooks": "^4.6.0",
35
35
  "eslint-plugin-rulesdir": "^0.2.2",
@@ -43,7 +43,7 @@
43
43
  "typescript": "~5.1.6"
44
44
  },
45
45
  "peerDependencies": {
46
- "eslint": ">=6",
46
+ "eslint": ">=7",
47
47
  "typescript": ">=4.5"
48
48
  },
49
49
  "packageManager": "pnpm@8.6.6",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "scripts": {
54
54
  "release": "changeset publish",
55
- "test": "eslint --config index.js . && eslint --config base.js .",
55
+ "test": "eslint . && eslint --config base.js .",
56
56
  "changeset-version": "changeset version && prettier --write ."
57
57
  }
58
58
  }