@alauda/doom 0.23.0 → 0.23.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.
Files changed (2) hide show
  1. package/lib/cli/lint.js +25 -24
  2. package/package.json +1 -1
package/lib/cli/lint.js CHANGED
@@ -19,8 +19,9 @@ export const lintCommand = new Command('lint')
19
19
  const parsedTerms = await parseTerms();
20
20
  const eslint = new ESLint({
21
21
  cwd: docsDir,
22
+ overrideConfigFile: true,
22
23
  // @ts-expect-error -- stronger types
23
- baseConfig: tseslint.config([
24
+ overrideConfig: tseslint.config([
24
25
  {
25
26
  extends: [
26
27
  js.configs.recommended,
@@ -37,6 +38,7 @@ export const lintCommand = new Command('lint')
37
38
  merge({
38
39
  autoFix: true,
39
40
  cspell: {
41
+ allowCompoundWords: true,
40
42
  words: parsedTerms.map((it) => it.en),
41
43
  flagWords: parsedTerms.flatMap(({ badCases }) => badCases?.en ?? []),
42
44
  },
@@ -44,29 +46,28 @@ export const lintCommand = new Command('lint')
44
46
  ],
45
47
  },
46
48
  },
47
- // https://github.com/eslint/eslint/issues/19722
48
- // {
49
- // files: ['**/*.{ts,tsx}'],
50
- // extends: [
51
- // tseslint.configs.recommendedTypeChecked,
52
- // react.configs['recommended-typescript'],
53
- // ],
54
- // rules: {
55
- // '@typescript-eslint/no-misused-promises': 'off',
56
- // '@typescript-eslint/no-non-null-assertion': 'off',
57
- // '@typescript-eslint/restrict-template-expressions': [
58
- // 'error',
59
- // { allowNumber: true },
60
- // ],
61
- // 'prefer-const': ['error', { destructuring: 'all' }],
62
- // },
63
- // languageOptions: {
64
- // parser: tseslint.parser,
65
- // parserOptions: {
66
- // projectService: true,
67
- // },
68
- // },
69
- // },
49
+ {
50
+ files: ['**/*.{ts,tsx}'],
51
+ extends: [
52
+ tseslint.configs.recommendedTypeChecked,
53
+ react.configs['recommended-typescript'],
54
+ ],
55
+ rules: {
56
+ '@typescript-eslint/no-misused-promises': 'off',
57
+ '@typescript-eslint/no-non-null-assertion': 'off',
58
+ '@typescript-eslint/restrict-template-expressions': [
59
+ 'error',
60
+ { allowNumber: true },
61
+ ],
62
+ 'prefer-const': ['error', { destructuring: 'all' }],
63
+ },
64
+ languageOptions: {
65
+ parser: tseslint.parser,
66
+ parserOptions: {
67
+ projectService: true,
68
+ },
69
+ },
70
+ },
70
71
  ]),
71
72
  });
72
73
  logger.start('Linting...');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": "git+https://github.com/alauda/doom.git",