@lenne.tech/eslint-config-angular 1.0.2 → 1.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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4,8 +4,9 @@ import typescript from "@typescript-eslint/eslint-plugin";
4
4
  import stylistic from "@stylistic/eslint-plugin";
5
5
 
6
6
  export default [
7
+ { ignores: ["dist/", ".yalc/", "node_modules/", ".husky/", "extras/"] },
7
8
  {
8
- files: ["*.ts"],
9
+ files: ["*.ts", "*.js", "**/*.ts", "**/*.js"],
9
10
  languageOptions: {
10
11
  parser: tsParser,
11
12
  },
@@ -37,7 +38,7 @@ export default [
37
38
  "@stylistic/type-annotation-spacing": ["error", {}], // Enforces consistent spacing around type annotations in TypeScript
38
39
  "@typescript-eslint/consistent-type-definitions": ["error", "interface"], // Enforces consistent usage of type definitions in TypeScript (interface vs type)
39
40
  "@typescript-eslint/prefer-ts-expect-error": "error", // Recommends using '@ts-expect-error' over '@ts-ignore' when ignoring TypeScript errors
40
- "@typescript-eslint/no-require-imports": "error", // Disallows using the `require` function to import modules in TypeScript
41
+ "@typescript-eslint/no-require-imports": "warn", // Disallows using the `require` function to import modules in TypeScript
41
42
  "no-useless-constructor": "off", // Disallows unnecessary constructors
42
43
  indent: "off", // Disallows inconsistent indentation
43
44
  "@typescript-eslint/no-invalid-this": "error", // Reports invalid uses of 'this' in TypeScript code
@@ -79,6 +80,8 @@ export default [
79
80
  curly: ["error", "all"],
80
81
  "max-statements-per-line": ["error", { max: 1 }],
81
82
 
83
+ "@typescript-eslint/no-unused-vars": "warn",
84
+
82
85
  // off
83
86
  // TS
84
87
  "@typescript-eslint/consistent-indexed-object-style": "off", // Enforces consistent usage of index signatures or record types in TypeScript code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/eslint-config-angular",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "ESLint config of lenne.Tech for Angular",
5
5
  "license": "MIT",
6
6
  "keywords": [