eslint-config-seek 0.0.0-eslint-9-etc-20240804101852 → 0.0.0-eslint-9-etc-20240810051715

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/README.md +11 -15
  2. package/base.js +3 -3
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -7,33 +7,29 @@ This package includes the shareable ESLint configuration used by [SEEK](https://
7
7
 
8
8
  ## Usage in sku Projects
9
9
 
10
- The easiest way to use this configuration is with [sku](https://github.com/seek-oss/sku), which includes it by default.
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
 
12
- **You don’t need to install it separately in sku projects.**
12
+ **You don’t need to install it separately in sku and skuba projects.**
13
13
 
14
- ## Usage Outside of sku
14
+ ## Usage Outside of sku and skuba
15
15
 
16
- If you want to use this ESLint configuration in a project not built with sku, you can install it with following steps.
16
+ If you want to use this ESLint configuration in a project not built with sku or skuba, you can install it with following steps.
17
17
 
18
- First, install this package, ESLint and the necessary plugins listed in this project's [package.json](package.json).
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 `.eslintrc` with following contents in the root folder of your project:
20
+ Then create a file named `eslint.config.js` with following contents in the root folder of your project:
21
21
 
22
- ```json
23
- {
24
- "extends": "seek"
25
- }
22
+ ```js
23
+ module.exports = require('eslint-config-seek');
26
24
  ```
27
25
 
28
26
  The default configuration includes support for React projects. For projects that are not based on React, the "base" configuration should be used instead:
29
27
 
30
- ```json
31
- {
32
- "extends": "seek/base"
33
- }
28
+ ```js
29
+ module.exports = require('eslint-config-seek/base');
34
30
  ```
35
31
 
36
- You can override the settings from `eslint-config-seek` by editing the `.eslintrc` file. Learn more about [configuring ESLint](http://eslint.org/docs/user-guide/configuring) on the ESLint website.
32
+ You can override the settings from `eslint-config-seek` by editing the `eslint.config.js` file. Learn more about [configuring ESLint](https://eslint.org/docs/latest/use/configure/) on the ESLint website.
37
33
 
38
34
  ## License
39
35
 
package/base.js CHANGED
@@ -3,7 +3,7 @@ const importX = require('eslint-plugin-import-x');
3
3
  const globals = require('globals');
4
4
  const babelParser = require('@babel/eslint-parser');
5
5
  const tsParser = require('@typescript-eslint/parser');
6
- const jest = require('eslint-plugin-jest');
6
+ const jestPlugin = require('eslint-plugin-jest');
7
7
  const cypress = require('eslint-plugin-cypress');
8
8
  const js = require('@eslint/js');
9
9
 
@@ -145,7 +145,7 @@ module.exports = [
145
145
  sourceType: 'module',
146
146
 
147
147
  parserOptions: {
148
- project: true,
148
+ projectService: true,
149
149
  warnOnUnsupportedTypeScriptVersion: false,
150
150
  },
151
151
  },
@@ -234,7 +234,7 @@ module.exports = [
234
234
  `**/__tests__/**/*.{${allExtensions}}`,
235
235
  `**/*.@(spec|test).{${allExtensions}}`,
236
236
  ],
237
- plugins: { jest },
237
+ plugins: { jest: jestPlugin },
238
238
  languageOptions: {
239
239
  globals: {
240
240
  ...globals.jest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "0.0.0-eslint-9-etc-20240804101852",
3
+ "version": "0.0.0-eslint-9-etc-20240810051715",
4
4
  "description": "ESLint configuration used by SEEK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -25,8 +25,8 @@
25
25
  "@eslint/compat": "^1.1.1",
26
26
  "@eslint/eslintrc": "^3.1.0",
27
27
  "@eslint/js": "^9.8.0",
28
- "@typescript-eslint/eslint-plugin": "^8.0.0",
29
- "@typescript-eslint/parser": "^8.0.0",
28
+ "@typescript-eslint/eslint-plugin": "^8.0.1",
29
+ "@typescript-eslint/parser": "^8.0.1",
30
30
  "eslint-config-prettier": "^9.1.0",
31
31
  "eslint-import-resolver-typescript": "^3.6.1",
32
32
  "eslint-plugin-cypress": "^3.4.0",