@origin-1/eslint-config 0.8.1 → 0.9.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/lib/normalize-version.d.ts +2 -2
- package/lib/rules.js +2 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const JS_VERSION_SET: Set<5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022>;
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type JSVersion = typeof JS_VERSION_SET extends Set<infer T> ? T : never;
|
|
3
|
+
export type TSVersion = 'latest' | `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`;
|
|
4
4
|
export declare function normalizeJSVersion(jsVersion?: JSVersion): JSVersion;
|
|
5
5
|
export declare function normalizeTSVersion(tsVersion?: TSVersion): TSVersion;
|
|
6
6
|
export {};
|
package/lib/rules.js
CHANGED
|
@@ -250,7 +250,7 @@ exports.RULES = {
|
|
|
250
250
|
},
|
|
251
251
|
],
|
|
252
252
|
'jsx-quotes': 'error',
|
|
253
|
-
'key-spacing':
|
|
253
|
+
'key-spacing': 'off',
|
|
254
254
|
'line-comment-position': 'off',
|
|
255
255
|
'linebreak-style': 'error',
|
|
256
256
|
'lines-around-comment': jsts(['error', { allowBlockStart: true, allowObjectStart: true }], 'off'),
|
|
@@ -429,6 +429,7 @@ exports.RULES = {
|
|
|
429
429
|
'@origin-1/eslint-plugin': {
|
|
430
430
|
'nice-space-before-function-paren': 'error',
|
|
431
431
|
'no-spaces-in-call-expression': 'error',
|
|
432
|
+
'property-colon-spacing': 'error',
|
|
432
433
|
},
|
|
433
434
|
'eslint-plugin-n': {
|
|
434
435
|
'no-callback-literal': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origin-1/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "ESLint configuration generator with Origin₁ presets",
|
|
5
5
|
"homepage": "https://github.com/origin-1/eslint-config#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"semver": "7"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@origin-1/eslint-plugin": "0.
|
|
15
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
16
|
-
"@typescript-eslint/parser": "^5.
|
|
17
|
-
"eslint": "^8.
|
|
14
|
+
"@origin-1/eslint-plugin": ">=0.8",
|
|
15
|
+
"@typescript-eslint/eslint-plugin": "^5.44",
|
|
16
|
+
"@typescript-eslint/parser": "^5.44",
|
|
17
|
+
"eslint": "^8.28.0",
|
|
18
18
|
"eslint-plugin-n": "15"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|