@gewis/eslint-config-javascript 2.2.0 → 2.2.2
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 -1
- package/index.mjs +5 -1
- package/package.json +11 -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
|
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
|
-
|
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.
|
3
|
+
"version": "2.2.2",
|
4
4
|
"description": "JavaScript ESLint configuration for GEWIS projects",
|
5
5
|
"homepage": "https://github.com/GEWIS/js-configs#readme",
|
6
6
|
"bugs": {
|
@@ -20,14 +20,21 @@
|
|
20
20
|
"exports": {
|
21
21
|
".": "./index.mjs"
|
22
22
|
},
|
23
|
+
"files": [
|
24
|
+
"index.mjs",
|
25
|
+
"package.json",
|
26
|
+
"README.md"
|
27
|
+
],
|
23
28
|
"dependencies": {
|
24
|
-
"@eslint/compat": "^1.2.
|
25
|
-
"@eslint/
|
29
|
+
"@eslint/compat": "^1.2.6",
|
30
|
+
"@eslint/eslintrc": "^3.2.0",
|
31
|
+
"@eslint/js": "^9.20.0",
|
32
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
26
33
|
"eslint-plugin-import": "^2.31.0"
|
27
34
|
},
|
28
35
|
"peerDependencies": {
|
29
36
|
"eslint": "*"
|
30
37
|
},
|
31
38
|
"packageManager": "yarn@4.5.1",
|
32
|
-
"gitHead": "
|
39
|
+
"gitHead": "928b61922c2c92a782ceee906876fd3974796d86"
|
33
40
|
}
|