@shelf/eslint-config 2.8.0 → 2.10.3
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/README.md +4 -0
- package/base.js +6 -0
- package/meteor.js +6 -0
- package/package.json +8 -8
- package/typescript.js +7 -0
package/README.md
CHANGED
package/base.js
CHANGED
|
@@ -30,5 +30,11 @@ module.exports = {
|
|
|
30
30
|
'prefer-template': 'error',
|
|
31
31
|
'prefer-object-spread': 'error',
|
|
32
32
|
'comma-dangle': 'off',
|
|
33
|
+
camelcase: 'error',
|
|
34
|
+
eqeqeq: ['error', 'smart'],
|
|
35
|
+
'new-cap': 'error',
|
|
36
|
+
'no-extend-native': 'error',
|
|
37
|
+
'no-use-before-define': ['error', 'nofunc'],
|
|
38
|
+
'multiline-comment-style': ['error', 'separate-lines'],
|
|
33
39
|
},
|
|
34
40
|
};
|
package/meteor.js
CHANGED
|
@@ -30,5 +30,11 @@ module.exports = {
|
|
|
30
30
|
...importOrder,
|
|
31
31
|
'padding-line-between-statements': paddingLineBetweenStatements,
|
|
32
32
|
'comma-dangle': 'off',
|
|
33
|
+
camelcase: 'error',
|
|
34
|
+
eqeqeq: ['error', 'smart'],
|
|
35
|
+
'new-cap': 'error',
|
|
36
|
+
'no-extend-native': 'error',
|
|
37
|
+
'no-use-before-define': ['error', 'nofunc'],
|
|
38
|
+
'multiline-comment-style': ['error', 'separate-lines'],
|
|
33
39
|
},
|
|
34
40
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shelf/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.3",
|
|
4
4
|
"description": "ESLint Config for Shelf Projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "shelfio/eslint-config",
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
"eslintconfig"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/eslint-parser": "7.16.
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
37
|
-
"@typescript-eslint/parser": "5.
|
|
35
|
+
"@babel/eslint-parser": "7.16.5",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "5.8.1",
|
|
37
|
+
"@typescript-eslint/parser": "5.8.1",
|
|
38
38
|
"eslint-config-next": "11.1.2",
|
|
39
39
|
"eslint-config-prettier": "8.3.0",
|
|
40
40
|
"eslint-plugin-babel": "5.3.1",
|
|
41
41
|
"eslint-plugin-import": "2.25.3",
|
|
42
|
-
"eslint-plugin-jest": "25.3.
|
|
42
|
+
"eslint-plugin-jest": "25.3.2",
|
|
43
43
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
44
44
|
"eslint-plugin-json-format": "2.0.1",
|
|
45
45
|
"eslint-plugin-jsx": "0.1.0",
|
|
46
46
|
"eslint-plugin-prettier": "4.0.0",
|
|
47
47
|
"eslint-plugin-react": "7.27.1",
|
|
48
48
|
"eslint-plugin-react-hooks": "4.3.0",
|
|
49
|
-
"eslint-plugin-testing-library": "5.0.
|
|
50
|
-
"eslint-plugin-vue": "
|
|
49
|
+
"eslint-plugin-testing-library": "5.0.3",
|
|
50
|
+
"eslint-plugin-vue": "8.3.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"husky": "7.0.4",
|
|
54
|
-
"lint-staged": "12.1.
|
|
54
|
+
"lint-staged": "12.1.7",
|
|
55
55
|
"prettier": "2.5.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
package/typescript.js
CHANGED
|
@@ -37,7 +37,14 @@ module.exports = {
|
|
|
37
37
|
...consistentTypeAssertions,
|
|
38
38
|
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
|
|
39
39
|
'@typescript-eslint/no-non-null-assertion': 'off', // we want to allow using the "!" operator
|
|
40
|
+
camelcase: ['error', {properties: 'never', ignoreGlobals: true}],
|
|
41
|
+
eqeqeq: ['error', 'smart'],
|
|
42
|
+
'new-cap': 'error',
|
|
43
|
+
'no-extend-native': 'error',
|
|
44
|
+
'no-use-before-define': ['error', 'nofunc'],
|
|
40
45
|
...consistentTypeImports,
|
|
46
|
+
'multiline-comment-style': ['error', 'separate-lines'],
|
|
47
|
+
'arrow-body-style': ['error', 'as-needed', {requireReturnForObjectLiteral: true }],
|
|
41
48
|
},
|
|
42
49
|
overrides: [allowRequireInConfigs, noExplicitReturnTypeInTests],
|
|
43
50
|
};
|