eslint-config-seek 0.0.0-eslint-9-etc-20240810051715 → 0.0.0-eslint-9-etc-20240908035232
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/README.md +2 -2
- package/base.js +1 -4
- package/index.js +2 -0
- package/package.json +10 -11
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
This package includes the shareable ESLint configuration used by [SEEK](https://github.com/seek-oss/).
|
|
7
7
|
|
|
8
|
-
## Usage in sku Projects
|
|
8
|
+
## Usage in sku and skuba Projects
|
|
9
9
|
|
|
10
10
|
The easiest way to use this configuration is with [sku](https://github.com/seek-oss/sku) or [skuba](https://github.com/seek-oss/skuba).
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ If you want to use this ESLint configuration in a project not built with sku or
|
|
|
17
17
|
|
|
18
18
|
First, install this package, and the necessary peer dependencies listed in this project's [package.json](package.json).
|
|
19
19
|
|
|
20
|
-
Then create a file named `eslint.config.js` with following contents in the root folder of your project:
|
|
20
|
+
Then create a file named `eslint.config.js` with the following contents in the root folder of your project:
|
|
21
21
|
|
|
22
22
|
```js
|
|
23
23
|
module.exports = require('eslint-config-seek');
|
package/base.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const root = require('find-root')(process.cwd());
|
|
2
1
|
const importX = require('eslint-plugin-import-x');
|
|
3
2
|
const globals = require('globals');
|
|
4
3
|
const babelParser = require('@babel/eslint-parser');
|
|
@@ -97,9 +96,7 @@ const allExtensions = [...jsExtensions, ...tsExtensions];
|
|
|
97
96
|
const settings = {
|
|
98
97
|
'import-x/resolver': {
|
|
99
98
|
typescript: true,
|
|
100
|
-
node:
|
|
101
|
-
moduleDirectory: [root, 'node_modules'],
|
|
102
|
-
},
|
|
99
|
+
node: true,
|
|
103
100
|
},
|
|
104
101
|
};
|
|
105
102
|
|
package/index.js
CHANGED
|
@@ -68,11 +68,13 @@ module.exports = [
|
|
|
68
68
|
files: ['**/*.tsx'],
|
|
69
69
|
|
|
70
70
|
rules: {
|
|
71
|
+
// temporary override until everybody removes the React import
|
|
71
72
|
'@typescript-eslint/no-unused-vars': [
|
|
72
73
|
ERROR,
|
|
73
74
|
{
|
|
74
75
|
argsIgnorePattern: '^_',
|
|
75
76
|
ignoreRestSiblings: true,
|
|
77
|
+
varsIgnorePattern: '^React$',
|
|
76
78
|
},
|
|
77
79
|
],
|
|
78
80
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seek",
|
|
3
|
-
"version": "0.0.0-eslint-9-etc-
|
|
3
|
+
"version": "0.0.0-eslint-9-etc-20240908035232",
|
|
4
4
|
"description": "ESLint configuration used by SEEK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -24,17 +24,16 @@
|
|
|
24
24
|
"@babel/preset-react": "^7.24.7",
|
|
25
25
|
"@eslint/compat": "^1.1.1",
|
|
26
26
|
"@eslint/eslintrc": "^3.1.0",
|
|
27
|
-
"@eslint/js": "^9.
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^8.0
|
|
29
|
-
"@typescript-eslint/parser": "^8.0
|
|
27
|
+
"@eslint/js": "^9.9.1",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
29
|
+
"@typescript-eslint/parser": "^8.3.0",
|
|
30
30
|
"eslint-config-prettier": "^9.1.0",
|
|
31
|
-
"eslint-import-resolver-typescript": "^3.6.
|
|
32
|
-
"eslint-plugin-cypress": "^3.
|
|
33
|
-
"eslint-plugin-import-x": "^
|
|
34
|
-
"eslint-plugin-jest": "^28.
|
|
31
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
32
|
+
"eslint-plugin-cypress": "^3.5.0",
|
|
33
|
+
"eslint-plugin-import-x": "^4.0.0",
|
|
34
|
+
"eslint-plugin-jest": "^28.8.0",
|
|
35
35
|
"eslint-plugin-react": "^7.35.0",
|
|
36
36
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
37
|
-
"find-root": "^1.1.0",
|
|
38
37
|
"globals": "^15.9.0"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
"typescript": "~5.5.4"
|
|
46
45
|
},
|
|
47
46
|
"peerDependencies": {
|
|
48
|
-
"eslint": ">=9.
|
|
47
|
+
"eslint": ">=9.9.1",
|
|
49
48
|
"typescript": ">=5.5.4"
|
|
50
49
|
},
|
|
51
50
|
"engines": {
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
},
|
|
57
56
|
"scripts": {
|
|
58
57
|
"release": "changeset publish",
|
|
59
|
-
"test": "eslint --config
|
|
58
|
+
"test": "eslint --config index.js . && eslint --config base.js .",
|
|
60
59
|
"changeset-version": "changeset version && prettier --write ."
|
|
61
60
|
}
|
|
62
61
|
}
|