lint-rules-alvin 1.0.3 → 1.0.5

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.
@@ -6,17 +6,14 @@ import { globalIgnores } from 'eslint/config';
6
6
  * The `ESLint` base config. Includes base rules, ignore files and directives.
7
7
  */
8
8
  export const base = [
9
- includeIgnoreFile(path.join(
10
- process.cwd(),
11
- '.gitignore'
12
- )),
9
+ includeIgnoreFile(
10
+ path.join(
11
+ process.cwd(),
12
+ '.gitignore'
13
+ )
14
+ ),
13
15
  globalIgnores([
14
16
  'eslint.config.js',
15
17
  'eslint.config.ts'
16
- ]),
17
- {
18
- name: 'base',
19
- files: [ '**/*.{ts,tsx}' ],
20
- rules: { 'no-undef': 'off' }
21
- }
18
+ ])
22
19
  ];
@@ -3,6 +3,5 @@ import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
3
3
  export const reactHooks = {
4
4
  name: 'eslint-plugin-react-hooks',
5
5
  files: [ '**/*.{jsx,tsx}' ],
6
- plugins: { 'react-hooks': eslintPluginReactHooks },
7
- extends: [ 'react-hooks/recommended' ]
6
+ ...eslintPluginReactHooks.configs.flat.recommended
8
7
  };
@@ -474,7 +474,7 @@ export const typescript = {
474
474
  // allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
475
475
  }
476
476
  ],
477
- '@typescript-eslint/strict-boolean-expressions': [
477
+ '@typescript-eslint/switch-exhaustiveness-check': [
478
478
  'error',
479
479
  {
480
480
  allowDefaultCaseForExhaustiveSwitch: true,
@@ -18,7 +18,7 @@ import {
18
18
  */
19
19
  export const astroReactTs = defineConfig(
20
20
  base,
21
- globalIgnores([ '**/*.astro/*.ts' ]),
21
+ globalIgnores([ '**/*.astro/*.ts' ]), // Crucial to drastically improve performance!
22
22
  typescript,
23
23
  astro,
24
24
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-rules-alvin",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "My own personal linting ruleset for a bunch of different plugins. Includes a few custom rules. Used in a few of my repos.",
5
5
  "keywords": [
6
6
  "eslint"