eslint-config-airbnb-extended 0.0.5 → 0.0.6
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 +9 -1162
- package/dist/base/index.js +8 -8
- package/dist/base/recommended.d.ts +1 -997
- package/dist/index.d.ts +9 -1162
- package/dist/package.json +86 -0
- package/dist/rules/imports.d.ts +1 -158
- package/dist/rules/imports.js +9 -16
- package/dist/src/base/index.d.ts +2007 -0
- package/dist/src/base/index.js +25 -0
- package/dist/src/base/recommended.d.ts +1004 -0
- package/dist/src/base/recommended.js +33 -0
- package/dist/src/index.d.ts +2008 -0
- package/dist/src/index.js +10 -0
- package/dist/src/rules/best-practices.d.ts +177 -0
- package/dist/src/rules/best-practices.js +379 -0
- package/dist/src/rules/errors.d.ts +69 -0
- package/dist/src/rules/errors.js +151 -0
- package/dist/src/rules/es6.d.ts +146 -0
- package/dist/src/rules/es6.js +203 -0
- package/dist/src/rules/imports.d.ts +165 -0
- package/dist/src/rules/imports.js +279 -0
- package/dist/src/rules/node.d.ts +90 -0
- package/dist/src/rules/node.js +50 -0
- package/dist/src/rules/strict.d.ts +7 -0
- package/dist/src/rules/strict.js +9 -0
- package/dist/src/rules/style.d.ts +320 -0
- package/dist/src/rules/style.js +530 -0
- package/dist/src/rules/variables.d.ts +35 -0
- package/dist/src/rules/variables.js +73 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.js +4 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "eslint-config-airbnb-extended",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "Eslint Airbnb Config Extended",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"eslint",
|
|
7
|
+
"airbnb",
|
|
8
|
+
"eslint-airbnb",
|
|
9
|
+
"airbnb-eslint",
|
|
10
|
+
"eslint-airbnb-config",
|
|
11
|
+
"eslint-airbnb-config-x",
|
|
12
|
+
"eslint-airbnb-config-base",
|
|
13
|
+
"eslint-airbnb-config-typescript",
|
|
14
|
+
"eslint-airbnb-config-extended",
|
|
15
|
+
"eslint airbnb config",
|
|
16
|
+
"eslint airbnb config x",
|
|
17
|
+
"eslint airbnb config base",
|
|
18
|
+
"eslint airbnb config typescript",
|
|
19
|
+
"eslint airbnb config extended",
|
|
20
|
+
"airbnb config",
|
|
21
|
+
"airbnb config base",
|
|
22
|
+
"airbnb config typescript"
|
|
23
|
+
],
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/NishargShah/eslint-config-airbnb-extended/issues"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/NishargShah/eslint-config-airbnb-extended.git"
|
|
30
|
+
},
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"author": "Nisharg Shah <nishargshah3101@gmail.com>",
|
|
33
|
+
"type": "commonjs",
|
|
34
|
+
"main": "dist/index.js",
|
|
35
|
+
"types": "dist/index.d.ts",
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsc",
|
|
38
|
+
"format:check": "prettier . --check",
|
|
39
|
+
"format:fix": "prettier . --write",
|
|
40
|
+
"inspector": "pnpm dlx @eslint/config-inspector",
|
|
41
|
+
"lint": "eslint .",
|
|
42
|
+
"lint:fix": "pnpm --silent lint --fix",
|
|
43
|
+
"prepare": "husky && pnpm ts-patch install -s",
|
|
44
|
+
"prepublishOnly": "pnpm build",
|
|
45
|
+
"script:lint": "bash -e ./scripts/lint.sh",
|
|
46
|
+
"typecheck": "tsc --noEmit"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"confusing-browser-globals": "^1.0.11",
|
|
50
|
+
"globals": "^16.0.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@eslint/compat": "^1.2.8",
|
|
54
|
+
"@eslint/js": "^9.23.0",
|
|
55
|
+
"@types/confusing-browser-globals": "^1.0.3",
|
|
56
|
+
"eslint": "^9.23.0",
|
|
57
|
+
"eslint-config-prettier": "^10.1.1",
|
|
58
|
+
"eslint-import-resolver-typescript": "^4.3.1",
|
|
59
|
+
"eslint-plugin-import": "2.31.0",
|
|
60
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
61
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
62
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
63
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
64
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
65
|
+
"husky": "^9.1.7",
|
|
66
|
+
"lint-staged": "^15.5.0",
|
|
67
|
+
"prettier": "^3.5.3",
|
|
68
|
+
"prettier-plugin-packagejson": "^2.5.10",
|
|
69
|
+
"ts-patch": "^3.3.0",
|
|
70
|
+
"tsconfig-paths": "^4.2.0",
|
|
71
|
+
"typescript": "^5.8.2",
|
|
72
|
+
"typescript-eslint": "^8.29.0",
|
|
73
|
+
"typescript-transform-paths": "^3.5.5"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"eslint": "9.x",
|
|
77
|
+
"eslint-plugin-import": "2.x",
|
|
78
|
+
"eslint-plugin-jsx-a11y": "6.x",
|
|
79
|
+
"eslint-plugin-react": "7.x",
|
|
80
|
+
"eslint-plugin-react-hooks": "5.x"
|
|
81
|
+
},
|
|
82
|
+
"packageManager": "pnpm@10.7.1",
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">=16"
|
|
85
|
+
}
|
|
86
|
+
}
|
package/dist/rules/imports.d.ts
CHANGED
|
@@ -1,159 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
name: string;
|
|
3
|
-
languageOptions: {
|
|
4
|
-
globals: {
|
|
5
|
-
Array: false;
|
|
6
|
-
ArrayBuffer: false;
|
|
7
|
-
Boolean: false;
|
|
8
|
-
DataView: false;
|
|
9
|
-
Date: false;
|
|
10
|
-
decodeURI: false;
|
|
11
|
-
decodeURIComponent: false;
|
|
12
|
-
encodeURI: false;
|
|
13
|
-
encodeURIComponent: false;
|
|
14
|
-
Error: false;
|
|
15
|
-
escape: false;
|
|
16
|
-
eval: false;
|
|
17
|
-
EvalError: false;
|
|
18
|
-
Float32Array: false;
|
|
19
|
-
Float64Array: false;
|
|
20
|
-
Function: false;
|
|
21
|
-
Infinity: false;
|
|
22
|
-
Int16Array: false;
|
|
23
|
-
Int32Array: false;
|
|
24
|
-
Int8Array: false;
|
|
25
|
-
Intl: false;
|
|
26
|
-
isFinite: false;
|
|
27
|
-
isNaN: false;
|
|
28
|
-
JSON: false;
|
|
29
|
-
Map: false;
|
|
30
|
-
Math: false;
|
|
31
|
-
NaN: false;
|
|
32
|
-
Number: false;
|
|
33
|
-
Object: false;
|
|
34
|
-
parseFloat: false;
|
|
35
|
-
parseInt: false;
|
|
36
|
-
Promise: false;
|
|
37
|
-
Proxy: false;
|
|
38
|
-
RangeError: false;
|
|
39
|
-
ReferenceError: false;
|
|
40
|
-
Reflect: false;
|
|
41
|
-
RegExp: false;
|
|
42
|
-
Set: false;
|
|
43
|
-
String: false;
|
|
44
|
-
Symbol: false;
|
|
45
|
-
SyntaxError: false;
|
|
46
|
-
TypeError: false;
|
|
47
|
-
Uint16Array: false;
|
|
48
|
-
Uint32Array: false;
|
|
49
|
-
Uint8Array: false;
|
|
50
|
-
Uint8ClampedArray: false;
|
|
51
|
-
undefined: false;
|
|
52
|
-
unescape: false;
|
|
53
|
-
URIError: false;
|
|
54
|
-
WeakMap: false;
|
|
55
|
-
WeakSet: false;
|
|
56
|
-
};
|
|
57
|
-
parserOptions: {
|
|
58
|
-
ecmaVersion: 6;
|
|
59
|
-
sourceType: "module";
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
plugins: {
|
|
63
|
-
import: any;
|
|
64
|
-
};
|
|
65
|
-
settings: {
|
|
66
|
-
'import/resolver': {
|
|
67
|
-
node: {
|
|
68
|
-
extensions: string[];
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
'import/extensions': string[];
|
|
72
|
-
'import/core-modules': never[];
|
|
73
|
-
'import/ignore': string[];
|
|
74
|
-
};
|
|
75
|
-
rules: {
|
|
76
|
-
'import/no-unresolved': ["error", {
|
|
77
|
-
commonjs: boolean;
|
|
78
|
-
caseSensitive: boolean;
|
|
79
|
-
}];
|
|
80
|
-
'import/named': "error";
|
|
81
|
-
'import/default': "off";
|
|
82
|
-
'import/namespace': "off";
|
|
83
|
-
'import/export': "error";
|
|
84
|
-
'import/no-named-as-default': "error";
|
|
85
|
-
'import/no-named-as-default-member': "error";
|
|
86
|
-
'import/no-deprecated': "off";
|
|
87
|
-
'import/no-extraneous-dependencies': ["error", {
|
|
88
|
-
devDependencies: string[];
|
|
89
|
-
optionalDependencies: boolean;
|
|
90
|
-
}];
|
|
91
|
-
'import/no-mutable-exports': "error";
|
|
92
|
-
'import/no-commonjs': "off";
|
|
93
|
-
'import/no-amd': "error";
|
|
94
|
-
'import/no-nodejs-modules': "off";
|
|
95
|
-
'import/first': "error";
|
|
96
|
-
'import/imports-first': "off";
|
|
97
|
-
'import/no-duplicates': "error";
|
|
98
|
-
'import/no-namespace': "off";
|
|
99
|
-
'import/extensions': ["error", string, {
|
|
100
|
-
js: string;
|
|
101
|
-
mjs: string;
|
|
102
|
-
jsx: string;
|
|
103
|
-
}];
|
|
104
|
-
'import/order': ["error", {
|
|
105
|
-
groups: string[][];
|
|
106
|
-
}];
|
|
107
|
-
'import/newline-after-import': "error";
|
|
108
|
-
'import/prefer-default-export': "error";
|
|
109
|
-
'import/no-restricted-paths': "off";
|
|
110
|
-
'import/max-dependencies': ["off", {
|
|
111
|
-
max: number;
|
|
112
|
-
}];
|
|
113
|
-
'import/no-absolute-path': "error";
|
|
114
|
-
'import/no-dynamic-require': "error";
|
|
115
|
-
'import/no-internal-modules': ["off", {
|
|
116
|
-
allow: never[];
|
|
117
|
-
}];
|
|
118
|
-
'import/unambiguous': "off";
|
|
119
|
-
'import/no-webpack-loader-syntax': "error";
|
|
120
|
-
'import/no-unassigned-import': "off";
|
|
121
|
-
'import/no-named-default': "error";
|
|
122
|
-
'import/no-anonymous-default-export': ["off", {
|
|
123
|
-
allowArray: boolean;
|
|
124
|
-
allowArrowFunction: boolean;
|
|
125
|
-
allowAnonymousClass: boolean;
|
|
126
|
-
allowAnonymousFunction: boolean;
|
|
127
|
-
allowLiteral: boolean;
|
|
128
|
-
allowObject: boolean;
|
|
129
|
-
}];
|
|
130
|
-
'import/exports-last': "off";
|
|
131
|
-
'import/group-exports': "off";
|
|
132
|
-
'import/no-default-export': "off";
|
|
133
|
-
'import/no-named-export': "off";
|
|
134
|
-
'import/no-self-import': "error";
|
|
135
|
-
'import/no-cycle': ["error", {
|
|
136
|
-
maxDepth: string;
|
|
137
|
-
}];
|
|
138
|
-
'import/no-useless-path-segments': ["error", {
|
|
139
|
-
commonjs: boolean;
|
|
140
|
-
}];
|
|
141
|
-
'import/dynamic-import-chunkname': ["off", {
|
|
142
|
-
importFunctions: never[];
|
|
143
|
-
webpackChunknameFormat: string;
|
|
144
|
-
}];
|
|
145
|
-
'import/no-relative-parent-imports': "off";
|
|
146
|
-
'import/no-unused-modules': ["off", {
|
|
147
|
-
ignoreExports: never[];
|
|
148
|
-
missingExports: boolean;
|
|
149
|
-
unusedExports: boolean;
|
|
150
|
-
}];
|
|
151
|
-
'import/no-import-module-exports': ["error", {
|
|
152
|
-
exceptions: never[];
|
|
153
|
-
}];
|
|
154
|
-
'import/no-relative-packages': "error";
|
|
155
|
-
'import/consistent-type-specifier-style': ["off", string];
|
|
156
|
-
'import/no-empty-named-blocks': "off";
|
|
157
|
-
};
|
|
158
|
-
};
|
|
1
|
+
declare const _default: any;
|
|
159
2
|
export default _default;
|
package/dist/rules/imports.js
CHANGED
|
@@ -18,32 +18,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
// @ts-expect-error no @types package in DefinitelyTyped for below
|
|
22
|
-
var eslint_plugin_import_1 = __importDefault(require("eslint-plugin-import"));
|
|
23
21
|
var globals_1 = __importDefault(require("globals"));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
// @ts-expect-error eslint-plugin-import not working in import
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports,unicorn/prefer-module
|
|
24
|
+
var EsLintPluginImport = require('eslint-plugin-import');
|
|
25
|
+
exports.default = __assign(__assign({}, EsLintPluginImport.flatConfigs.recommended), { name: 'airbnb/config/imports', languageOptions: {
|
|
27
26
|
globals: __assign({}, globals_1.default.es2015),
|
|
28
27
|
parserOptions: {
|
|
29
28
|
ecmaVersion: 6,
|
|
30
29
|
sourceType: 'module',
|
|
31
30
|
},
|
|
32
|
-
},
|
|
33
|
-
plugins: {
|
|
34
|
-
import: eslint_plugin_import_1.default,
|
|
35
|
-
},
|
|
36
|
-
settings: {
|
|
31
|
+
}, settings: {
|
|
37
32
|
'import/resolver': {
|
|
38
33
|
node: {
|
|
39
|
-
extensions: ['.
|
|
34
|
+
extensions: ['.js', '.cjs', '.mjs', '.json'],
|
|
40
35
|
},
|
|
41
36
|
},
|
|
42
|
-
'import/extensions': ['.js', '.mjs', '.jsx'],
|
|
37
|
+
'import/extensions': ['.js', '.cjs', '.mjs', '.jsx'],
|
|
43
38
|
'import/core-modules': [],
|
|
44
39
|
'import/ignore': ['node_modules', String.raw(templateObject_1 || (templateObject_1 = __makeTemplateObject([".(coffee|scss|css|less|hbs|svg|json)$"], ["\\.(coffee|scss|css|less|hbs|svg|json)$"])))],
|
|
45
|
-
},
|
|
46
|
-
rules: {
|
|
40
|
+
}, rules: {
|
|
47
41
|
// Static analysis:
|
|
48
42
|
// ensure imports point to files/modules that can be resolved
|
|
49
43
|
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
|
|
@@ -267,6 +261,5 @@ exports.default = {
|
|
|
267
261
|
// https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/no-empty-named-blocks.md
|
|
268
262
|
// TODO, semver-minor: enable
|
|
269
263
|
'import/no-empty-named-blocks': 'off',
|
|
270
|
-
}
|
|
271
|
-
};
|
|
264
|
+
} });
|
|
272
265
|
var templateObject_1;
|