eslint-config-airbnb-extended 0.0.3 → 0.0.5

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.
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- 'best-practices': {
2
+ 'flat/best-practices': {
3
3
  name: string;
4
4
  rules: {
5
5
  'accessor-pairs': "off";
@@ -175,7 +175,7 @@ declare const _default: {
175
175
  yoda: "error";
176
176
  };
177
177
  }[];
178
- errors: {
178
+ 'flat/errors': {
179
179
  name: string;
180
180
  rules: {
181
181
  'for-direction': "error";
@@ -243,7 +243,7 @@ declare const _default: {
243
243
  }];
244
244
  };
245
245
  }[];
246
- es6: {
246
+ 'flat/es6': {
247
247
  name: string;
248
248
  languageOptions: {
249
249
  globals: {
@@ -388,7 +388,7 @@ declare const _default: {
388
388
  'yield-star-spacing': ["error", string];
389
389
  };
390
390
  }[];
391
- imports: {
391
+ 'flat/imports': {
392
392
  name: string;
393
393
  languageOptions: {
394
394
  globals: {
@@ -546,7 +546,7 @@ declare const _default: {
546
546
  'import/no-empty-named-blocks': "off";
547
547
  };
548
548
  }[];
549
- node: {
549
+ 'flat/node': {
550
550
  name: string;
551
551
  languageOptions: {
552
552
  globals: {
@@ -635,13 +635,13 @@ declare const _default: {
635
635
  'no-sync': "off";
636
636
  };
637
637
  }[];
638
- strict: {
638
+ 'flat/strict': {
639
639
  name: string;
640
640
  rules: {
641
641
  strict: ["error", string];
642
642
  };
643
643
  }[];
644
- style: {
644
+ 'flat/style': {
645
645
  name: string;
646
646
  rules: {
647
647
  'array-bracket-newline': ["off", string];
@@ -960,7 +960,7 @@ declare const _default: {
960
960
  'wrap-regex': "off";
961
961
  };
962
962
  }[];
963
- variables: {
963
+ 'flat/variables': {
964
964
  name: string;
965
965
  rules: {
966
966
  'init-declarations': "off";
@@ -994,7 +994,7 @@ declare const _default: {
994
994
  }];
995
995
  };
996
996
  }[];
997
- recommended: ({
997
+ 'flat/recommended': ({
998
998
  name: string;
999
999
  rules: {
1000
1000
  'accessor-pairs': "off";
@@ -13,13 +13,13 @@ var strict_1 = __importDefault(require("../rules/strict"));
13
13
  var style_1 = __importDefault(require("../rules/style"));
14
14
  var variables_1 = __importDefault(require("../rules/variables"));
15
15
  exports.default = {
16
- 'best-practices': [best_practices_1.default],
17
- errors: [errors_1.default],
18
- es6: [es6_1.default],
19
- imports: [imports_1.default],
20
- node: [node_1.default],
21
- strict: [strict_1.default],
22
- style: [style_1.default],
23
- variables: [variables_1.default],
24
- recommended: recommended_1.default,
16
+ 'flat/best-practices': [best_practices_1.default],
17
+ 'flat/errors': [errors_1.default],
18
+ 'flat/es6': [es6_1.default],
19
+ 'flat/imports': [imports_1.default],
20
+ 'flat/node': [node_1.default],
21
+ 'flat/strict': [strict_1.default],
22
+ 'flat/style': [style_1.default],
23
+ 'flat/variables': [variables_1.default],
24
+ 'flat/recommended': recommended_1.default,
25
25
  };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- declare const _default: {
1
+ export declare const configs: {
2
2
  base: {
3
- 'best-practices': {
3
+ 'flat/best-practices': {
4
4
  name: string;
5
5
  rules: {
6
6
  'accessor-pairs': "off";
@@ -176,7 +176,7 @@ declare const _default: {
176
176
  yoda: "error";
177
177
  };
178
178
  }[];
179
- errors: {
179
+ 'flat/errors': {
180
180
  name: string;
181
181
  rules: {
182
182
  'for-direction': "error";
@@ -244,7 +244,7 @@ declare const _default: {
244
244
  }];
245
245
  };
246
246
  }[];
247
- es6: {
247
+ 'flat/es6': {
248
248
  name: string;
249
249
  languageOptions: {
250
250
  globals: {
@@ -389,7 +389,7 @@ declare const _default: {
389
389
  'yield-star-spacing': ["error", string];
390
390
  };
391
391
  }[];
392
- imports: {
392
+ 'flat/imports': {
393
393
  name: string;
394
394
  languageOptions: {
395
395
  globals: {
@@ -547,7 +547,7 @@ declare const _default: {
547
547
  'import/no-empty-named-blocks': "off";
548
548
  };
549
549
  }[];
550
- node: {
550
+ 'flat/node': {
551
551
  name: string;
552
552
  languageOptions: {
553
553
  globals: {
@@ -636,13 +636,13 @@ declare const _default: {
636
636
  'no-sync': "off";
637
637
  };
638
638
  }[];
639
- strict: {
639
+ 'flat/strict': {
640
640
  name: string;
641
641
  rules: {
642
642
  strict: ["error", string];
643
643
  };
644
644
  }[];
645
- style: {
645
+ 'flat/style': {
646
646
  name: string;
647
647
  rules: {
648
648
  'array-bracket-newline': ["off", string];
@@ -961,7 +961,7 @@ declare const _default: {
961
961
  'wrap-regex': "off";
962
962
  };
963
963
  }[];
964
- variables: {
964
+ 'flat/variables': {
965
965
  name: string;
966
966
  rules: {
967
967
  'init-declarations': "off";
@@ -995,7 +995,7 @@ declare const _default: {
995
995
  }];
996
996
  };
997
997
  }[];
998
- recommended: ({
998
+ 'flat/recommended': ({
999
999
  name: string;
1000
1000
  rules: {
1001
1001
  'accessor-pairs': "off";
@@ -1994,4 +1994,3 @@ declare const _default: {
1994
1994
  })[];
1995
1995
  };
1996
1996
  };
1997
- export default _default;
package/dist/index.js CHANGED
@@ -3,7 +3,8 @@ 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.configs = void 0;
6
7
  var base_1 = __importDefault(require("./base"));
7
- exports.default = {
8
+ exports.configs = {
8
9
  base: base_1.default,
9
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-airbnb-extended",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Eslint Airbnb Config Extended",
5
5
  "keywords": [
6
6
  "eslint",
@@ -61,6 +61,7 @@
61
61
  "eslint-plugin-promise": "^7.2.1",
62
62
  "eslint-plugin-react-refresh": "^0.4.19",
63
63
  "eslint-plugin-unicorn": "^58.0.0",
64
+ "eslint-plugin-unused-imports": "^4.1.4",
64
65
  "husky": "^9.1.7",
65
66
  "lint-staged": "^15.5.0",
66
67
  "prettier": "^3.5.3",
@@ -71,11 +72,15 @@
71
72
  "typescript-eslint": "^8.29.0",
72
73
  "typescript-transform-paths": "^3.5.5"
73
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
+ },
74
82
  "packageManager": "pnpm@10.7.1",
75
83
  "engines": {
76
- "node": ">=16",
77
- "npm": ">=8",
78
- "pnpm": ">=8",
79
- "yarn": ">=1.22"
84
+ "node": ">=16"
80
85
  }
81
86
  }