eslint-config-simplesense 1.1.2 → 2.1.1
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 +36 -0
- package/index.js +5 -0
- package/package.json +20 -10
- package/plugins/eslint-recommended.js +1 -6
- package/plugins/node.js +7 -1
- package/plugins/unicorn.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,40 @@
|
|
|
1
1
|
Changelog
|
|
2
|
+
### [2.1.1](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.1.0...2.1.1) (2021-12-20)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Code Refactoring
|
|
6
|
+
|
|
7
|
+
* includes .github/actions in the ignore patterns ([856cb1d](https://github.com/simplesenseio/eslint-config-simplesense/commit/856cb1dd80dc1d42d1acd4ba404d6aa55a658464))
|
|
8
|
+
|
|
9
|
+
## [2.1.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.0.0...2.1.0) (2021-12-02)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* adds node_modules mapping to lambda layers ([67424b6](https://github.com/simplesenseio/eslint-config-simplesense/commit/67424b6048b0a000c6b9aba19f58710ee5395023))
|
|
15
|
+
* modifies rules for .vue files ([6526864](https://github.com/simplesenseio/eslint-config-simplesense/commit/6526864a948134122cad3c10583db6e5506f4c44))
|
|
16
|
+
|
|
17
|
+
## [2.0.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.2.0...2.0.0) (2021-12-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### ⚠ BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
* **npm:** Compatible with eslint version 8
|
|
23
|
+
|
|
24
|
+
* **npm:** update dependencies ([1b5b299](https://github.com/simplesenseio/eslint-config-simplesense/commit/1b5b2999429a60802443cd10ccf593cc2023dfcf)), closes [SI-1201171801561261](https://app.asana.com/0/0/1201171801561261)
|
|
25
|
+
|
|
26
|
+
## [1.2.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.2...1.2.0) (2021-11-08)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* adds a global for spyFn ([7c47bdb](https://github.com/simplesenseio/eslint-config-simplesense/commit/7c47bdb0be3eb592ebb021cb9ac10b15f3127e4d)), closes [SI-1201331635004549](https://app.asana.com/0/0/1201331635004549)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* vuepress missing hash-sum module error ([4213662](https://github.com/simplesenseio/eslint-config-simplesense/commit/42136623fd4237c411eef917aba07656a71537f2))
|
|
37
|
+
|
|
2
38
|
### [1.1.2](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.1...1.1.2) (2021-09-29)
|
|
3
39
|
|
|
4
40
|
### [1.1.1](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.0...1.1.1) (2021-09-14)
|
package/index.js
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
'!.*',
|
|
43
43
|
'.cache/',
|
|
44
44
|
'.git/',
|
|
45
|
+
'.github/actions/',
|
|
45
46
|
'.npm/',
|
|
46
47
|
'.nyc_output/',
|
|
47
48
|
'coverage/',
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
],
|
|
64
65
|
plugins: ['vue'],
|
|
65
66
|
rules: {
|
|
67
|
+
'unicorn/filename-case': [ 'error', { case: 'pascalCase' }],
|
|
66
68
|
'vue/component-name-in-template-casing': [ 'error', 'kebab-case' ],
|
|
67
69
|
'vue/component-definition-name-casing': [ 'error', 'kebab-case' ],
|
|
68
70
|
'vue/singleline-html-element-content-newline': 'off',
|
|
@@ -76,5 +78,8 @@
|
|
|
76
78
|
},
|
|
77
79
|
},
|
|
78
80
|
],
|
|
81
|
+
globals: {
|
|
82
|
+
spyFn: true,
|
|
83
|
+
},
|
|
79
84
|
};
|
|
80
85
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-simplesense",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "ESLint Config for SimpleSense Styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -41,28 +41,38 @@
|
|
|
41
41
|
"index.js",
|
|
42
42
|
"plugins/*.js"
|
|
43
43
|
],
|
|
44
|
+
"moduleNameMapper": {
|
|
45
|
+
"eslint/use-at-your-own-risk": "eslint/lib/unsupported-api"
|
|
46
|
+
},
|
|
47
|
+
"setupFiles": [
|
|
48
|
+
"<rootDir>/test/setup/global-functions.js"
|
|
49
|
+
],
|
|
44
50
|
"verbose": true
|
|
45
51
|
},
|
|
46
52
|
"dependencies": {
|
|
47
53
|
"eslint-plugin-array-func": "^3.1.7",
|
|
48
54
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
49
|
-
"eslint-plugin-import": "^2.
|
|
55
|
+
"eslint-plugin-import": "^2.25.3",
|
|
50
56
|
"eslint-plugin-no-use-extend-native": "^0.5.0",
|
|
51
57
|
"eslint-plugin-node": "^11.1.0",
|
|
52
58
|
"eslint-plugin-optimize-regex": "^1.2.1",
|
|
53
|
-
"eslint-plugin-regexp": "^1.
|
|
59
|
+
"eslint-plugin-regexp": "^1.5.1",
|
|
54
60
|
"eslint-plugin-security": "^1.4.0",
|
|
55
|
-
"eslint-plugin-sonarjs": "^0.
|
|
56
|
-
"eslint-plugin-unicorn": "^
|
|
57
|
-
"eslint-plugin-vue": "^
|
|
58
|
-
"eslint-plugin-yml": "^0.
|
|
61
|
+
"eslint-plugin-sonarjs": "^0.11.0",
|
|
62
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
63
|
+
"eslint-plugin-vue": "^8.2.0",
|
|
64
|
+
"eslint-plugin-yml": "^0.12.0"
|
|
59
65
|
},
|
|
60
66
|
"devDependencies": {
|
|
61
67
|
"@vuepress/plugin-pwa": "^1.8.2",
|
|
62
|
-
"eslint": "^
|
|
63
|
-
"
|
|
64
|
-
"
|
|
68
|
+
"eslint": "^8.5.0",
|
|
69
|
+
"hash-sum": "^2.0.0",
|
|
70
|
+
"jest": "^27.4.5",
|
|
71
|
+
"sort-package-json": "^1.53.1",
|
|
65
72
|
"vuepress": "^1.8.2",
|
|
66
73
|
"vuepress-theme-default-prefers-color-scheme": "^2.0.0"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"eslint": ">=8.0.0"
|
|
67
77
|
}
|
|
68
78
|
}
|
|
@@ -199,12 +199,7 @@
|
|
|
199
199
|
'semi-spacing': [ 'error', { after: true, before: false }],
|
|
200
200
|
'semi-style': [ 'error', 'last' ],
|
|
201
201
|
semi: [ 'error', 'always' ],
|
|
202
|
-
'sort-imports':
|
|
203
|
-
'error', {
|
|
204
|
-
allowSeparatedGroups: true,
|
|
205
|
-
ignoreCase: false,
|
|
206
|
-
},
|
|
207
|
-
],
|
|
202
|
+
'sort-imports': 'off',
|
|
208
203
|
'sort-vars': [ 'error', { ignoreCase: false }],
|
|
209
204
|
'space-before-blocks': [ 'error', 'always' ],
|
|
210
205
|
'space-before-function-paren': [ 'error', 'never' ],
|
package/plugins/node.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
4
6
|
const NODE_VERSION = '>=14.0.0';
|
|
5
7
|
|
|
6
8
|
module.exports = {
|
|
@@ -17,7 +19,11 @@
|
|
|
17
19
|
'node/handle-callback-err': ['error'],
|
|
18
20
|
'node/no-deprecated-api': [ 'error', { version: NODE_VERSION }],
|
|
19
21
|
'node/no-missing-import': ['error'],
|
|
20
|
-
'node/no-missing-require': [
|
|
22
|
+
'node/no-missing-require': [
|
|
23
|
+
'error', {
|
|
24
|
+
resolvePaths: [path.resolve(__dirname, '../../../lambda/layers/node-modules/nodejs/node_modules')],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
21
27
|
'node/no-mixed-requires': [ 'error', { allowCall: true, grouping: true }],
|
|
22
28
|
'node/no-new-require': ['error'],
|
|
23
29
|
'node/no-path-concat': ['error'],
|
package/plugins/unicorn.js
CHANGED
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
'unicorn/prefer-string-starts-ends-with': ['error'],
|
|
44
44
|
'unicorn/prefer-string-trim-start-end': ['error'],
|
|
45
45
|
'unicorn/prefer-type-error': ['error'],
|
|
46
|
-
// not yet released
|
|
47
46
|
'unicorn/require-array-join-separator': ['error'],
|
|
48
47
|
'unicorn/require-number-to-fixed-digits-argument': ['error'],
|
|
49
48
|
'unicorn/throw-new-error': ['error'],
|