@azat-io/eslint-config 2.66.0 → 2.67.0
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/package.json +12 -12
- package/readme.md +29 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azat-io/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.67.0",
|
|
4
4
|
"description": "ESLint shareable config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -36,31 +36,31 @@
|
|
|
36
36
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
37
37
|
"eslint-plugin-depend": "^1.4.0",
|
|
38
38
|
"eslint-plugin-import-x": "^4.16.1",
|
|
39
|
-
"eslint-plugin-jsdoc": "^62.
|
|
39
|
+
"eslint-plugin-jsdoc": "^62.4.1",
|
|
40
40
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
41
41
|
"eslint-plugin-n": "^17.23.2",
|
|
42
|
-
"eslint-plugin-package-json": "^0.88.
|
|
43
|
-
"eslint-plugin-perfectionist": "^5.
|
|
42
|
+
"eslint-plugin-package-json": "^0.88.2",
|
|
43
|
+
"eslint-plugin-perfectionist": "^5.4.0",
|
|
44
44
|
"eslint-plugin-prefer-let": "^4.0.1",
|
|
45
45
|
"eslint-plugin-promise": "^7.2.1",
|
|
46
46
|
"eslint-plugin-qwik": "^1.18.0",
|
|
47
47
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
48
|
-
"eslint-plugin-react-dom": "^2.7.
|
|
48
|
+
"eslint-plugin-react-dom": "^2.7.4",
|
|
49
49
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
50
|
-
"eslint-plugin-react-hooks-extra": "^2.7.
|
|
51
|
-
"eslint-plugin-react-naming-convention": "^2.7.
|
|
50
|
+
"eslint-plugin-react-hooks-extra": "^2.7.4",
|
|
51
|
+
"eslint-plugin-react-naming-convention": "^2.7.4",
|
|
52
52
|
"eslint-plugin-react-perf": "^3.3.3",
|
|
53
|
-
"eslint-plugin-react-web-api": "^2.7.
|
|
54
|
-
"eslint-plugin-react-x": "^2.7.
|
|
55
|
-
"eslint-plugin-regexp": "^
|
|
53
|
+
"eslint-plugin-react-web-api": "^2.7.4",
|
|
54
|
+
"eslint-plugin-react-x": "^2.7.4",
|
|
55
|
+
"eslint-plugin-regexp": "^3.0.0",
|
|
56
56
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
57
57
|
"eslint-plugin-svelte": "^3.14.0",
|
|
58
58
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
59
59
|
"eslint-plugin-vue": "^10.7.0",
|
|
60
|
-
"globals": "^17.
|
|
60
|
+
"globals": "^17.1.0",
|
|
61
61
|
"jsonc-eslint-parser": "^2.4.2",
|
|
62
62
|
"svelte-eslint-parser": "^1.4.1",
|
|
63
|
-
"typescript-eslint": "^8.
|
|
63
|
+
"typescript-eslint": "^8.54.0",
|
|
64
64
|
"vue-eslint-parser": "^10.2.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
package/readme.md
CHANGED
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
[](https://npmjs.com/package/@azat-io/eslint-config)
|
|
12
12
|
[](https://github.com/azat-io/eslint-config/blob/main/license.md)
|
|
13
13
|
|
|
14
|
-
A comprehensive and flexible ESLint configuration that supports a wide range of
|
|
14
|
+
A comprehensive and flexible ESLint configuration that supports a wide range of
|
|
15
|
+
frameworks and environments. Easily integrate clean, consistent code standards
|
|
16
|
+
across projects by enabling settings for specific tools and libraries.
|
|
15
17
|
|
|
16
|
-
This config covers multiple setups in a single, straightforward import, helping
|
|
18
|
+
This config covers multiple setups in a single, straightforward import, helping
|
|
19
|
+
maintain consistency across different project types and frameworks.
|
|
17
20
|
|
|
18
21
|
## Usage
|
|
19
22
|
|
|
@@ -48,7 +51,9 @@ export default eslintConfig({
|
|
|
48
51
|
|
|
49
52
|
## Configuration
|
|
50
53
|
|
|
51
|
-
To configure the ESLint rules based on your project’s needs, import the config
|
|
54
|
+
To configure the ESLint rules based on your project’s needs, import the config
|
|
55
|
+
and pass an object with options for each framework or tool. By default, all
|
|
56
|
+
options are disabled, so you can enable only what's relevant to your project.
|
|
52
57
|
|
|
53
58
|
```js
|
|
54
59
|
import eslintConfig from '@azat-io/eslint-config'
|
|
@@ -68,39 +73,48 @@ export default eslintConfig({
|
|
|
68
73
|
|
|
69
74
|
### perfectionist
|
|
70
75
|
|
|
71
|
-
Enables rules for sorting and organizing code structures for better readability
|
|
76
|
+
Enables rules for sorting and organizing code structures for better readability
|
|
77
|
+
and consistency.
|
|
72
78
|
|
|
73
79
|
### typescript
|
|
74
80
|
|
|
75
|
-
Adds TypeScript-specific linting rules to ensure type safety and maintain
|
|
81
|
+
Adds TypeScript-specific linting rules to ensure type safety and maintain
|
|
82
|
+
TypeScript best practices.
|
|
76
83
|
|
|
77
84
|
### svelte
|
|
78
85
|
|
|
79
|
-
Enables support for Svelte, including linting rules for Svelte components and
|
|
86
|
+
Enables support for Svelte, including linting rules for Svelte components and
|
|
87
|
+
files.
|
|
80
88
|
|
|
81
89
|
### vitest
|
|
82
90
|
|
|
83
|
-
Adds support for Vitest, adjusting linting for testing files and practices
|
|
91
|
+
Adds support for Vitest, adjusting linting for testing files and practices
|
|
92
|
+
within Vitest projects.
|
|
84
93
|
|
|
85
94
|
### astro
|
|
86
95
|
|
|
87
|
-
Configures ESLint for Astro projects, with adjustments for Astro’s file
|
|
96
|
+
Configures ESLint for Astro projects, with adjustments for Astro’s file
|
|
97
|
+
structure and conventions.
|
|
88
98
|
|
|
89
99
|
### react
|
|
90
100
|
|
|
91
|
-
Includes React-specific linting rules for JSX syntax, React hooks, and best
|
|
101
|
+
Includes React-specific linting rules for JSX syntax, React hooks, and best
|
|
102
|
+
practices within React environments.
|
|
92
103
|
|
|
93
104
|
### qwik
|
|
94
105
|
|
|
95
|
-
Adds support for Qwik, adjusting linting for Qwik-specific syntax and
|
|
106
|
+
Adds support for Qwik, adjusting linting for Qwik-specific syntax and
|
|
107
|
+
conventions.
|
|
96
108
|
|
|
97
109
|
### node
|
|
98
110
|
|
|
99
|
-
Adjusts linting for Node.js environments, addressing Node-specific globals,
|
|
111
|
+
Adjusts linting for Node.js environments, addressing Node-specific globals,
|
|
112
|
+
imports, and common practices.
|
|
100
113
|
|
|
101
114
|
### vue
|
|
102
115
|
|
|
103
|
-
Adds Vue-specific linting rules, supporting Vue's syntax and best practices for
|
|
116
|
+
Adds Vue-specific linting rules, supporting Vue's syntax and best practices for
|
|
117
|
+
Vue components.
|
|
104
118
|
|
|
105
119
|
### extends
|
|
106
120
|
|
|
@@ -153,8 +167,9 @@ This config uses the following plugins:
|
|
|
153
167
|
|
|
154
168
|
## See also
|
|
155
169
|
|
|
156
|
-
- [
|
|
157
|
-
- [
|
|
170
|
+
- [@azat-io/prettier-config](https://github.com/azat-io/prettier-config)
|
|
171
|
+
- [@azat-io/stylelint-config](https://github.com/azat-io/stylelint-config)
|
|
172
|
+
- [@azat-io/typescript-config](https://github.com/azat-io/typescript-config)
|
|
158
173
|
|
|
159
174
|
## License
|
|
160
175
|
|