@zetavg/eslint-config 0.0.4 → 0.0.5-pre.3
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/configs/index.js +1 -0
- package/configs/markdown.js +24 -0
- package/package.json +3 -3
- package/presets/default.js +1 -2
package/configs/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { default as general } from './general.js';
|
|
|
3
3
|
export { default as imports } from './imports.js';
|
|
4
4
|
export { default as importsSort } from './imports-sort.js';
|
|
5
5
|
export { default as json } from './json.js';
|
|
6
|
+
export { default as markdown } from './markdown.js';
|
|
6
7
|
export { default as noUnusedVars } from './no-unused.js';
|
|
7
8
|
export { default as prettier } from './prettier.js';
|
|
8
9
|
export { default as react } from './react.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import markdown from '@eslint/markdown';
|
|
2
|
+
import { defineConfig } from 'eslint/config';
|
|
3
|
+
|
|
4
|
+
export default defineConfig([
|
|
5
|
+
{
|
|
6
|
+
plugins: {
|
|
7
|
+
markdown,
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
markdown.configs.recommended,
|
|
11
|
+
{
|
|
12
|
+
rules: {
|
|
13
|
+
'markdown/no-missing-label-refs': [
|
|
14
|
+
'warn',
|
|
15
|
+
{
|
|
16
|
+
// Alerts (a.k.a. callouts or admonitions) may be interpreted as labels by this rule, but they are not actually labels and shouldn't be checked for references.
|
|
17
|
+
// We include the common alert labels here to prevent false positives.
|
|
18
|
+
// https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts
|
|
19
|
+
allowLabels: ['!NOTE', '!TIP', '!IMPORTANT', '!WARNING', '!CAUTION'],
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
]);
|
package/package.json
CHANGED
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"typescript-eslint": "^8"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@zetavg/prettier-config": "^0.0.
|
|
50
|
-
"@zetavg/tsconfig": "^0.0.
|
|
49
|
+
"@zetavg/prettier-config": "^0.0.5-pre.3",
|
|
50
|
+
"@zetavg/tsconfig": "^0.0.5-pre.3",
|
|
51
51
|
"eslint": "^9",
|
|
52
52
|
"prettier": "^3",
|
|
53
53
|
"typescript": "~5.8"
|
|
54
54
|
},
|
|
55
|
-
"version": "0.0.
|
|
55
|
+
"version": "0.0.5-pre.3"
|
|
56
56
|
}
|
package/presets/default.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import markdown from '@eslint/markdown';
|
|
2
1
|
import vitest from '@vitest/eslint-plugin';
|
|
3
2
|
import { defineConfig } from 'eslint/config';
|
|
4
3
|
import tseslint from 'typescript-eslint';
|
|
@@ -11,7 +10,7 @@ export default defineConfig([
|
|
|
11
10
|
tseslint.configs.recommended,
|
|
12
11
|
vitest.configs.recommended,
|
|
13
12
|
configs.json,
|
|
14
|
-
|
|
13
|
+
configs.markdown,
|
|
15
14
|
{
|
|
16
15
|
name: 'Configs Applied to All JS/TS Files',
|
|
17
16
|
files: ['**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}'],
|