Skip to content

Commit

Permalink
Merge pull request wix#1566 from wix/infra/typescript_eslint_configur…
Browse files Browse the repository at this point in the history
…ations

Infra/ add typescript to eslint configurations
  • Loading branch information
ethanshar authored Jul 6, 2021
2 parents 1197c5a + 28a3550 commit 56d34b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ module.exports = {
describe: true
},
extends: ['eslint:recommended'],
parser: 'babel-eslint',
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
sourceType: 'module'
},
plugins: ['react', 'react-native', 'jest'],
plugins: ['react', 'react-native', 'jest', '@typescript-eslint'],
rules: {
'react-native/no-inline-styles': 1,
'linebreak-style': ['error', 'unix'],
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
"@types/react-native": "^0.63.52",
"@types/xdate": "^0.8.32",
"@welldone-software/why-did-you-render": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^2.13.0",
"@typescript-eslint/parser": "^2.13.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"detox": "^18.0.0",
Expand Down

0 comments on commit 56d34b0

Please sign in to comment.