eslint-config-simplesense 1.1.1 → 2.1.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/CHANGELOG.md +31 -0
- package/index.js +4 -0
- package/package.json +22 -12
- 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,35 @@
|
|
|
1
1
|
Changelog
|
|
2
|
+
## [2.1.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.0.0...2.1.0) (2021-12-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* adds node_modules mapping to lambda layers ([67424b6](https://github.com/simplesenseio/eslint-config-simplesense/commit/67424b6048b0a000c6b9aba19f58710ee5395023))
|
|
8
|
+
* modifies rules for .vue files ([6526864](https://github.com/simplesenseio/eslint-config-simplesense/commit/6526864a948134122cad3c10583db6e5506f4c44))
|
|
9
|
+
|
|
10
|
+
## [2.0.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.2.0...2.0.0) (2021-12-01)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* **npm:** Compatible with eslint version 8
|
|
16
|
+
|
|
17
|
+
* **npm:** update dependencies ([1b5b299](https://github.com/simplesenseio/eslint-config-simplesense/commit/1b5b2999429a60802443cd10ccf593cc2023dfcf)), closes [SI-1201171801561261](https://app.asana.com/0/0/1201171801561261)
|
|
18
|
+
|
|
19
|
+
## [1.2.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.2...1.2.0) (2021-11-08)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* 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)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* vuepress missing hash-sum module error ([4213662](https://github.com/simplesenseio/eslint-config-simplesense/commit/42136623fd4237c411eef917aba07656a71537f2))
|
|
30
|
+
|
|
31
|
+
### [1.1.2](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.1...1.1.2) (2021-09-29)
|
|
32
|
+
|
|
2
33
|
### [1.1.1](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.0...1.1.1) (2021-09-14)
|
|
3
34
|
|
|
4
35
|
|
package/index.js
CHANGED
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
],
|
|
64
64
|
plugins: ['vue'],
|
|
65
65
|
rules: {
|
|
66
|
+
'unicorn/filename-case': [ 'error', { case: 'pascalCase' }],
|
|
66
67
|
'vue/component-name-in-template-casing': [ 'error', 'kebab-case' ],
|
|
67
68
|
'vue/component-definition-name-casing': [ 'error', 'kebab-case' ],
|
|
68
69
|
'vue/singleline-html-element-content-newline': 'off',
|
|
@@ -76,5 +77,8 @@
|
|
|
76
77
|
},
|
|
77
78
|
},
|
|
78
79
|
],
|
|
80
|
+
globals: {
|
|
81
|
+
spyFn: true,
|
|
82
|
+
},
|
|
79
83
|
};
|
|
80
84
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-simplesense",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "ESLint Config for SimpleSense Styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"docs:clean": "rm -rf docs/.vuepress/dist ./dist",
|
|
29
29
|
"docs:dev": "npm run docs:clean && npm run docs:generate && vuepress dev docs",
|
|
30
30
|
"docs:generate": "node scripts/generate-docs.js",
|
|
31
|
-
"docs:nojekyll": "touch dist/.nojekyll",
|
|
32
31
|
"docs:mv": "mv docs/.vuepress/dist ./",
|
|
32
|
+
"docs:nojekyll": "touch dist/.nojekyll",
|
|
33
33
|
"lint": "npm run lint:package-json && npm run lint:eslint",
|
|
34
|
-
"lint:package-json": "sort-package-json",
|
|
35
34
|
"lint:eslint": "eslint --config index.js --fix '**/*.{js,vue,yaml,yml}'",
|
|
35
|
+
"lint:package-json": "sort-package-json",
|
|
36
36
|
"test": "jest"
|
|
37
37
|
},
|
|
38
38
|
"jest": {
|
|
@@ -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.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.1.1",
|
|
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.3.0",
|
|
69
|
+
"hash-sum": "^2.0.0",
|
|
70
|
+
"jest": "^27.4.3",
|
|
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'],
|