eslint-config-makeable 4.1.1 → 5.2.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/.eslintrc.js +12 -8
- package/.vscode/settings.json +5 -30
- package/package.json +12 -13
package/.eslintrc.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"extends": ["airbnb", "prettier", 'plugin:vue/recommended'
|
|
2
|
+
"extends": ["airbnb", "prettier", 'plugin:vue/recommended'],
|
|
3
3
|
"plugins": ["prettier"],
|
|
4
|
-
"parser": "vue-eslint-parser",
|
|
5
4
|
"parserOptions": {
|
|
6
5
|
"parser": "@typescript-eslint/parser",
|
|
7
6
|
"ecmaVersion": 2018,
|
|
@@ -40,6 +39,7 @@ module.exports = {
|
|
|
40
39
|
"no-plusplus": 0,
|
|
41
40
|
"prefer-destructuring": 0,
|
|
42
41
|
"no-param-reassign": 0,
|
|
42
|
+
"import/extensions": 0,
|
|
43
43
|
"spaced-comment": 1,
|
|
44
44
|
"no-case-declarations": 1,
|
|
45
45
|
"import/no-extraneous-dependencies": [
|
|
@@ -51,10 +51,11 @@ module.exports = {
|
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
53
|
"no-unused-vars": [
|
|
54
|
-
1,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
1,
|
|
55
|
+
{
|
|
56
|
+
ignoreRestSiblings: true,
|
|
57
|
+
argsIgnorePattern: 'res|next|^err',
|
|
58
|
+
},
|
|
58
59
|
],
|
|
59
60
|
"consistent-return": 1,
|
|
60
61
|
"no-multiple-empty-lines": 1,
|
|
@@ -62,8 +63,11 @@ module.exports = {
|
|
|
62
63
|
"import/first": 1,
|
|
63
64
|
"camelcase": 1,
|
|
64
65
|
"prefer-const": 1,
|
|
66
|
+
"import/no-dynamic-require": 1,
|
|
67
|
+
"guard-for-in": 1,
|
|
68
|
+
"vue/singleline-html-element-content-newline": 0,
|
|
65
69
|
"vue/html-indent": 0,
|
|
66
70
|
"vue/max-attributes-per-line": 0,
|
|
67
|
-
"
|
|
71
|
+
"vue/html-self-closing": 0
|
|
68
72
|
}
|
|
69
|
-
}
|
|
73
|
+
}
|
package/.vscode/settings.json
CHANGED
|
@@ -1,36 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"eslint.autoFixOnSave": true,
|
|
3
|
-
"eslint.validate": [
|
|
4
|
-
"javascript",
|
|
5
|
-
"javascriptreact",
|
|
6
|
-
{
|
|
7
|
-
"language": "typescript",
|
|
8
|
-
"autoFix": true
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"language": "typescriptreact",
|
|
12
|
-
"autoFix": true
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"language": "vue",
|
|
16
|
-
"autoFix": true
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
2
|
"editor.formatOnSave": true,
|
|
20
3
|
"[javascript]": {
|
|
21
|
-
"editor.formatOnSave": false
|
|
4
|
+
"editor.formatOnSave": false
|
|
22
5
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
6
|
+
"eslint.alwaysShowStatus": true,
|
|
7
|
+
"editor.codeActionsOnSave": {
|
|
8
|
+
"source.fixAll": true
|
|
25
9
|
},
|
|
26
|
-
"
|
|
27
|
-
"editor.formatOnSave": false,
|
|
28
|
-
},
|
|
29
|
-
"[typescriptreact]": {
|
|
30
|
-
"editor.formatOnSave": false,
|
|
31
|
-
},
|
|
32
|
-
"[vue]": {
|
|
33
|
-
"editor.formatOnSave": false,
|
|
34
|
-
},
|
|
35
|
-
"prettier.disableLanguages": ["javascript", "typescript"]
|
|
10
|
+
"prettier.enable": false
|
|
36
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-makeable",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "ESlint config for Makeable's Typescript projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -14,18 +14,17 @@
|
|
|
14
14
|
"main": "index.js",
|
|
15
15
|
"author": "Lasse Borgen <lasse@makeable.dk>",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"eslint": "^
|
|
18
|
-
"@typescript-eslint/
|
|
19
|
-
"
|
|
20
|
-
"eslint-
|
|
21
|
-
"eslint-
|
|
22
|
-
"eslint-plugin-
|
|
23
|
-
"eslint-plugin-
|
|
24
|
-
"eslint-plugin-
|
|
17
|
+
"@typescript-eslint/eslint-plugin": "^4.13.0",
|
|
18
|
+
"@typescript-eslint/parser": "^4.13.0",
|
|
19
|
+
"eslint": "^5.16.0",
|
|
20
|
+
"eslint-config-airbnb": "^17.1.0",
|
|
21
|
+
"eslint-config-prettier": "^4.2.0",
|
|
22
|
+
"eslint-plugin-import": "^2.17.2",
|
|
23
|
+
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
24
|
+
"eslint-plugin-prettier": "^3.0.1",
|
|
25
|
+
"eslint-plugin-react": "^7.13.0",
|
|
25
26
|
"eslint-plugin-vue": "^5.2.3",
|
|
26
|
-
"prettier": "^1.18.
|
|
27
|
-
"eslint-config-prettier": "^6.4.0",
|
|
28
|
-
"eslint-config-airbnb": "^18.0.1"
|
|
27
|
+
"prettier": "^1.18.0"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
30
|
"typescript": "^3.1.6"
|
|
@@ -34,4 +33,4 @@
|
|
|
34
33
|
"lint": "eslint --ext .ts,.js,.vue src/",
|
|
35
34
|
"lint:fix": "eslint --fix --ext .ts,.js,.vue src/"
|
|
36
35
|
}
|
|
37
|
-
}
|
|
36
|
+
}
|