Skip to content

Commit a8d5447

Browse files
committed
Set parser:'@typescript-eslint/parser' & updated dependencies
Signed-off-by: Andy R. Wyss <[email protected]>
1 parent 7e17201 commit a8d5447

File tree

6 files changed

+694
-410
lines changed

6 files changed

+694
-410
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
engine-strict=true
2+
13
# Use default NPM registry
24
registry=https://registry.npmjs.org

index.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ module.exports = {
1111
'react-app',
1212
'plugin:import/warnings',
1313
'plugin:jsx-a11y/recommended',
14-
'prettier',
15-
'prettier/react',
16-
'prettier/@typescript-eslint',
14+
'plugin:prettier/recommended',
1715
],
16+
parser: '@typescript-eslint/parser',
1817
plugins: [
1918
'react',
2019
'react-hooks',
@@ -50,7 +49,15 @@ module.exports = {
5049
},
5150
{
5251
files: ['**/*.ts?(x)'],
53-
plugins: ['typescript-sort-keys'],
52+
extends: [
53+
'react-app',
54+
'plugin:import/warnings',
55+
'eslint:recommended',
56+
'plugin:@typescript-eslint/eslint-recommended',
57+
'plugin:@typescript-eslint/recommended',
58+
'plugin:prettier/recommended',
59+
],
60+
plugins: ['@typescript-eslint', 'typescript-sort-keys'],
5461
settings: {
5562
'import/parsers': {
5663
'@typescript-eslint/parser': ['.ts', '.tsx'],
@@ -109,7 +116,7 @@ module.exports = {
109116
],
110117
'no-unneeded-ternary': WARN,
111118
'no-var': WARN,
112-
119+
'one-var': [WARN, 'never'],
113120
'prefer-const': WARN,
114121
'prefer-rest-params': WARN,
115122
'prefer-spread': WARN,

0 commit comments

Comments
 (0)