@nice-move/eslint-config-base 0.9.16 → 0.9.18

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/typescript.cjs +27 -20
  2. package/package.json +13 -13
@@ -1,36 +1,43 @@
1
1
  'use strict';
2
2
 
3
- const {
4
- overrides: [{ rules: base }],
5
- } = require('@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js');
6
- const {
7
- rules,
8
- } = require('@typescript-eslint/eslint-plugin/dist/configs/recommended.js');
9
-
10
- function filterObject(object, filter) {
11
- return Object.fromEntries(
12
- Object.entries(object).filter(([key, value]) => filter(key, value)),
13
- );
14
- }
15
-
16
3
  module.exports = {
17
4
  overrides: [
18
5
  {
19
6
  files: ['*.ts', '*.tsx', '*.mts', '*.cts'],
20
7
  parser: '@typescript-eslint/parser',
21
- plugins: ['@typescript-eslint'],
22
- // parserOptions: {
23
- // tsconfigRootDir: process.cwd(),
24
- // project: ['./tsconfig.json'],
25
- // },
8
+ plugins: ['@typescript-eslint/eslint-plugin'],
26
9
  // extends: [
27
10
  // 'plugin:@typescript-eslint/recommended-requiring-type-checking',
28
11
  // 'airbnb-typescript',
29
12
  // ],
30
13
  rules: {
31
- ...filterObject(base, (_key, value) => value !== 'off' && value !== 0),
32
- ...rules,
14
+ '@typescript-eslint/ban-types': 'error',
15
+ '@typescript-eslint/no-array-constructor': 'error',
16
+ '@typescript-eslint/no-duplicate-enum-values': 'error',
17
+ '@typescript-eslint/no-dynamic-delete': 'error',
18
+ '@typescript-eslint/no-extra-non-null-assertion': 'error',
19
+ '@typescript-eslint/no-extraneous-class': 'error',
20
+ '@typescript-eslint/no-invalid-void-type': 'error',
21
+ '@typescript-eslint/no-loss-of-precision': 'error',
22
+ '@typescript-eslint/no-misused-new': 'error',
23
+ '@typescript-eslint/no-namespace': 'error',
24
+ '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
25
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
26
+ '@typescript-eslint/no-non-null-assertion': 'error',
27
+ '@typescript-eslint/no-this-alias': 'error',
28
+ '@typescript-eslint/no-unnecessary-type-constraint': 'error',
29
+ '@typescript-eslint/no-unsafe-declaration-merging': 'error',
30
+ '@typescript-eslint/no-useless-constructor': 'error',
31
+ '@typescript-eslint/no-var-requires': 'error',
32
+ '@typescript-eslint/prefer-as-const': 'error',
33
+ '@typescript-eslint/prefer-literal-enum-member': 'error',
34
+ '@typescript-eslint/prefer-ts-expect-error': 'error',
35
+ '@typescript-eslint/triple-slash-reference': 'error',
36
+ '@typescript-eslint/unified-signatures': 'error',
37
+
38
+ '@typescript-eslint/no-explicit-any': 'warn',
33
39
  '@typescript-eslint/ban-ts-comment': 0,
40
+ '@typescript-eslint/no-empty-function': 0,
34
41
  '@typescript-eslint/no-unused-vars': [
35
42
  'warn',
36
43
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/eslint-config-base",
3
- "version": "0.9.16",
3
+ "version": "0.9.18",
4
4
  "description": "A `eslint` config for best practice",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -34,27 +34,27 @@
34
34
  },
35
35
  "main": "index.cjs",
36
36
  "dependencies": {
37
- "@babel/core": "^7.22.6",
38
- "@babel/eslint-parser": "^7.22.6",
37
+ "@babel/core": "^7.22.9",
38
+ "@babel/eslint-parser": "^7.22.9",
39
39
  "@babel/plugin-syntax-import-attributes": "^7.22.5",
40
40
  "@nice-move/eslint-plugin-html": "0.0.0-beta.3",
41
- "@typescript-eslint/eslint-plugin": "^5.61.0",
42
- "@typescript-eslint/parser": "^5.61.0",
41
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
42
+ "@typescript-eslint/parser": "^6.2.1",
43
43
  "eslint-config-airbnb-base": "^15.0.0",
44
- "eslint-config-prettier": "^8.8.0",
44
+ "eslint-config-prettier": "^9.0.0",
45
45
  "eslint-plugin-eslint-comments": "^3.2.0",
46
- "eslint-plugin-import": "^2.27.5",
47
- "eslint-plugin-markdown": "^3.0.0",
46
+ "eslint-plugin-import": "^2.28.0",
47
+ "eslint-plugin-markdown": "^3.0.1",
48
48
  "eslint-plugin-n": "^16.0.1",
49
49
  "eslint-plugin-promise": "^6.1.1",
50
- "eslint-plugin-sonarjs": "^0.19.0",
51
- "eslint-plugin-unicorn": "^47.0.0",
52
- "espree": "^9.5.2",
50
+ "eslint-plugin-sonarjs": "^0.20.0",
51
+ "eslint-plugin-unicorn": "^48.0.1",
52
+ "espree": "^9.6.1",
53
53
  "resolve.exports": "^2.0.2",
54
54
  "settingz": "^0.2.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "eslint": "^8.44.0"
57
+ "eslint": "^8.46.0"
58
58
  },
59
59
  "engines": {
60
60
  "node": "^16.15.0 || ^18.12.0"
@@ -63,4 +63,4 @@
63
63
  "access": "public",
64
64
  "registry": "https://registry.npmjs.org/"
65
65
  }
66
- }
66
+ }