eslint-config-simplesense 2.1.1 → 2.3.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/CHANGELOG.md +28 -0
- package/README.md +1 -1
- package/package.json +14 -10
- package/plugins/import.js +9 -1
- package/plugins/node.js +10 -2
- package/plugins/unicorn.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
Changelog
|
|
2
|
+
### [2.3.2](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.3.1...2.3.2) (2022-02-12)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Code Refactoring
|
|
6
|
+
|
|
7
|
+
* configures import/no-unassigned-import to allow unassigned css and sass imports ([9b4db07](https://github.com/simplesenseio/eslint-config-simplesense/commit/9b4db07060fff807e1c29ee980d0db1b3e78657b))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Builds
|
|
11
|
+
|
|
12
|
+
* update npm dependencies ([f67a101](https://github.com/simplesenseio/eslint-config-simplesense/commit/f67a101e6757f66e8f54416807d9b8dac771090c))
|
|
13
|
+
|
|
14
|
+
### [2.3.1](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.3.0...2.3.1) (2022-01-23)
|
|
15
|
+
|
|
16
|
+
## [2.3.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.2.0...2.3.0) (2022-01-04)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* adds new unicorn rules no-thenable, no-useless-promise-resolve-reject ([dee451d](https://github.com/simplesenseio/eslint-config-simplesense/commit/dee451df2019fbff57f8e34f58f4c89666ae8579))
|
|
22
|
+
|
|
23
|
+
## [2.2.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.1.1...2.2.0) (2021-12-27)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* eslint-plugin-node settings for no-missing-require and no-unpublished-require ([2856955](https://github.com/simplesenseio/eslint-config-simplesense/commit/2856955b3887dd4b70d887edf397690845a96229)), closes [SI-1201495731599439](https://app.asana.com/0/0/1201495731599439)
|
|
29
|
+
|
|
2
30
|
### [2.1.1](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.1.0...2.1.1) (2021-12-20)
|
|
3
31
|
|
|
4
32
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# SimpleSense ESLint Config
|
|
2
2
|
|
|
3
3
|
[](https://simplesenseio.github.io/eslint-config-simplesense/)
|
|
4
|
-
[](https://github.com/simplesenseio/eslint-config-simplesense/actions/workflows/build.yaml)
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
## Generating Documentation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-simplesense",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "ESLint Config for SimpleSense Styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,29 +47,33 @@
|
|
|
47
47
|
"setupFiles": [
|
|
48
48
|
"<rootDir>/test/setup/global-functions.js"
|
|
49
49
|
],
|
|
50
|
+
"testPathIgnorePatterns": [
|
|
51
|
+
"/node_modules/",
|
|
52
|
+
"<rootDir>/\\.github/"
|
|
53
|
+
],
|
|
50
54
|
"verbose": true
|
|
51
55
|
},
|
|
52
56
|
"dependencies": {
|
|
53
57
|
"eslint-plugin-array-func": "^3.1.7",
|
|
54
58
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
55
|
-
"eslint-plugin-import": "^2.25.
|
|
59
|
+
"eslint-plugin-import": "^2.25.4",
|
|
56
60
|
"eslint-plugin-no-use-extend-native": "^0.5.0",
|
|
57
61
|
"eslint-plugin-node": "^11.1.0",
|
|
58
62
|
"eslint-plugin-optimize-regex": "^1.2.1",
|
|
59
63
|
"eslint-plugin-regexp": "^1.5.1",
|
|
60
64
|
"eslint-plugin-security": "^1.4.0",
|
|
61
65
|
"eslint-plugin-sonarjs": "^0.11.0",
|
|
62
|
-
"eslint-plugin-unicorn": "^
|
|
63
|
-
"eslint-plugin-vue": "^8.
|
|
64
|
-
"eslint-plugin-yml": "^0.
|
|
66
|
+
"eslint-plugin-unicorn": "^40.1.0",
|
|
67
|
+
"eslint-plugin-vue": "^8.4.1",
|
|
68
|
+
"eslint-plugin-yml": "^0.13.0"
|
|
65
69
|
},
|
|
66
70
|
"devDependencies": {
|
|
67
|
-
"@vuepress/plugin-pwa": "^1.
|
|
68
|
-
"eslint": "^8.
|
|
71
|
+
"@vuepress/plugin-pwa": "^1.9.7",
|
|
72
|
+
"eslint": "^8.9.0",
|
|
69
73
|
"hash-sum": "^2.0.0",
|
|
70
|
-
"jest": "^27.
|
|
71
|
-
"sort-package-json": "^1.
|
|
72
|
-
"vuepress": "^1.
|
|
74
|
+
"jest": "^27.5.1",
|
|
75
|
+
"sort-package-json": "^1.54.0",
|
|
76
|
+
"vuepress": "^1.9.7",
|
|
73
77
|
"vuepress-theme-default-prefers-color-scheme": "^2.0.0"
|
|
74
78
|
},
|
|
75
79
|
"peerDependencies": {
|
package/plugins/import.js
CHANGED
|
@@ -18,7 +18,15 @@
|
|
|
18
18
|
'import/no-named-as-default-member': ['error'],
|
|
19
19
|
'import/no-named-default': ['error'],
|
|
20
20
|
'import/no-self-import': ['error'],
|
|
21
|
-
'import/no-unassigned-import': [
|
|
21
|
+
'import/no-unassigned-import': [
|
|
22
|
+
'error', {
|
|
23
|
+
allow: [
|
|
24
|
+
'**/*.css',
|
|
25
|
+
'**/*.sass',
|
|
26
|
+
'**/*.scss',
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
],
|
|
22
30
|
'import/no-useless-path-segments': [ 'error', { commonjs: true }],
|
|
23
31
|
'import/order': [
|
|
24
32
|
'error', {
|
package/plugins/node.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
6
|
const NODE_VERSION = '>=14.0.0';
|
|
7
|
+
const ROOT_DIR = path.resolve(__dirname, '../../../');
|
|
7
8
|
|
|
8
9
|
module.exports = {
|
|
9
10
|
'node/callback-return': [
|
|
@@ -21,7 +22,8 @@
|
|
|
21
22
|
'node/no-missing-import': ['error'],
|
|
22
23
|
'node/no-missing-require': [
|
|
23
24
|
'error', {
|
|
24
|
-
|
|
25
|
+
allowModules: ['aws-sdk'],
|
|
26
|
+
resolvePaths: [path.resolve(__dirname, `${ ROOT_DIR }/lambda/layers/node-modules/nodejs/node_modules`)],
|
|
25
27
|
},
|
|
26
28
|
],
|
|
27
29
|
'node/no-mixed-requires': [ 'error', { allowCall: true, grouping: true }],
|
|
@@ -32,7 +34,13 @@
|
|
|
32
34
|
'node/no-unsupported-features/node-builtins': [ 'error', { version: NODE_VERSION }],
|
|
33
35
|
'node/no-unpublished-bin': ['error'],
|
|
34
36
|
'node/no-unpublished-import': ['error'],
|
|
35
|
-
'node/no-unpublished-require': [
|
|
37
|
+
'node/no-unpublished-require': [
|
|
38
|
+
'error', {
|
|
39
|
+
convertPath: {
|
|
40
|
+
[`${ path.relative(ROOT_DIR, '/opt/nodejs') }/*`]: [ '^(.*?)/opt/nodejs/(.*?)$', 'lambda/layers/$2/nodejs/$2' ],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
36
44
|
'node/prefer-global/buffer': [ 'error', 'always' ],
|
|
37
45
|
'node/prefer-global/console': [ 'error', 'always' ],
|
|
38
46
|
'node/prefer-global/process': [ 'error', 'always' ],
|
package/plugins/unicorn.js
CHANGED
|
@@ -18,9 +18,11 @@
|
|
|
18
18
|
'unicorn/no-instanceof-array': ['error'],
|
|
19
19
|
'unicorn/no-new-array': ['error'],
|
|
20
20
|
'unicorn/no-process-exit': ['error'],
|
|
21
|
+
'unicorn/no-thenable': ['error'],
|
|
21
22
|
'unicorn/no-this-assignment': ['error'],
|
|
22
23
|
'unicorn/no-unsafe-regex': ['error'],
|
|
23
24
|
'unicorn/no-unused-properties': ['error'],
|
|
25
|
+
'unicorn/no-useless-promise-resolve-reject': ['error'],
|
|
24
26
|
'unicorn/no-useless-undefined': ['error'],
|
|
25
27
|
'unicorn/no-zero-fractions': ['error'],
|
|
26
28
|
'unicorn/number-literal-case': ['error'],
|