eslint-config-airbnb-extended 0.9.2 → 0.9.3
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/@types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Direct export not allowed, it will increase the size of d.ts
|
|
3
3
|
*/
|
|
4
4
|
export declare const rules: {
|
|
5
|
-
readonly base: Record<
|
|
5
|
+
readonly base: Record<"strict" | "imports" | "variables" | "bestPractices" | "errors" | "es6" | "style" | "stylistic" | "importsStrict" | "reactStrict", import("eslint").Linter.Config>;
|
|
6
6
|
readonly node: Record<"globals" | "base" | "promises" | "noUnsupportedFeatures", import("eslint").Linter.Config>;
|
|
7
7
|
readonly react: Record<"react" | "reactJsxA11y" | "reactHooks", import("eslint").Linter.Config>;
|
|
8
8
|
readonly next: Record<"base" | "coreWebVitals", import("eslint").Linter.Config>;
|
|
@@ -3,13 +3,10 @@ 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
|
-
exports.extendedBaseConfig = void 0;
|
|
7
6
|
const best_practices_1 = __importDefault(require("../../rules/best-practices"));
|
|
8
7
|
const errors_1 = __importDefault(require("../../rules/errors"));
|
|
9
8
|
const es6_1 = __importDefault(require("../../rules/es6"));
|
|
10
9
|
const imports_1 = __importDefault(require("../../rules/imports"));
|
|
11
|
-
const importsStrict_1 = __importDefault(require("../../rules/importsStrict"));
|
|
12
|
-
const reactStrict_1 = __importDefault(require("../../rules/reactStrict"));
|
|
13
10
|
const strict_1 = __importDefault(require("../../rules/strict"));
|
|
14
11
|
const style_1 = __importDefault(require("../../rules/style"));
|
|
15
12
|
const stylistic_1 = __importDefault(require("../../rules/stylistic"));
|
|
@@ -24,5 +21,4 @@ const baseConfig = {
|
|
|
24
21
|
stylistic: stylistic_1.default,
|
|
25
22
|
variables: variables_1.default,
|
|
26
23
|
};
|
|
27
|
-
exports.extendedBaseConfig = Object.assign(Object.assign({}, baseConfig), { importsStrict: importsStrict_1.default, reactStrict: reactStrict_1.default });
|
|
28
24
|
exports.default = baseConfig;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const config_1 = __importDefault(require("../../configs/base/config"));
|
|
7
|
+
const importsStrict_1 = __importDefault(require("../../rules/importsStrict"));
|
|
8
|
+
const reactStrict_1 = __importDefault(require("../../rules/reactStrict"));
|
|
9
|
+
const baseConfigExtended = Object.assign(Object.assign({}, config_1.default), { importsStrict: importsStrict_1.default, reactStrict: reactStrict_1.default });
|
|
10
|
+
exports.default = baseConfigExtended;
|
package/dist/rules/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
*/
|
|
7
7
|
const rules = {
|
|
8
8
|
get base() {
|
|
9
|
-
return require('../configs/base/
|
|
9
|
+
return require('../configs/base/configExtended').default;
|
|
10
10
|
},
|
|
11
11
|
get node() {
|
|
12
12
|
return require('../configs/node/config').default;
|