@astrelion/eslint-config-astrel 1.5.0 → 1.6.0

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 (3) hide show
  1. package/README.md +6 -7
  2. package/index.js +1 -0
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -40,21 +40,20 @@ with `bun install -D @astrelion/eslint-config-astrel`.
40
40
 
41
41
  In your ESLint [configuration
42
42
  file](https://eslint.org/docs/latest/use/configure/configuration-files), import
43
- the package and spread the config into your configuration. For example:
43
+ the package and add the config into your configuration. For example:
44
44
 
45
45
  ```javascript
46
46
  import pluginJs from "@eslint/js";
47
47
  import tseslint from "typescript-eslint";
48
+ import { defineConfig } from "@eslint/config"
48
49
  import astrel from "@astrelion/eslint-config-astrel"; // import here
49
50
 
50
- /** @type { import("eslint").Linter.Config[] } */
51
- export default [
51
+ export default defaultConfig(
52
52
  { files: ["**/*.{js,mjs,cjs,ts}"] },
53
53
  pluginJs.configs.recommended,
54
- ...tseslint.configs.recommendedTypeChecked,
55
- ...astrel, // added to local config here
56
- ];
57
-
54
+ tseslint.configs.recommended,
55
+ astrel, // added to local config here
56
+ );
58
57
  ```
59
58
 
60
59
  Done!
package/index.js CHANGED
@@ -32,6 +32,7 @@ export default defineConfig(
32
32
  rules: {
33
33
  "@typescript-eslint/explicit-function-return-type": ["warn", { allowExpressions: true }],
34
34
  "@typescript-eslint/no-explicit-any": ["warn"],
35
+ "@typescript-eslint/no-shadow": ["warn"],
35
36
  "@typescript-eslint/no-unnecessary-condition": ["warn"],
36
37
  "@typescript-eslint/no-unused-vars": [
37
38
  "warn",
package/package.json CHANGED
@@ -8,11 +8,12 @@
8
8
  "name": "ASTRELION",
9
9
  "url": "https://astrelion.com"
10
10
  },
11
- "version": "1.5.0",
11
+ "version": "1.6.0",
12
12
  "keywords": [
13
13
  "eslint",
14
14
  "eslintconfig"
15
15
  ],
16
+ "license": "AGPL-3.0-only",
16
17
  "module": "index.js",
17
18
  "main": "index.js",
18
19
  "type": "module",