@zenfs/core 1.0.1 → 1.0.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/eslint.shared.js +56 -46
- package/package.json +3 -2
package/eslint.shared.js
CHANGED
|
@@ -1,53 +1,63 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Shared eslint rules
|
|
3
|
-
*/
|
|
4
|
-
|
|
1
|
+
/* Shared eslint rules */
|
|
5
2
|
import eslint from '@eslint/js';
|
|
6
3
|
import stylistic from '@stylistic/eslint-plugin';
|
|
7
4
|
import globals from 'globals';
|
|
8
5
|
import tseslint from 'typescript-eslint';
|
|
9
6
|
|
|
10
|
-
export default
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
export default [
|
|
8
|
+
{
|
|
9
|
+
name: 'ZenFS',
|
|
10
|
+
extends: [eslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked],
|
|
11
|
+
files: ['src/**/*.ts', 'tests/**/*.ts'],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
globals: { ...globals.browser, ...globals.node },
|
|
14
|
+
ecmaVersion: 'latest',
|
|
15
|
+
sourceType: 'module',
|
|
16
|
+
},
|
|
17
|
+
plugins: { stylistic },
|
|
18
|
+
rules: {
|
|
19
|
+
'no-useless-escape': 'warn',
|
|
20
|
+
'stylistic/no-mixed-spaces-and-tabs': 'warn',
|
|
21
|
+
'no-unreachable': 'warn',
|
|
22
|
+
'stylistic/no-extra-semi': 'warn',
|
|
23
|
+
'no-fallthrough': 'warn',
|
|
24
|
+
'no-empty': 'warn',
|
|
25
|
+
'no-case-declarations': 'warn',
|
|
26
|
+
'prefer-const': 'warn',
|
|
27
|
+
'prefer-rest-params': 'warn',
|
|
28
|
+
'prefer-spread': 'warn',
|
|
29
|
+
'no-unused-vars': 'off',
|
|
30
|
+
'@typescript-eslint/no-unused-vars': 'warn',
|
|
31
|
+
'@typescript-eslint/no-inferrable-types': 'off',
|
|
32
|
+
'@typescript-eslint/no-this-alias': 'off',
|
|
33
|
+
'@typescript-eslint/no-unsafe-function-type': 'warn',
|
|
34
|
+
'@typescript-eslint/no-wrapper-object-types': 'warn',
|
|
35
|
+
'@typescript-eslint/triple-slash-reference': 'warn',
|
|
36
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
37
|
+
'@typescript-eslint/no-namespace': 'warn',
|
|
38
|
+
'@typescript-eslint/prefer-as-const': 'warn',
|
|
39
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
40
|
+
'@typescript-eslint/consistent-type-assertions': 'warn',
|
|
41
|
+
'@typescript-eslint/consistent-type-imports': 'warn',
|
|
42
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
|
|
43
|
+
'@typescript-eslint/require-await': 'warn',
|
|
44
|
+
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
45
|
+
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
46
|
+
'@typescript-eslint/no-unsafe-member-access': 'warn',
|
|
47
|
+
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
48
|
+
'@typescript-eslint/no-redundant-type-constituents': 'warn',
|
|
49
|
+
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
50
|
+
},
|
|
18
51
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
'prefer-rest-params': 'warn',
|
|
30
|
-
'prefer-spread': 'warn',
|
|
31
|
-
'no-unused-vars': 'off',
|
|
32
|
-
'@typescript-eslint/no-unused-vars': 'warn',
|
|
33
|
-
'@typescript-eslint/no-inferrable-types': 'off',
|
|
34
|
-
'@typescript-eslint/no-this-alias': 'off',
|
|
35
|
-
'@typescript-eslint/no-unsafe-function-type': 'warn',
|
|
36
|
-
'@typescript-eslint/no-wrapper-object-types': 'warn',
|
|
37
|
-
'@typescript-eslint/triple-slash-reference': 'warn',
|
|
38
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
39
|
-
'@typescript-eslint/no-namespace': 'warn',
|
|
40
|
-
'@typescript-eslint/prefer-as-const': 'warn',
|
|
41
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
42
|
-
'@typescript-eslint/consistent-type-assertions': 'warn',
|
|
43
|
-
'@typescript-eslint/consistent-type-imports': 'warn',
|
|
44
|
-
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
|
|
45
|
-
'@typescript-eslint/require-await': 'warn',
|
|
46
|
-
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
47
|
-
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
48
|
-
'@typescript-eslint/no-unsafe-member-access': 'warn',
|
|
49
|
-
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
50
|
-
'@typescript-eslint/no-redundant-type-constituents': 'warn',
|
|
51
|
-
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
52
|
+
{
|
|
53
|
+
name: 'Tests overrides',
|
|
54
|
+
files: ['tests/**/*.ts'],
|
|
55
|
+
rules: {
|
|
56
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
57
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
58
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
59
|
+
'@typescript-eslint/no-floating-promises': 'off',
|
|
60
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
61
|
+
},
|
|
52
62
|
},
|
|
53
|
-
|
|
63
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenfs/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A filesystem, anywhere",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
".": "./dist/index.js",
|
|
42
42
|
"./*": "./dist/*",
|
|
43
43
|
"./promises": "./dist/emulation/promises.js",
|
|
44
|
-
"./mixins": "./dist/mixins/index.js"
|
|
44
|
+
"./mixins": "./dist/mixins/index.js",
|
|
45
|
+
"./eslint": "./eslint.shared.js"
|
|
45
46
|
},
|
|
46
47
|
"scripts": {
|
|
47
48
|
"format": "prettier --write .",
|