@kayahr/oxlint-config 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/.oxlintrc.json CHANGED
@@ -9,6 +9,16 @@
9
9
  "style": "warn",
10
10
  "suspicious": "warn"
11
11
  },
12
+ "overrides": [
13
+ {
14
+ "files": [
15
+ "**/*.test.ts"
16
+ ],
17
+ "rules": {
18
+ "no-floating-promises": "off"
19
+ }
20
+ }
21
+ ],
12
22
  "plugins": [
13
23
  "eslint",
14
24
  "import",
@@ -29,37 +39,41 @@
29
39
  "null": "ignore"
30
40
  }
31
41
  ],
32
- "eslint/func-style": [
33
- "warn",
34
- "declaration",
35
- {
36
- "overrides": {
37
- "allowArrowFunctions": true,
38
- "namedExports": "declaration"
39
- }
40
- }
41
- ],
42
+ "eslint/func-style": "off",
42
43
  "eslint/id-length": "off",
43
44
  "eslint/init-declarations": "off",
44
45
  "eslint/max-lines": "off",
45
46
  "eslint/max-lines-per-function": "off",
47
+ "eslint/max-params": "off",
46
48
  "eslint/no-await-in-loop": "off",
49
+ "eslint/no-continue": "off",
50
+ "eslint/no-empty-function": "off",
47
51
  "eslint/no-eq-null": "off",
48
52
  "eslint/no-magic-numbers": "off",
53
+ "eslint/no-plusplus": "off",
49
54
  "eslint/no-ternary": "off",
55
+ "eslint/no-undefined": "off",
50
56
  "eslint/prefer-destructuring": "off",
51
57
  "eslint/radix": "off",
52
- "eslint/require-await": "warn",
58
+ "eslint/require-await": "off",
53
59
  "eslint/sort-imports": "off",
54
60
  "eslint/sort-keys": "off",
61
+ "import/consistent-type-specifier-style": [
62
+ "warn",
63
+ "prefer-inline"
64
+ ],
55
65
  "import/exports-last": "off",
66
+ "import/extensions": "off",
56
67
  "import/group-exports": "off",
68
+ "import/no-namespace": "off",
57
69
  "import/prefer-default-export": "off",
58
70
  "jsdoc/require-param": "warn",
59
71
  "jsdoc/require-param-type": "off",
60
72
  "jsdoc/require-returns-type": "off",
61
73
  "oxc/no-async-await": "off",
62
74
  "oxc/no-optional-chaining": "off",
75
+ "oxc/no-reset-spread-properties": "off",
76
+ "oxc/no-rest-spread-properties": "off",
63
77
  "promise/avoid-new": "off",
64
78
  "promise/prefer-await-to-callbacks": "off",
65
79
  "typescript/array-type": [
@@ -69,19 +83,26 @@
69
83
  "readonly": "array-simple"
70
84
  }
71
85
  ],
86
+ "typescript/explicit-function-return-type": "off",
87
+ "typescript/no-base-to-string": "off",
88
+ "typescript/no-misused-spread": "off",
72
89
  "typescript/no-unsafe-type-assertion": "off",
73
90
  "typescript/promise-function-async": "off",
91
+ "typescript/restrict-template-expressions": "off",
92
+ "unicorn/filename-case": [
93
+ "warn",
94
+ {
95
+ "cases": {
96
+ "camelCase": true,
97
+ "kebabCase": true,
98
+ "pascalCase": true
99
+ },
100
+ "multipleFileExtensions": true
101
+ }
102
+ ],
74
103
  "unicorn/no-null": "off",
75
104
  "unicorn/prefer-event-target": "off",
76
105
  "unicorn/prefer-node-protocol": "warn",
77
106
  "unicorn/prefer-number-properties": "off"
78
- },
79
- "overrides": [
80
- {
81
- "files": [ "**/*.test.ts" ],
82
- "rules": {
83
- "no-floating-promises": "off"
84
- }
85
- }
86
- ]
107
+ }
87
108
  }
package/README.md CHANGED
@@ -32,7 +32,7 @@ Add the following script line to `package.json`:
32
32
  ```json
33
33
  {
34
34
  "scripts": {
35
- "test:lint": "oxlint --type-aware",
35
+ "test:lint": "oxlint --type-aware --deny-warnings",
36
36
  "test": "npm run test:lint"
37
37
  }
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kayahr/oxlint-config",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Shared oxlint config for @kayahr projects",
5
5
  "type": "module",
6
6
  "exports": "./.oxlintrc.json",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "scripts": {
17
17
  "test": "run test:*",
18
- "test:lint": "oxlint --type-aware",
19
- "test:spell": "cspell --no-progress"
18
+ "test:lint": "oxlint --type-aware --deny-warnings",
19
+ "test:spell": "cspell --color --no-progress"
20
20
  },
21
21
  "files": [
22
22
  ".oxlintrc.json"