@repodog/eslint-config 1.0.0-alpha.0 → 1.0.2-alpha.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 (2) hide show
  1. package/index.cjs +15 -9
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -35,6 +35,14 @@ module.exports = {
35
35
  },
36
36
  plugins: ['@typescript-eslint', 'typescript-sort-keys'],
37
37
  rules: {
38
+ '@typescript-eslint/consistent-type-imports': [
39
+ 2,
40
+ {
41
+ disallowTypeAnnotations: false,
42
+ fixStyle: 'inline-type-imports',
43
+ prefer: 'type-imports',
44
+ },
45
+ ],
38
46
  '@typescript-eslint/naming-convention': [
39
47
  2,
40
48
  {
@@ -73,7 +81,7 @@ module.exports = {
73
81
  ],
74
82
  '@typescript-eslint/no-use-before-define': [
75
83
  2,
76
- { enums: true, functions: false, ignoreTypeReferences: false, typedefs: false },
84
+ { enums: true, functions: false, ignoreTypeReferences: true, typedefs: false },
77
85
  ],
78
86
  'import/no-named-as-default': 0,
79
87
  'import/no-named-as-default-member': 0,
@@ -92,9 +100,7 @@ module.exports = {
92
100
  },
93
101
  {
94
102
  files: ['**/*.{mjs,cjs,js,jsx}'],
95
- rules: {
96
- 'import/extensions': [2, 'always'],
97
- },
103
+ rules: {},
98
104
  },
99
105
  ],
100
106
  parser: '@babel/eslint-parser',
@@ -115,8 +121,8 @@ module.exports = {
115
121
  'prettier',
116
122
  ],
117
123
  rules: {
118
- // Conflicts with aliasing .ts files as .js in import paths
119
- 'import/extensions': 0,
124
+ 'import/extensions': [2, 'ignorePackages'],
125
+ 'import/namespace': 0,
120
126
  'import/no-default-export': 2,
121
127
  // Outstanding bug impacting this rule: https://github.com/import-js/eslint-plugin-import/issues/2168
122
128
  'import/no-extraneous-dependencies': [
@@ -175,14 +181,14 @@ module.exports = {
175
181
  { blankLine: 'always', next: 'singleline-const', prev: 'cjs-import' },
176
182
  { blankLine: 'always', next: 'singleline-let', prev: 'cjs-import' },
177
183
  { blankLine: 'always', next: '*', prev: 'multiline-const' },
178
- { blankLine: 'always', next: 'multiline-const', prev: 'multiline-const' },
184
+ { blankLine: 'always', next: 'multiline-const', prev: '*' },
179
185
  { blankLine: 'always', next: '*', prev: 'multiline-let' },
180
- { blankLine: 'always', next: 'multiline-const', prev: 'multiline-let' },
186
+ { blankLine: 'always', next: 'multiline-let', prev: '*' },
181
187
  { blankLine: 'never', next: 'cjs-export', prev: 'cjs-export' },
182
188
  { blankLine: 'never', next: 'cjs-import', prev: 'cjs-import' },
183
189
  { blankLine: 'always', next: 'case', prev: '*' },
184
190
  { blankLine: 'always', next: 'default', prev: '*' },
185
- { blankLine: 'always', next: 'break', prev: '*' },
191
+ { blankLine: 'always', next: '*', prev: 'break' },
186
192
  ],
187
193
  'prettier/prettier': 2,
188
194
  'react/jsx-filename-extension': [2, { extensions: ['.jsx', '.tsx'] }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repodog/eslint-config",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.2-alpha.0",
4
4
  "description": "The RepoDog ESLint config module.",
5
5
  "homepage": "https://github.com/badbatch/repodog",
6
6
  "bugs": {