@k03mad/oxlint-config 0.0.2 → 0.0.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "./node_modules/oxlint/configuration_schema.json",
3
- "ignorePatterns": [".allure/**", ".bin/**", "allure/**", "artifacts/**", "node_modules/**"],
3
+ "ignorePatterns": ["node_modules/**"],
4
4
  "plugins": ["typescript", "eslint", "import", "jsdoc", "node", "oxc", "promise", "unicorn"],
5
5
  "jsPlugins": ["./plugin/plugin.js"],
6
6
  "categories": {
@@ -104,22 +104,25 @@
104
104
 
105
105
  // OFF
106
106
 
107
- "oxc/no-rest-spread-properties": "off",
108
107
  "oxc/no-optional-chaining": "off",
108
+ "oxc/no-rest-spread-properties": "off",
109
109
 
110
110
  "import/no-anonymous-default-export": "off",
111
111
  "import/no-default-export": "off",
112
+ "import/no-named-export": "off",
113
+
114
+ "jsdoc/require-param-description": "off",
112
115
 
113
116
  "unicorn/no-array-reduce": "off",
114
117
  "unicorn/no-null": "off",
115
118
 
116
- "max-lines": "off",
117
- "no-plusplus": "off",
119
+ "id-length": "off",
118
120
  "max-lines-per-function": "off",
121
+ "max-lines": "off",
119
122
  "max-params": "off",
120
- "sort-keys": "off",
121
123
  "no-magic-numbers": "off",
122
- "id-length": "off",
123
- "no-ternary": "off"
124
+ "no-plusplus": "off",
125
+ "no-ternary": "off",
126
+ "sort-keys": "off"
124
127
  }
125
128
  }
@@ -1,9 +1,3 @@
1
1
  {
2
- "cSpell.words": ["nvmrc", "oxfmt", "oxfmtrc", "oxlint"],
3
- "editor.defaultFormatter": "oxc.oxc-vscode",
4
- "oxc.fmt.configPath": ".oxfmtrc.json",
5
- "editor.formatOnSave": true,
6
- "editor.codeActionsOnSave": {
7
- "source.fixAll.oxc": "always"
8
- }
2
+ "cSpell.words": ["nvmrc", "oxfmt", "oxfmtrc", "oxlint", "oxlintrc"]
9
3
  }
package/README.md CHANGED
@@ -6,14 +6,18 @@ npm i --save-dev --save-exact oxlint oxfmt @k03mad/oxlint-config
6
6
 
7
7
  ## Use
8
8
 
9
- ```js
10
- // eslint.config.js
9
+ `.oxlintrc.json`
11
10
 
12
- export {default} from '@k03mad/eslint-config';
11
+ ```json
12
+ {
13
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
14
+ "extends": ["./node_modules/@k03mad/oxlint-config/.oxlintrc.json"]
15
+ }
13
16
  ```
14
17
 
18
+ `.oxfmtrc.json`
19
+
15
20
  ```json
16
- // .oxfmtrc.json
17
21
  {
18
22
  "$schema": "./node_modules/oxfmt/configuration_schema.json",
19
23
  "ignorePatterns": ["node_modules/**"],
@@ -34,8 +38,22 @@ export {default} from '@k03mad/eslint-config';
34
38
  }
35
39
  ```
36
40
 
41
+ `.vscode/settings.json`
42
+
43
+ ```json
44
+ {
45
+ "editor.defaultFormatter": "oxc.oxc-vscode",
46
+ "oxc.fmt.configPath": ".oxfmtrc.json",
47
+ "editor.formatOnSave": true,
48
+ "editor.codeActionsOnSave": {
49
+ "source.fixAll.oxc": "always"
50
+ }
51
+ }
52
+ ```
53
+
54
+ `package.json`
55
+
37
56
  ```json
38
- // package.json
39
57
  {
40
58
  "scripts": {
41
59
  "lint": "oxlint --report-unused-disable-directives && oxfmt --check"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/oxlint-config",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "My Oxlint config",
5
5
  "license": "MIT",
6
6
  "maintainers": [