@jarsec/eslint-config 6.1.0 → 6.2.1
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/CHANGELOG.md +28 -0
- package/README.md +30 -0
- package/index.mjs +43 -38
- package/package.json +9 -13
- package/.eslintignore +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @jarsec/eslint-config
|
|
2
2
|
|
|
3
|
+
## 6.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 96bca17: chore(deps): update dependency eslint-plugin-perfectionist to ^4.12.3
|
|
8
|
+
- 7d61739: chore(deps): update dependency eslint-plugin-n to ^17.17.0
|
|
9
|
+
- 0d449ec: chore(deps): update dependency typescript-eslint to ^8.31.1
|
|
10
|
+
- df500da: chore(deps): update eslint monorepo to ^9.25.1
|
|
11
|
+
|
|
12
|
+
## 6.2.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 8e131a4: Disable type-checking rules for JavaScript files
|
|
17
|
+
- 5a293fc: - Update deprecated unicorn config
|
|
18
|
+
- Remove deprecated `flat` option from @stylistic factory function
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- ea1d64a: chore(deps): update dependency @stylistic/eslint-plugin to v4
|
|
23
|
+
- 8e60259: chore(deps): update dependency eslint-plugin-n to ^17.15.1
|
|
24
|
+
- df31669: chore(deps): update dependency eslint-plugin-perfectionist to v4
|
|
25
|
+
- c4b8a13: chore(deps): update eslint monorepo
|
|
26
|
+
- 185c428: chore(deps): update dependency typescript-eslint to ^8.24.1
|
|
27
|
+
- 2693c75: chore(deps): update dependency typescript-eslint to ^8.26.0
|
|
28
|
+
- 54f5069: chore(deps): update eslint monorepo to ^9.21.0
|
|
29
|
+
- 4938aaf: chore(deps): update dependency @stylistic/eslint-plugin to ^4.2.0
|
|
30
|
+
|
|
3
31
|
## 6.1.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ESLint Configuration
|
|
2
|
+
|
|
3
|
+
*Note:* This configuration requires ESLint >9.
|
|
4
|
+
|
|
5
|
+
This package contains my standard ESLint configuration.
|
|
6
|
+
|
|
7
|
+
Rules are collected from the following shared configurations:
|
|
8
|
+
|
|
9
|
+
- `eslint` recommended configuration.
|
|
10
|
+
- `typescript-eslint` recommended and stylistic configurations.
|
|
11
|
+
- `eslint-plugin-unicorn`
|
|
12
|
+
- `eslint-plugin-perfectionist`
|
|
13
|
+
- `@stylistic` code style configuration.
|
|
14
|
+
|
|
15
|
+
### Installation
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
npm install --save-dev @jarsec/eslint-config
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Usage
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import config from '@jarsec/eslint.config';
|
|
25
|
+
|
|
26
|
+
export default [
|
|
27
|
+
...config,
|
|
28
|
+
// other configurations
|
|
29
|
+
]
|
|
30
|
+
```
|
package/index.mjs
CHANGED
|
@@ -1,43 +1,48 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
import eslint from '@eslint/js'
|
|
4
|
-
import stylistic from '@stylistic/eslint-plugin'
|
|
5
|
-
import nodePlugin from 'eslint-plugin-n'
|
|
6
|
-
import perfectionist from 'eslint-plugin-perfectionist'
|
|
7
|
-
import unicorn from 'eslint-plugin-unicorn'
|
|
8
|
-
import tseslint from 'typescript-eslint'
|
|
3
|
+
import eslint from '@eslint/js';
|
|
4
|
+
import stylistic from '@stylistic/eslint-plugin';
|
|
5
|
+
import nodePlugin from 'eslint-plugin-n';
|
|
6
|
+
import perfectionist from 'eslint-plugin-perfectionist';
|
|
7
|
+
import unicorn from 'eslint-plugin-unicorn';
|
|
8
|
+
import tseslint from 'typescript-eslint';
|
|
9
9
|
|
|
10
10
|
export default tseslint.config(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
11
|
+
eslint.configs.recommended,
|
|
12
|
+
...tseslint.configs.recommended,
|
|
13
|
+
...tseslint.configs.stylistic,
|
|
14
|
+
nodePlugin.configs['flat/recommended'],
|
|
15
|
+
unicorn.configs.recommended,
|
|
16
|
+
perfectionist.configs['recommended-natural'],
|
|
17
|
+
stylistic.configs.customize({
|
|
18
|
+
arrowParens: false,
|
|
19
|
+
blockSpacing: true,
|
|
20
|
+
braceStyle: '1tbs',
|
|
21
|
+
commaDangle: 'always-multiline',
|
|
22
|
+
indent: 4,
|
|
23
|
+
jsx: true,
|
|
24
|
+
pluginName: '@stylistic',
|
|
25
|
+
quoteProps: 'consistent-as-needed',
|
|
26
|
+
quotes: 'single',
|
|
27
|
+
semi: true,
|
|
28
|
+
}),
|
|
29
|
+
{
|
|
30
|
+
rules: {
|
|
31
|
+
'@typescript-eslint/consistent-type-definitions': [
|
|
32
|
+
'error',
|
|
33
|
+
'type',
|
|
34
|
+
],
|
|
35
|
+
'multiline-comment-style': ['error', 'starred-block'],
|
|
36
|
+
'n/no-missing-import': 'off',
|
|
37
|
+
'n/no-process-exit': 'off',
|
|
38
|
+
'unicorn/no-process-exit': 'off',
|
|
39
|
+
'unicorn/prevent-abbreviations': 'off',
|
|
40
|
+
},
|
|
41
41
|
},
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
{
|
|
43
|
+
extends: [
|
|
44
|
+
tseslint.configs.disableTypeChecked,
|
|
45
|
+
],
|
|
46
|
+
files: ['**/*.js'],
|
|
47
|
+
},
|
|
48
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jarsec/eslint-config",
|
|
3
|
-
"version": "6.1
|
|
3
|
+
"version": "6.2.1",
|
|
4
4
|
"description": "jsec's eslint configurations",
|
|
5
5
|
"author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,20 +11,16 @@
|
|
|
11
11
|
".": "./index.mjs"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@eslint/js": "^9.
|
|
15
|
-
"@stylistic/eslint-plugin": "^2.
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"eslint": "^
|
|
19
|
-
"eslint
|
|
20
|
-
"eslint-plugin-perfectionist": "^3.9.1",
|
|
21
|
-
"eslint-plugin-unicorn": "^56.0.0",
|
|
22
|
-
"typescript": "^5.3.3",
|
|
23
|
-
"typescript-eslint": "^8.11.0"
|
|
14
|
+
"@eslint/js": "^9.25.1",
|
|
15
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
16
|
+
"eslint-plugin-n": "^17.17.0",
|
|
17
|
+
"eslint-plugin-perfectionist": "^4.12.3",
|
|
18
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
|
19
|
+
"typescript-eslint": "^8.31.1"
|
|
24
20
|
},
|
|
25
21
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^20.
|
|
27
|
-
"eslint": "^9.
|
|
22
|
+
"@types/node": "^20.17.32",
|
|
23
|
+
"eslint": "^9.25.1",
|
|
28
24
|
"typescript": "^5.3.3"
|
|
29
25
|
},
|
|
30
26
|
"peerDependencies": {
|
package/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.eslintrc.js
|