eslint-config-greenpie 7.3.1 → 7.5.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/README.md +10 -9
- package/index.js +3 -1
- package/package.json +7 -6
- package/rules/stylistic-plus.js +15 -0
- package/stylistic/plus.js +9 -0
package/README.md
CHANGED
|
@@ -22,15 +22,16 @@ And then extend your local eslint config by this one
|
|
|
22
22
|
|
|
23
23
|
Currently, here are four rulesets to extend
|
|
24
24
|
|
|
25
|
-
| Extension
|
|
26
|
-
|
|
27
|
-
| `eslint-config-greenpie`
|
|
28
|
-
| `eslint-config-greenpie/base`
|
|
29
|
-
| `eslint-config-greenpie/stylistic/js`
|
|
30
|
-
| `eslint-config-greenpie/stylistic/ts`
|
|
31
|
-
| `eslint-config-greenpie/
|
|
32
|
-
| `eslint-config-greenpie/
|
|
33
|
-
| `eslint-config-greenpie/
|
|
25
|
+
| Extension | Description |
|
|
26
|
+
|-----------------------------------------|------------------------------------------------|
|
|
27
|
+
| `eslint-config-greenpie` | Includes base, formatting and typescript rules |
|
|
28
|
+
| `eslint-config-greenpie/base` | Common ESLint rules |
|
|
29
|
+
| `eslint-config-greenpie/stylistic/js` | Stylistic JS rules |
|
|
30
|
+
| `eslint-config-greenpie/stylistic/ts` | Stylistic TS rules |
|
|
31
|
+
| `eslint-config-greenpie/stylistic/plus` | Stylistic Plus rules |
|
|
32
|
+
| `eslint-config-greenpie/typescript` | TypeScript-related rules |
|
|
33
|
+
| `eslint-config-greenpie/vue` | Rules for Vue projects |
|
|
34
|
+
| `eslint-config-greenpie/jest` | Rules for test files using Jest |
|
|
34
35
|
|
|
35
36
|
### Base rules
|
|
36
37
|
|
package/index.js
CHANGED
|
@@ -2,12 +2,14 @@ const baseRules = require.resolve('./rules/base');
|
|
|
2
2
|
const stylisticJsRules = require.resolve('./rules/stylistic-js');
|
|
3
3
|
const typescriptRules = require.resolve('./rules/typescript');
|
|
4
4
|
const stylisticTsRules = require.resolve('./rules/stylistic-ts');
|
|
5
|
+
const stylisticPlusRules = require.resolve('./rules/stylistic-plus');
|
|
5
6
|
|
|
6
7
|
module.exports = {
|
|
7
8
|
extends: [
|
|
8
9
|
baseRules,
|
|
9
10
|
stylisticJsRules,
|
|
10
11
|
typescriptRules,
|
|
11
|
-
stylisticTsRules
|
|
12
|
+
stylisticTsRules,
|
|
13
|
+
stylisticPlusRules
|
|
12
14
|
]
|
|
13
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-greenpie",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"description": "GreenPie's ESLint config file",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Roman Nuritdinov (Ky6uk)",
|
|
@@ -33,11 +33,12 @@
|
|
|
33
33
|
"vue"
|
|
34
34
|
],
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@stylistic/eslint-plugin-js": "^1.
|
|
37
|
-
"@stylistic/eslint-plugin-
|
|
38
|
-
"@
|
|
39
|
-
"@typescript-eslint/
|
|
40
|
-
"eslint": "^
|
|
36
|
+
"@stylistic/eslint-plugin-js": "^1.5.1",
|
|
37
|
+
"@stylistic/eslint-plugin-plus": "^1.5.1",
|
|
38
|
+
"@stylistic/eslint-plugin-ts": "^1.5.1",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
40
|
+
"@typescript-eslint/parser": "^6.14.0",
|
|
41
|
+
"eslint": "^8.55.0",
|
|
41
42
|
"eslint-plugin-jest": "^27.6.0",
|
|
42
43
|
"eslint-plugin-vue": "^9.19.2"
|
|
43
44
|
},
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// https://eslint.style/packages/plus
|
|
2
|
+
module.exports = {
|
|
3
|
+
plugins: [
|
|
4
|
+
'@stylistic/plus'
|
|
5
|
+
],
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* {@link https://github.com/eslint-stylistic/eslint-stylistic/releases}
|
|
9
|
+
*/
|
|
10
|
+
rules: {
|
|
11
|
+
'@stylistic/plus/indent-binary-ops': ['error', 2],
|
|
12
|
+
'@stylistic/plus/type-generic-spacing': 'error',
|
|
13
|
+
'@stylistic/plus/type-named-tuple-spacing': 'error'
|
|
14
|
+
}
|
|
15
|
+
};
|