eslint-config-airbnb-extended 0.0.2 → 0.0.4
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/dist/base/index.d.ts +1995 -0
- package/dist/base/index.js +25 -0
- package/dist/base/recommended.d.ts +998 -0
- package/dist/base/recommended.js +33 -0
- package/dist/index.d.ts +1969 -923
- package/dist/index.js +4 -27
- package/dist/rules/best-practices.d.ts +137 -106
- package/dist/rules/best-practices.js +1 -0
- package/dist/rules/errors.d.ts +55 -54
- package/dist/rules/errors.js +1 -0
- package/dist/rules/es6.d.ts +49 -51
- package/dist/rules/es6.js +1 -0
- package/dist/rules/imports.d.ts +60 -59
- package/dist/rules/imports.js +1 -0
- package/dist/rules/node.d.ts +12 -11
- package/dist/rules/node.js +1 -0
- package/dist/rules/strict.d.ts +2 -1
- package/dist/rules/strict.js +1 -0
- package/dist/rules/style.d.ts +150 -144
- package/dist/rules/style.js +1 -0
- package/dist/rules/variables.d.ts +22 -15
- package/dist/rules/variables.js +1 -0
- package/package.json +9 -1
package/dist/rules/style.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
|
+
name: 'airbnb/config/style',
|
|
4
5
|
rules: {
|
|
5
6
|
// enforce line breaks after opening and before closing array brackets
|
|
6
7
|
// https://eslint.org/docs/rules/array-bracket-newline
|
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
name: string;
|
|
2
3
|
rules: {
|
|
3
|
-
'init-declarations':
|
|
4
|
-
'no-catch-shadow':
|
|
5
|
-
'no-delete-var':
|
|
6
|
-
'no-label-var':
|
|
7
|
-
'no-restricted-globals':
|
|
4
|
+
'init-declarations': "off";
|
|
5
|
+
'no-catch-shadow': "off";
|
|
6
|
+
'no-delete-var': "error";
|
|
7
|
+
'no-label-var': "error";
|
|
8
|
+
'no-restricted-globals': ["error", {
|
|
8
9
|
name: string;
|
|
9
10
|
message: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
}, {
|
|
12
|
+
name: string;
|
|
13
|
+
message: string;
|
|
14
|
+
}, ...{
|
|
15
|
+
name: "length" | "find" | "name" | "location" | "stop" | "screenX" | "screenY" | "closed" | "top" | "open" | "screen" | "blur" | "close" | "focus" | "scroll" | "addEventListener" | "removeEventListener" | "scrollBy" | "scrollTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "event" | "external" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "locationbar" | "menubar" | "opener" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "screenLeft" | "screenTop" | "scrollX" | "scrollY" | "scrollbars" | "self" | "status" | "statusbar" | "toolbar" | "confirm" | "moveBy" | "moveTo" | "print" | "resizeBy" | "resizeTo" | "onunload" | "defaultStatus" | "defaultstatus" | "opera";
|
|
16
|
+
message: string;
|
|
17
|
+
}[]];
|
|
18
|
+
'no-shadow': "error";
|
|
19
|
+
'no-shadow-restricted-names': "error";
|
|
20
|
+
'no-undef': "error";
|
|
21
|
+
'no-undef-init': "error";
|
|
22
|
+
'no-undefined': "off";
|
|
23
|
+
'no-unused-vars': ["error", {
|
|
17
24
|
vars: string;
|
|
18
25
|
args: string;
|
|
19
26
|
ignoreRestSiblings: boolean;
|
|
20
|
-
}
|
|
21
|
-
'no-use-before-define':
|
|
27
|
+
}];
|
|
28
|
+
'no-use-before-define': ["error", {
|
|
22
29
|
functions: boolean;
|
|
23
30
|
classes: boolean;
|
|
24
31
|
variables: boolean;
|
|
25
|
-
}
|
|
32
|
+
}];
|
|
26
33
|
};
|
|
27
34
|
};
|
|
28
35
|
export default _default;
|
package/dist/rules/variables.js
CHANGED
|
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
var confusing_browser_globals_1 = __importDefault(require("confusing-browser-globals"));
|
|
16
16
|
exports.default = {
|
|
17
|
+
name: 'airbnb/config/variables',
|
|
17
18
|
rules: {
|
|
18
19
|
// enforce or disallow variable initializations at definition
|
|
19
20
|
'init-declarations': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-airbnb-extended",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Eslint Airbnb Config Extended",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"build": "tsc",
|
|
38
38
|
"format:check": "prettier . --check",
|
|
39
39
|
"format:fix": "prettier . --write",
|
|
40
|
+
"inspector": "pnpm dlx @eslint/config-inspector",
|
|
40
41
|
"lint": "eslint .",
|
|
41
42
|
"lint:fix": "pnpm --silent lint --fix",
|
|
42
43
|
"prepare": "husky && pnpm ts-patch install -s",
|
|
@@ -70,6 +71,13 @@
|
|
|
70
71
|
"typescript-eslint": "^8.29.0",
|
|
71
72
|
"typescript-transform-paths": "^3.5.5"
|
|
72
73
|
},
|
|
74
|
+
"peerDependencies": {
|
|
75
|
+
"eslint": "9.x",
|
|
76
|
+
"eslint-plugin-import": "2.x",
|
|
77
|
+
"eslint-plugin-jsx-a11y": "6.x",
|
|
78
|
+
"eslint-plugin-react": "7.x",
|
|
79
|
+
"eslint-plugin-react-hooks": "5.x"
|
|
80
|
+
},
|
|
73
81
|
"packageManager": "pnpm@10.7.1",
|
|
74
82
|
"engines": {
|
|
75
83
|
"node": ">=16",
|