@gewis/eslint-config-javascript 2.2.1 → 2.2.3

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 +2 -1
  2. package/index.mjs +5 -1
  3. package/package.json +6 -4
package/README.md CHANGED
@@ -10,10 +10,11 @@ yarn add @gewis/eslint-config@github.com:GEWIS/eslint-config --dev
10
10
  ```
11
11
 
12
12
  ## Configuration
13
+
13
14
  In your ESLint configuration file, add the following:
14
15
 
15
16
  ```javascript
16
- import { eslintConfig as common } from '@gewis/eslint-config-javascript';
17
+ import { eslintConfig as common } from '@gewis/eslint-config-javascript';
17
18
 
18
19
  export default [...common];
19
20
  ```
package/index.mjs CHANGED
@@ -3,6 +3,7 @@ import eslint from '@eslint/js';
3
3
  import importPlugin from 'eslint-plugin-import';
4
4
 
5
5
  import { includeIgnoreFile } from '@eslint/compat';
6
+ import { FlatCompat } from '@eslint/eslintrc';
6
7
 
7
8
  const config = [
8
9
  includeIgnoreFile(path.resolve('.gitignore')),
@@ -34,4 +35,7 @@ const config = [
34
35
  },
35
36
  ];
36
37
 
37
- export { config as eslintConfig };
38
+ const compat = new FlatCompat();
39
+ const strictConfig = [...compat.extends('airbnb-base'), ...config];
40
+
41
+ export { config as eslintConfig, strictConfig as eslintConfigStrict };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gewis/eslint-config-javascript",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "JavaScript ESLint configuration for GEWIS projects",
5
5
  "homepage": "https://github.com/GEWIS/js-configs#readme",
6
6
  "bugs": {
@@ -26,13 +26,15 @@
26
26
  "README.md"
27
27
  ],
28
28
  "dependencies": {
29
- "@eslint/compat": "^1.2.2",
30
- "@eslint/js": "^9.12.0",
29
+ "@eslint/compat": "^1.2.7",
30
+ "@eslint/eslintrc": "^3.3.0",
31
+ "@eslint/js": "^9.21.0",
32
+ "eslint-config-airbnb-base": "^15.0.0",
31
33
  "eslint-plugin-import": "^2.31.0"
32
34
  },
33
35
  "peerDependencies": {
34
36
  "eslint": "*"
35
37
  },
36
38
  "packageManager": "yarn@4.5.1",
37
- "gitHead": "248a5e3100ecb38469ec8ef6687cef668deec3e8"
39
+ "gitHead": "29860b11f88682f2db500d6c34325a8226b85e99"
38
40
  }