eslint-config-airbnb-extended 0.0.9 → 0.1.1
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 +1 -1
- package/dist/base/recommended.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/react/recommended.js +1 -1
- package/dist/rules/react.js +1 -4
- package/dist/rules/typescript.js +6 -6
- package/dist/rules/variables.d.ts +1 -1
- package/package.json +17 -37
- package/README.md +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -4
package/dist/base/index.d.ts
CHANGED
|
@@ -817,7 +817,7 @@ declare const _default: {
|
|
|
817
817
|
name: string;
|
|
818
818
|
message: string;
|
|
819
819
|
}, ...{
|
|
820
|
-
name: "
|
|
820
|
+
name: "self" | "location" | "external" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "name" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "status" | "statusbar" | "stop" | "toolbar" | "top";
|
|
821
821
|
message: string;
|
|
822
822
|
}[]];
|
|
823
823
|
'no-shadow': "error";
|
package/dist/base/recommended.js
CHANGED
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const base_1 = __importDefault(require("../base"));
|
|
7
7
|
exports.default = [
|
|
8
|
-
...Object.values(
|
|
8
|
+
...Object.values(base_1.default),
|
|
9
9
|
{
|
|
10
10
|
name: 'airbnb/config/language-configurations',
|
|
11
11
|
languageOptions: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2615,7 +2615,7 @@ export declare const rules: {
|
|
|
2615
2615
|
name: string;
|
|
2616
2616
|
message: string;
|
|
2617
2617
|
}, ...{
|
|
2618
|
-
name: "
|
|
2618
|
+
name: "self" | "location" | "external" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "name" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "status" | "statusbar" | "stop" | "toolbar" | "top";
|
|
2619
2619
|
message: string;
|
|
2620
2620
|
}[]];
|
|
2621
2621
|
'no-shadow': "error";
|
|
@@ -4,5 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const recommended_1 = __importDefault(require("../base/recommended"));
|
|
7
|
-
const react_1 = __importDefault(require("
|
|
7
|
+
const react_1 = __importDefault(require("../react"));
|
|
8
8
|
exports.default = [...recommended_1.default, ...Object.values(react_1.default)];
|
package/dist/rules/react.js
CHANGED
|
@@ -5,10 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const eslint_plugin_react_1 = __importDefault(require("eslint-plugin-react"));
|
|
7
7
|
const globals_1 = __importDefault(require("globals"));
|
|
8
|
-
const style_1 = __importDefault(require("
|
|
9
|
-
// // @ts-expect-error eslint-plugin-import not working in import
|
|
10
|
-
// // eslint-disable-next-line @typescript-eslint/no-require-imports,unicorn/prefer-module
|
|
11
|
-
// const EsLintPluginReact = require('eslint-plugin-react');
|
|
8
|
+
const style_1 = __importDefault(require("../rules/style"));
|
|
12
9
|
const dangleRules = style_1.default.rules['no-underscore-dangle'];
|
|
13
10
|
exports.default = {
|
|
14
11
|
name: 'airbnb/config/react',
|
package/dist/rules/typescript.js
CHANGED
|
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.importResolverExtensions = void 0;
|
|
7
7
|
const typescript_eslint_1 = require("typescript-eslint");
|
|
8
|
-
const best_practices_1 = __importDefault(require("
|
|
9
|
-
const errors_1 = __importDefault(require("
|
|
10
|
-
const es6_1 = __importDefault(require("
|
|
11
|
-
const imports_1 = require("
|
|
12
|
-
const style_1 = __importDefault(require("
|
|
13
|
-
const variables_1 = __importDefault(require("
|
|
8
|
+
const best_practices_1 = __importDefault(require("../rules/best-practices"));
|
|
9
|
+
const errors_1 = __importDefault(require("../rules/errors"));
|
|
10
|
+
const es6_1 = __importDefault(require("../rules/es6"));
|
|
11
|
+
const imports_1 = require("../rules/imports");
|
|
12
|
+
const style_1 = __importDefault(require("../rules/style"));
|
|
13
|
+
const variables_1 = __importDefault(require("../rules/variables"));
|
|
14
14
|
exports.importResolverExtensions = [
|
|
15
15
|
...imports_1.importConfig.settings['import/resolver'].node.extensions,
|
|
16
16
|
'.ts',
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
name: string;
|
|
13
13
|
message: string;
|
|
14
14
|
}, ...{
|
|
15
|
-
name: "
|
|
15
|
+
name: "self" | "location" | "external" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "name" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "status" | "statusbar" | "stop" | "toolbar" | "top";
|
|
16
16
|
message: string;
|
|
17
17
|
}[]];
|
|
18
18
|
'no-shadow': "error";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-airbnb-extended",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Eslint Airbnb Config Extended",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -22,61 +22,37 @@
|
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/NishargShah/eslint-config-airbnb-extended.git"
|
|
25
|
+
"url": "https://github.com/NishargShah/eslint-config-airbnb-extended.git",
|
|
26
|
+
"directory": "packages/eslint-config-airbnb-extended"
|
|
26
27
|
},
|
|
27
28
|
"license": "MIT",
|
|
28
29
|
"author": "Nisharg Shah <nishargshah3101@gmail.com>",
|
|
29
30
|
"type": "commonjs",
|
|
30
31
|
"main": "dist/index.js",
|
|
31
32
|
"types": "dist/index.d.ts",
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "tsc",
|
|
34
|
-
"format:check": "prettier . --check",
|
|
35
|
-
"format:fix": "prettier . --write",
|
|
36
|
-
"inspector": "pnpm dlx @eslint/config-inspector",
|
|
37
|
-
"lint": "eslint .",
|
|
38
|
-
"lint:fix": "pnpm --silent lint --fix",
|
|
39
|
-
"prepare": "husky && pnpm ts-patch install -s",
|
|
40
|
-
"prepublishOnly": "pnpm build",
|
|
41
|
-
"script:lint": "bash -e ./scripts/lint.sh",
|
|
42
|
-
"typecheck": "tsc --noEmit"
|
|
43
|
-
},
|
|
44
33
|
"dependencies": {
|
|
45
34
|
"confusing-browser-globals": "^1.0.11",
|
|
46
35
|
"globals": "^16.0.0"
|
|
47
36
|
},
|
|
48
37
|
"devDependencies": {
|
|
49
|
-
"@eslint/compat": "^1.2.8",
|
|
50
|
-
"@eslint/js": "^9.23.0",
|
|
51
38
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
52
39
|
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
|
53
|
-
"eslint": "^9.
|
|
54
|
-
"eslint-config-prettier": "^10.1.1",
|
|
55
|
-
"eslint-import-resolver-typescript": "^4.3.1",
|
|
40
|
+
"eslint": "^9.24.0",
|
|
56
41
|
"eslint-plugin-import": "^2.31.0",
|
|
57
42
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
58
|
-
"eslint-plugin-
|
|
59
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
60
|
-
"eslint-plugin-react": "^7.37.4",
|
|
43
|
+
"eslint-plugin-react": "^7.37.5",
|
|
61
44
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
62
|
-
"
|
|
63
|
-
"eslint-plugin-unused-imports": "^4.1.4",
|
|
64
|
-
"husky": "^9.1.7",
|
|
65
|
-
"lint-staged": "^15.5.0",
|
|
66
|
-
"prettier": "^3.5.3",
|
|
67
|
-
"prettier-plugin-packagejson": "^2.5.10",
|
|
68
|
-
"ts-patch": "^3.3.0",
|
|
69
|
-
"tsconfig-paths": "^4.2.0",
|
|
45
|
+
"tsc-alias": "^1.8.13",
|
|
70
46
|
"typescript": "^5.8.2",
|
|
71
|
-
"typescript-eslint": "^8.29.0"
|
|
72
|
-
"typescript-transform-paths": "^3.5.5"
|
|
47
|
+
"typescript-eslint": "^8.29.0"
|
|
73
48
|
},
|
|
74
49
|
"peerDependencies": {
|
|
75
50
|
"eslint": "9.x",
|
|
76
51
|
"eslint-plugin-import": "2.x",
|
|
77
52
|
"eslint-plugin-jsx-a11y": "6.x",
|
|
78
53
|
"eslint-plugin-react": "7.x",
|
|
79
|
-
"eslint-plugin-react-hooks": "5.x"
|
|
54
|
+
"eslint-plugin-react-hooks": "5.x",
|
|
55
|
+
"typescript-eslint": "8.x"
|
|
80
56
|
},
|
|
81
57
|
"peerDependenciesMeta": {
|
|
82
58
|
"eslint-plugin-jsx-a11y": {
|
|
@@ -87,10 +63,14 @@
|
|
|
87
63
|
},
|
|
88
64
|
"eslint-plugin-react-hooks": {
|
|
89
65
|
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"typescript-eslint": {
|
|
68
|
+
"optional": true
|
|
90
69
|
}
|
|
91
70
|
},
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
"
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "tsc",
|
|
73
|
+
"postbuild": "tsc-alias",
|
|
74
|
+
"typecheck": "tsc --noEmit"
|
|
95
75
|
}
|
|
96
|
-
}
|
|
76
|
+
}
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
WIP
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const jsFiles: string[];
|
package/dist/utils/index.js
DELETED