eslint-config-simplesense 5.0.0 → 5.0.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/config/import.js +4 -1
- package/config/lambda.js +25 -0
- package/index.js +2 -0
- package/package.json +3 -3
package/config/import.js
CHANGED
package/config/lambda.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
files: [
|
|
4
|
+
'**/lambda/functions/**/*.js',
|
|
5
|
+
'**/lambda/functions/**/*.mjs',
|
|
6
|
+
'**/lambda/layers/**/*.js',
|
|
7
|
+
'**/lambda/layers/**/*.mjs',
|
|
8
|
+
],
|
|
9
|
+
rules: {
|
|
10
|
+
'n/no-missing-import': ['off'],
|
|
11
|
+
'import/no-unresolved': [
|
|
12
|
+
'error',
|
|
13
|
+
{
|
|
14
|
+
ignore: [String.raw `^\/opt\/nodejs\/.*\.m?js$`],
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
files: ['lambda/functions/**/index.js'],
|
|
21
|
+
rules: {
|
|
22
|
+
'import/prefer-default-export': ['off'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
];
|
package/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import arrayFuncConfig from './config/array-func.js';
|
|
|
3
3
|
import eslintCommentsConfig from './config/eslint-comments.js';
|
|
4
4
|
import globals from './config/globals.js';
|
|
5
5
|
import importConfig from './config/import.js';
|
|
6
|
+
import lambdaConfig from './config/lambda.js';
|
|
6
7
|
import nodeConfig from './config/node.js';
|
|
7
8
|
import optimizeRegexConfig from './config/optimize-regex.js';
|
|
8
9
|
import regexpConfig from './config/regexp.js';
|
|
@@ -27,6 +28,7 @@ export default [
|
|
|
27
28
|
unicornConfig,
|
|
28
29
|
...vueConfig, // exports an array
|
|
29
30
|
...yamlConfig, // exports an array
|
|
31
|
+
...lambdaConfig, // exports an array and should be last - rules are overrides
|
|
30
32
|
{
|
|
31
33
|
languageOptions: {
|
|
32
34
|
sourceType: 'module',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-simplesense",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "ESLint Config for Simplesense Styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
48
|
-
"@eslint/js": "^9.
|
|
49
|
-
"@stylistic/eslint-plugin-js": "^2.6.
|
|
48
|
+
"@eslint/js": "^9.9.0",
|
|
49
|
+
"@stylistic/eslint-plugin-js": "^2.6.2",
|
|
50
50
|
"eslint-plugin-array-func": "^5.0.2",
|
|
51
51
|
"eslint-plugin-import": "^2.29.1",
|
|
52
52
|
"eslint-plugin-n": "^17.10.2",
|