eslint-config-airbnb-extended 2.3.1 → 2.3.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.
|
@@ -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
|
};
|
|
@@ -14,7 +14,11 @@ const typescriptImportsRules = {
|
|
|
14
14
|
rules: {
|
|
15
15
|
// Append 'ts' and 'tsx' to Airbnb 'import-x/extensions' rule
|
|
16
16
|
// https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/extensions.md
|
|
17
|
-
'import-x/extensions': [
|
|
17
|
+
'import-x/extensions': [
|
|
18
|
+
'error',
|
|
19
|
+
'ignorePackages',
|
|
20
|
+
Object.assign(Object.assign({}, utils_1.jsExtensionsRule), utils_1.tsExtensionsRule),
|
|
21
|
+
],
|
|
18
22
|
// Append 'ts' and 'tsx' extensions to Airbnb 'import-x/no-extraneous-dependencies' rule
|
|
19
23
|
// https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/no-extraneous-dependencies.md
|
|
20
24
|
'import-x/no-extraneous-dependencies': [
|
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.3",
|
|
4
4
|
"description": "Eslint Airbnb Config Extended",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"type": "commonjs",
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"types": "./dist/@types/index.d.ts",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
36
|
},
|
|
37
37
|
"./legacy": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"types": "./dist/@types/legacy.d.ts",
|
|
39
|
+
"default": "./dist/legacy.js"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"main": "./dist/index.js",
|
|
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.5.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 || ^16.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": {
|