eslint-config-airbnb-extended 2.3.0 → 2.3.2
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
|
@@ -26,7 +26,7 @@ export declare const plugins: {
|
|
|
26
26
|
};
|
|
27
27
|
export declare const extensions: {
|
|
28
28
|
readonly base: Record<"recommended" | "typescript", import("eslint").Linter.Config[]>;
|
|
29
|
-
readonly react: Record<"recommended", import("eslint").Linter.Config[]>;
|
|
29
|
+
readonly react: Record<"recommended" | "typescript", import("eslint").Linter.Config[]>;
|
|
30
30
|
readonly next: Record<"recommended", import("eslint").Linter.Config[]>;
|
|
31
31
|
readonly node: Record<"recommended", import("eslint").Linter.Config[]>;
|
|
32
32
|
};
|
|
@@ -3,27 +3,6 @@ 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
|
|
7
|
-
const
|
|
8
|
-
const reactTypescriptConfig = [
|
|
9
|
-
{
|
|
10
|
-
name: 'airbnb/config/react-typescript-react',
|
|
11
|
-
files: utils_1.tsFiles,
|
|
12
|
-
rules: {
|
|
13
|
-
// only .jsx and .tsx files may have JSX
|
|
14
|
-
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
|
|
15
|
-
'react/jsx-filename-extension': [
|
|
16
|
-
'error',
|
|
17
|
-
{
|
|
18
|
-
extensions: ['.jsx', '.tsx'],
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: 'airbnb/config/react-typescript-settings-extensions-configurations',
|
|
25
|
-
files: utils_1.tsFiles,
|
|
26
|
-
settings: (0, getImportSettings_1.default)({ javascript: false, typescript: true, jsx: true }),
|
|
27
|
-
},
|
|
28
|
-
];
|
|
6
|
+
const typescript_1 = __importDefault(require("../../extensions/react/typescript"));
|
|
7
|
+
const reactTypescriptConfig = typescript_1.default;
|
|
29
8
|
exports.default = reactTypescriptConfig;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 getImportSettings_1 = __importDefault(require("../../helpers/getImportSettings"));
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const reactTypescriptExtensionsConfig = [
|
|
9
|
+
{
|
|
10
|
+
name: 'airbnb/config/react-typescript-react',
|
|
11
|
+
files: utils_1.tsFiles,
|
|
12
|
+
rules: {
|
|
13
|
+
// only .jsx and .tsx files may have JSX
|
|
14
|
+
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
|
|
15
|
+
'react/jsx-filename-extension': [
|
|
16
|
+
'error',
|
|
17
|
+
{
|
|
18
|
+
extensions: ['.jsx', '.tsx'],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'airbnb/config/react-typescript-settings-extensions-configurations',
|
|
25
|
+
files: utils_1.tsFiles,
|
|
26
|
+
settings: (0, getImportSettings_1.default)({ javascript: false, typescript: true, jsx: true }),
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
exports.default = reactTypescriptExtensionsConfig;
|
|
@@ -5,9 +5,11 @@ const nextCoreWebVitalsRules = {
|
|
|
5
5
|
name: 'airbnb/config/next/core-web-vitals',
|
|
6
6
|
files: utils_1.allFiles,
|
|
7
7
|
rules: {
|
|
8
|
-
// Prevent usage of
|
|
8
|
+
// Prevent usage of <a> elements to navigate to internal Next.js pages.
|
|
9
|
+
// https://nextjs.org/docs/messages/no-html-link-for-pages
|
|
9
10
|
'@next/next/no-html-link-for-pages': 'error',
|
|
10
11
|
// Prevent synchronous scripts.
|
|
12
|
+
// https://nextjs.org/docs/messages/no-sync-scripts
|
|
11
13
|
'@next/next/no-sync-scripts': 'error',
|
|
12
14
|
},
|
|
13
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-airbnb-extended",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Eslint Airbnb Config Extended",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"types": "./dist/@types/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"confusing-browser-globals": "^1.0.11",
|
|
46
|
-
"globals": "^16.
|
|
46
|
+
"globals": "^16.4.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"typescript": "^5.9.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@next/eslint-plugin-next": "15.
|
|
57
|
-
"@stylistic/eslint-plugin": "3.
|
|
58
|
-
"@types/eslint-plugin-jsx-a11y": "6.
|
|
59
|
-
"eslint": "9.
|
|
60
|
-
"eslint-import-resolver-typescript": "4.
|
|
61
|
-
"eslint-plugin-import": "2.
|
|
62
|
-
"eslint-plugin-import-x": "4.
|
|
63
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
64
|
-
"eslint-plugin-n": "17.
|
|
65
|
-
"eslint-plugin-react": "7.
|
|
66
|
-
"eslint-plugin-react-hooks": "5.
|
|
67
|
-
"typescript-eslint": "8.
|
|
56
|
+
"@next/eslint-plugin-next": "^15.0.0",
|
|
57
|
+
"@stylistic/eslint-plugin": "^3.0.0",
|
|
58
|
+
"@types/eslint-plugin-jsx-a11y": "^6.0.0",
|
|
59
|
+
"eslint": "^9.0.0",
|
|
60
|
+
"eslint-import-resolver-typescript": "^4.0.0",
|
|
61
|
+
"eslint-plugin-import": "^2.0.0",
|
|
62
|
+
"eslint-plugin-import-x": "^4.0.0",
|
|
63
|
+
"eslint-plugin-jsx-a11y": "^6.0.0",
|
|
64
|
+
"eslint-plugin-n": "^17.0.0",
|
|
65
|
+
"eslint-plugin-react": "^7.0.0",
|
|
66
|
+
"eslint-plugin-react-hooks": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
67
|
+
"typescript-eslint": "^8.0.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@next/eslint-plugin-next": {
|