@slashnephy/eslint-config 0.2.0 → 0.2.1

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.
@@ -71,14 +71,12 @@ const javascript = {
71
71
  'no-await-in-loop': 'error',
72
72
  'no-constant-binary-expression': 'error',
73
73
  'no-constructor-return': 'error',
74
- 'no-duplicate-imports': ['error', { includeExports: true }],
75
74
  'no-promise-executor-return': 'error',
76
75
  'no-self-compare': 'error',
77
76
  'no-template-curly-in-string': 'error',
78
77
  'no-unmodified-loop-condition': 'error',
79
78
  'no-unreachable-loop': 'error',
80
79
  'no-unused-private-class-members': 'error',
81
- 'no-use-before-define': 'error',
82
80
  'require-atomic-updates': 'error',
83
81
  'func-call-spacing': ['error', 'never'],
84
82
  'accessor-pairs': 'error',
@@ -17,6 +17,7 @@ const typescript = {
17
17
  warnOnUnsupportedTypeScriptVersion: true,
18
18
  },
19
19
  rules: {
20
+ '@typescript-eslint/consistent-type-definitions': ['error', 'type'],
20
21
  '@typescript-eslint/consistent-type-exports': [
21
22
  'error',
22
23
  {
@@ -44,6 +45,7 @@ const typescript = {
44
45
  {
45
46
  selector: ['variable'],
46
47
  modifiers: ['const', 'global', 'exported'],
48
+ types: ['boolean', 'string', 'number'],
47
49
  format: ['UPPER_CASE'],
48
50
  },
49
51
  {
@@ -77,7 +79,6 @@ const typescript = {
77
79
  '@typescript-eslint/no-implicit-any-catch': 'error',
78
80
  '@typescript-eslint/no-redundant-type-constituents': 'warn',
79
81
  '@typescript-eslint/no-require-imports': 'warn',
80
- '@typescript-eslint/no-type-alias': 'warn',
81
82
  '@typescript-eslint/no-unnecessary-qualifier': 'error',
82
83
  '@typescript-eslint/no-useless-empty-export': 'error',
83
84
  '@typescript-eslint/parameter-properties': [
@@ -97,11 +98,9 @@ const typescript = {
97
98
  ],
98
99
  '@typescript-eslint/prefer-enum-initializers': 'warn',
99
100
  '@typescript-eslint/prefer-readonly': 'error',
100
- '@typescript-eslint/prefer-readonly-parameter-types': 'warn',
101
101
  '@typescript-eslint/prefer-regexp-exec': 'error',
102
102
  '@typescript-eslint/promise-function-async': 'error',
103
103
  '@typescript-eslint/require-array-sort-compare': 'off',
104
- '@typescript-eslint/sort-type-union-intersection-members': 'error',
105
104
  '@typescript-eslint/strict-boolean-expressions': 'error',
106
105
  '@typescript-eslint/switch-exhaustiveness-check': 'error',
107
106
  '@typescript-eslint/type-annotation-spacing': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashnephy/eslint-config",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "author": "SlashNephy <spica@starry.blue> (https://spica.starry.blue/)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "scripts": {
20
20
  "build": "tsc",
21
- "clean": "rm -rf dist/*",
21
+ "clean": "rm -rf dist/",
22
22
  "format": "concurrently -n format: 'yarn:format:*'",
23
23
  "format:eslint": "yarn build && yarn lint:eslint --fix",
24
24
  "format:prettier": "yarn lint:prettier --write",
@@ -28,8 +28,8 @@
28
28
  "publish": "yarn clean && yarn build && yarn npm publish"
29
29
  },
30
30
  "dependencies": {
31
- "@typescript-eslint/eslint-plugin": "5.36.1",
32
- "@typescript-eslint/parser": "5.36.1",
31
+ "@typescript-eslint/eslint-plugin": "5.37.0",
32
+ "@typescript-eslint/parser": "5.37.0",
33
33
  "eslint-config-next": "12.2.5",
34
34
  "eslint-config-prettier": "8.5.0",
35
35
  "eslint-import-resolver-typescript": "3.5.0",