@bitfactory/eslint-config 1.2.0 → 1.2.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 +5 -3
- package/package.json +11 -11
- package/rules/style.js +5 -5
- package/rules/vue.js +1 -1
package/README.md
CHANGED
|
@@ -8,13 +8,15 @@
|
|
|
8
8
|
|
|
9
9
|
This is a shareable config for [ESLint](https://eslint.org). All the rules and configurations are already set. Rules can be overridden if needed.
|
|
10
10
|
|
|
11
|
-
- [
|
|
11
|
+
- [@bitfactory/eslint-config](#bitfactoryeslint-config)
|
|
12
|
+
- [:package: Installing](#package-installing)
|
|
12
13
|
- [Vue.js projects](#vuejs-projects)
|
|
13
14
|
- [TypeScript projects](#typescript-projects)
|
|
14
15
|
- [Vue.js, TypeScript and regular JavaScript together](#vuejs-typescript-and-regular-javascript-together)
|
|
15
|
-
- [CLI usage](#rocket-cli-usage)
|
|
16
|
-
- [Editor / IDE integration](#pencil2-editor--ide-integration)
|
|
16
|
+
- [:rocket: CLI usage](#rocket-cli-usage)
|
|
17
|
+
- [:pencil2: Editor / IDE integration](#pencil2-editor--ide-integration)
|
|
17
18
|
- [Visual Studio Code](#visual-studio-code)
|
|
19
|
+
- [Additional Extensions](#additional-extensions)
|
|
18
20
|
- [PhpStorm](#phpstorm)
|
|
19
21
|
|
|
20
22
|
## :package: Installing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitfactory/eslint-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "ESLint sharable config for Bitfactory projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"update:interactive": "npx npm-check -uE"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babel/core": "7.
|
|
27
|
-
"@babel/eslint-parser": "7.
|
|
28
|
-
"eslint": "
|
|
29
|
-
"eslint-plugin-jsdoc": "
|
|
30
|
-
"eslint-plugin-unicorn": "
|
|
31
|
-
"lint-staged": "
|
|
32
|
-
"simple-git-hooks": "2.
|
|
26
|
+
"@babel/core": "7.17.10",
|
|
27
|
+
"@babel/eslint-parser": "7.17.0",
|
|
28
|
+
"eslint": "8.15.0",
|
|
29
|
+
"eslint-plugin-jsdoc": "39.2.9",
|
|
30
|
+
"eslint-plugin-unicorn": "42.0.0",
|
|
31
|
+
"lint-staged": "12.4.1",
|
|
32
|
+
"simple-git-hooks": "2.7.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@babel/core": "^7.0.0",
|
|
36
36
|
"@babel/eslint-parser": "^7.0.0",
|
|
37
|
-
"eslint": "^
|
|
38
|
-
"eslint-plugin-jsdoc": ">=
|
|
39
|
-
"eslint-plugin-unicorn": ">=
|
|
37
|
+
"eslint": "^8.0.0",
|
|
38
|
+
"eslint-plugin-jsdoc": ">=39.0.0",
|
|
39
|
+
"eslint-plugin-unicorn": ">=42.0.0"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/rules/style.js
CHANGED
|
@@ -18,7 +18,9 @@ module.exports = {
|
|
|
18
18
|
'func-names': ['error', 'never'],
|
|
19
19
|
'func-style': 'error',
|
|
20
20
|
'implicit-arrow-linebreak': 'error',
|
|
21
|
-
'indent': ['error', 4
|
|
21
|
+
'indent': ['error', 4, {
|
|
22
|
+
SwitchCase: 1,
|
|
23
|
+
}],
|
|
22
24
|
'key-spacing': 'error',
|
|
23
25
|
'keyword-spacing': 'error',
|
|
24
26
|
'line-comment-position': 'error',
|
|
@@ -81,13 +83,11 @@ module.exports = {
|
|
|
81
83
|
'no-whitespace-before-property': 'error',
|
|
82
84
|
'object-curly-newline': ['error', {
|
|
83
85
|
ExportDeclaration: {
|
|
84
|
-
consistent: false,
|
|
85
86
|
minProperties: 2,
|
|
86
87
|
multiline: true,
|
|
87
88
|
},
|
|
88
89
|
ImportDeclaration: {
|
|
89
|
-
|
|
90
|
-
minProperties: 2,
|
|
90
|
+
minProperties: 4,
|
|
91
91
|
multiline: true,
|
|
92
92
|
},
|
|
93
93
|
ObjectExpression: {
|
|
@@ -95,7 +95,7 @@ module.exports = {
|
|
|
95
95
|
multiline: true,
|
|
96
96
|
},
|
|
97
97
|
ObjectPattern: {
|
|
98
|
-
minProperties:
|
|
98
|
+
minProperties: 4,
|
|
99
99
|
multiline: true,
|
|
100
100
|
},
|
|
101
101
|
}],
|