eslint-config-simplesense 2.0.0 → 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 +8 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/plugins/eslint-recommended.js +1 -6
- package/plugins/node.js +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
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
|
+
|
|
2
10
|
## [2.0.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.2.0...2.0.0) (2021-12-01)
|
|
3
11
|
|
|
4
12
|
|
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',
|
package/package.json
CHANGED
|
@@ -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'],
|