@gewis/eslint-config-javascript 2.2.2 → 2.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/index.mjs +9 -6
- package/package.json +4 -6
package/index.mjs
CHANGED
@@ -3,7 +3,6 @@ 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';
|
7
6
|
|
8
7
|
const config = [
|
9
8
|
includeIgnoreFile(path.resolve('.gitignore')),
|
@@ -16,7 +15,7 @@ const config = [
|
|
16
15
|
semi: ['error', 'always'],
|
17
16
|
'object-curly-spacing': ['error', 'always'],
|
18
17
|
'linebreak-style': ['error', 'unix'],
|
19
|
-
'no-console': ['
|
18
|
+
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],
|
20
19
|
},
|
21
20
|
},
|
22
21
|
// Plugin by plugin for better overview
|
@@ -31,11 +30,15 @@ const config = [
|
|
31
30
|
'import/named': 'off',
|
32
31
|
'import/order': ['warn'],
|
33
32
|
'import/first': ['warn'],
|
33
|
+
'import/extensions': ['error', 'ignorePackages', {
|
34
|
+
"js": "never",
|
35
|
+
"jsx": "never",
|
36
|
+
"mjs": "never",
|
37
|
+
"cjs": "never",
|
38
|
+
"vue": "never",
|
39
|
+
}],
|
34
40
|
},
|
35
41
|
},
|
36
42
|
];
|
37
43
|
|
38
|
-
|
39
|
-
const strictConfig = [...compat.extends('airbnb-base'), ...config];
|
40
|
-
|
41
|
-
export { config as eslintConfig, strictConfig as eslintConfigStrict };
|
44
|
+
export { config as eslintConfig };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gewis/eslint-config-javascript",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.3.0",
|
4
4
|
"description": "JavaScript ESLint configuration for GEWIS projects",
|
5
5
|
"homepage": "https://github.com/GEWIS/js-configs#readme",
|
6
6
|
"bugs": {
|
@@ -26,15 +26,13 @@
|
|
26
26
|
"README.md"
|
27
27
|
],
|
28
28
|
"dependencies": {
|
29
|
-
"@eslint/compat": "^1.2.
|
30
|
-
"@eslint/
|
31
|
-
"@eslint/js": "^9.20.0",
|
32
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
29
|
+
"@eslint/compat": "^1.2.7",
|
30
|
+
"@eslint/js": "^9.21.0",
|
33
31
|
"eslint-plugin-import": "^2.31.0"
|
34
32
|
},
|
35
33
|
"peerDependencies": {
|
36
34
|
"eslint": "*"
|
37
35
|
},
|
38
36
|
"packageManager": "yarn@4.5.1",
|
39
|
-
"gitHead": "
|
37
|
+
"gitHead": "59935539c9bd730ae9513a6ea81a6110da921d4f"
|
40
38
|
}
|