Skip to content

Commit 44df6cb

Browse files
authored
Merge pull request #7 from aboutbits/typescript-strict-rules
use strict-type-checked and stylistic-type-checked for typescript
2 parents a693c0e + 565d303 commit 44df6cb

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aboutbits/eslint-config",
3-
"version": "2.4.1",
3+
"version": "3.0.0-beta.3",
44
"description": "AboutBits' ESLint config presets",
55
"author": "AboutBits",
66
"license": "MIT",

ts.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
extends: [
33
'eslint:recommended',
44
'plugin:@typescript-eslint/strict-type-checked',
5+
'plugin:@typescript-eslint/stylistic-type-checked',
56
'plugin:import/recommended',
67
'plugin:import/typescript',
78
'plugin:prettier/recommended'
@@ -25,12 +26,6 @@ module.exports = {
2526
}
2627
},
2728
overrides: [
28-
{
29-
extends: [
30-
'plugin:@typescript-eslint/recommended-requiring-type-checking'
31-
],
32-
files: ['./**/*.{ts,tsx}']
33-
},
3429
{
3530
extends: ['plugin:prettier/recommended'],
3631
files: ['./**/*.json'],
@@ -58,6 +53,10 @@ module.exports = {
5853
'allowNever': false,
5954
}
6055
],
56+
'@typescript-eslint/consistent-type-definitions': [
57+
'error',
58+
'type'
59+
],
6160
'import/order': [
6261
'error',
6362
{

0 commit comments

Comments
 (0)