eslint-config-seek 11.2.0 → 11.3.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 +6 -3
- package/index.js +5 -1
- package/package.json +14 -14
- package/rules/unsafe-to-chain-command.js +0 -11
package/base.js
CHANGED
|
@@ -110,9 +110,12 @@ const baseConfig = {
|
|
|
110
110
|
files: [`**/*.{${tsExtensions}}`],
|
|
111
111
|
parser: '@typescript-eslint/parser',
|
|
112
112
|
parserOptions: {
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
// https://github.com/typescript-eslint/typescript-eslint/issues/6544
|
|
114
|
+
allowAutomaticSingleRunInference: true,
|
|
115
|
+
ecmaVersion: 2022,
|
|
115
116
|
project: true,
|
|
117
|
+
sourceType: 'module',
|
|
118
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
|
116
119
|
},
|
|
117
120
|
extends: [
|
|
118
121
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
@@ -183,7 +186,7 @@ const baseConfig = {
|
|
|
183
186
|
settings: {
|
|
184
187
|
'import/resolver': {
|
|
185
188
|
node: {
|
|
186
|
-
moduleDirectory: [root,
|
|
189
|
+
moduleDirectory: [root, 'node_modules'],
|
|
187
190
|
},
|
|
188
191
|
},
|
|
189
192
|
},
|
package/index.js
CHANGED
|
@@ -23,7 +23,11 @@ const eslintConfig = {
|
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
plugins: ['react', 'react-hooks'],
|
|
26
|
-
extends: [
|
|
26
|
+
extends: [
|
|
27
|
+
'plugin:react/recommended',
|
|
28
|
+
'plugin:react/jsx-runtime',
|
|
29
|
+
'./base.js',
|
|
30
|
+
],
|
|
27
31
|
parserOptions: {
|
|
28
32
|
babelOptions: {
|
|
29
33
|
presets: [require.resolve('@babel/preset-react')],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seek",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"description": "ESLint configuration used by SEEK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -20,35 +20,35 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/seek-oss/eslint-config-seek#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babel/core": "^7.
|
|
24
|
-
"@babel/eslint-parser": "^7.
|
|
25
|
-
"@babel/preset-react": "^7.
|
|
23
|
+
"@babel/core": "^7.22.6",
|
|
24
|
+
"@babel/eslint-parser": "^7.22.6",
|
|
25
|
+
"@babel/preset-react": "^7.22.5",
|
|
26
26
|
"@finsit/eslint-plugin-cypress": "^3.1.1",
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
28
|
-
"@typescript-eslint/parser": "^5.
|
|
29
|
-
"eslint-config-prettier": "^8.
|
|
30
|
-
"eslint-import-resolver-typescript": "3.5.
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
28
|
+
"@typescript-eslint/parser": "^5.61.0",
|
|
29
|
+
"eslint-config-prettier": "^8.8.0",
|
|
30
|
+
"eslint-import-resolver-typescript": "3.5.5",
|
|
31
31
|
"eslint-plugin-import": "^2.27.5",
|
|
32
|
-
"eslint-plugin-jest": "^27.2.
|
|
32
|
+
"eslint-plugin-jest": "^27.2.2",
|
|
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",
|
|
36
36
|
"find-root": "^1.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@changesets/cli": "^2.26.
|
|
39
|
+
"@changesets/cli": "^2.26.2",
|
|
40
40
|
"@changesets/get-github-info": "^0.5.2",
|
|
41
|
-
"eslint": "^8.
|
|
41
|
+
"eslint": "^8.44.0",
|
|
42
42
|
"prettier": "^2.8.4",
|
|
43
|
-
"typescript": "~
|
|
43
|
+
"typescript": "~5.1.6"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"eslint": ">=6",
|
|
47
47
|
"typescript": ">=4.5"
|
|
48
48
|
},
|
|
49
|
-
"packageManager": "pnpm@8.
|
|
49
|
+
"packageManager": "pnpm@8.6.6",
|
|
50
50
|
"volta": {
|
|
51
|
-
"node": "
|
|
51
|
+
"node": "18.12.1"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"release": "changeset publish",
|
|
@@ -34,17 +34,6 @@ module.exports = {
|
|
|
34
34
|
context.report({
|
|
35
35
|
node,
|
|
36
36
|
messageId: 'unexpected',
|
|
37
|
-
fix: (fixer) => {
|
|
38
|
-
const { range: originalRange } = node.parent.property;
|
|
39
|
-
|
|
40
|
-
// Include the `.` before the identifier in the range
|
|
41
|
-
const adjustedRange = [originalRange[0] - 1, originalRange[1]];
|
|
42
|
-
|
|
43
|
-
return [
|
|
44
|
-
fixer.insertTextAfter(node, ';'),
|
|
45
|
-
fixer.insertTextBeforeRange(adjustedRange, 'cy'),
|
|
46
|
-
];
|
|
47
|
-
},
|
|
48
37
|
});
|
|
49
38
|
}
|
|
50
39
|
},
|