@luxass/eslint-config 1.0.4 → 1.0.5
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 +1 -0
- package/package.json +18 -18
- package/src/index.js +14 -2
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxass/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Luxass' ESLint config",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Lucas Norgaard",
|
|
@@ -25,30 +25,30 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"eslint": "^8.16.0"
|
|
27
27
|
},
|
|
28
|
-
"
|
|
29
|
-
"@
|
|
30
|
-
"@typescript-eslint/
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@luxass/prettier-config": "^1.0.4",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
|
31
|
+
"@typescript-eslint/parser": "^5.30.6",
|
|
32
|
+
"bumpp": "^7.2.0",
|
|
33
|
+
"eslint": "^8.20.0",
|
|
31
34
|
"eslint-config-standard": "^17.0.0",
|
|
32
35
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
33
36
|
"eslint-plugin-import": "^2.26.0",
|
|
34
|
-
"eslint-plugin-jsonc": "^2.3.
|
|
35
|
-
"eslint-plugin-markdown": "^
|
|
36
|
-
"eslint-plugin-n": "^15.2.
|
|
37
|
+
"eslint-plugin-jsonc": "^2.3.1",
|
|
38
|
+
"eslint-plugin-markdown": "^3.0.0",
|
|
39
|
+
"eslint-plugin-n": "^15.2.4",
|
|
37
40
|
"eslint-plugin-promise": "^6.0.0",
|
|
38
|
-
"eslint-plugin-react": "^7.30.
|
|
39
|
-
"eslint-plugin-unicorn": "^
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@luxass/prettier-config": "^1.0.4",
|
|
44
|
-
"bumpp": "^7.1.1",
|
|
45
|
-
"eslint": "^8.16.0",
|
|
41
|
+
"eslint-plugin-react": "^7.30.1",
|
|
42
|
+
"eslint-plugin-unicorn": "^43.0.1",
|
|
43
|
+
"eslint-plugin-yml": "^1.0.0",
|
|
44
|
+
"jsonc-eslint-parser": "^2.1.0",
|
|
46
45
|
"prettier": "^2.7.1",
|
|
47
|
-
"typescript": "^4.7.
|
|
46
|
+
"typescript": "^4.7.4"
|
|
48
47
|
},
|
|
49
48
|
"scripts": {
|
|
50
|
-
"lint": "eslint .",
|
|
51
49
|
"bump": "bumpp package.json --commit --push --tag",
|
|
52
|
-
"release": "pnpm -r publish --access public"
|
|
50
|
+
"release": "pnpm -r publish --access public",
|
|
51
|
+
"format": "prettier --write --cache .",
|
|
52
|
+
"lint": "eslint --cache src/**/*.js"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/index.js
CHANGED
|
@@ -11,6 +11,7 @@ module.exports = {
|
|
|
11
11
|
'plugin:eslint-comments/recommended',
|
|
12
12
|
'plugin:jsonc/recommended-with-jsonc',
|
|
13
13
|
'plugin:markdown/recommended',
|
|
14
|
+
'plugin:yml/standard',
|
|
14
15
|
'./javascript',
|
|
15
16
|
'./typescript'
|
|
16
17
|
],
|
|
@@ -24,7 +25,9 @@ module.exports = {
|
|
|
24
25
|
'public',
|
|
25
26
|
'package-lock.json',
|
|
26
27
|
'pnpm-lock.yaml',
|
|
27
|
-
'yarn.lock'
|
|
28
|
+
'yarn.lock',
|
|
29
|
+
'!.github',
|
|
30
|
+
'!.vscode'
|
|
28
31
|
],
|
|
29
32
|
plugins: ['unicorn'],
|
|
30
33
|
settings: {
|
|
@@ -48,6 +51,13 @@ module.exports = {
|
|
|
48
51
|
'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }]
|
|
49
52
|
}
|
|
50
53
|
},
|
|
54
|
+
{
|
|
55
|
+
files: ['*.yaml', '*.yml'],
|
|
56
|
+
parser: 'yaml-eslint-parser',
|
|
57
|
+
rules: {
|
|
58
|
+
'spaced-comment': 'off'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
51
61
|
{
|
|
52
62
|
files: ['package.json'],
|
|
53
63
|
parser: 'jsonc-eslint-parser',
|
|
@@ -150,6 +160,8 @@ module.exports = {
|
|
|
150
160
|
rules: {
|
|
151
161
|
'eol-last': 'off',
|
|
152
162
|
'no-trailing-spaces': 'off',
|
|
153
|
-
'padded-blocks': 'off'
|
|
163
|
+
'padded-blocks': 'off',
|
|
164
|
+
'yml/quotes': ['error', { prefer: 'single', avoidEscape: false }],
|
|
165
|
+
'yml/no-empty-document': 'off'
|
|
154
166
|
}
|
|
155
167
|
};
|