Skip to content

Commit 9cb9411

Browse files
authored
Merge branch 'wix:master' into master
2 parents 55edf25 + 9a6bc36 commit 9cb9411

File tree

126 files changed

+5725
-3574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+5725
-3574
lines changed

.eslintrc.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,26 @@ module.exports = {
99
it: true,
1010
describe: true
1111
},
12-
extends: ['eslint:recommended'],
13-
parser: 'babel-eslint',
12+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
13+
parser: '@typescript-eslint/parser',
1414
parserOptions: {
1515
ecmaFeatures: {
1616
experimentalObjectRestSpread: true,
1717
jsx: true
1818
},
1919
sourceType: 'module'
2020
},
21-
plugins: ['react', 'jest'],
21+
plugins: ['react', 'react-native', 'jest', '@typescript-eslint'],
2222
rules: {
23+
'react-native/no-inline-styles': 1,
2324
'linebreak-style': ['error', 'unix'],
24-
'no-unused-vars': 2,
25+
'no-unused-vars': 1,
2526
'object-curly-spacing': ['error', 'never'],
2627
semi: ['error', 'always'],
2728
'react/jsx-uses-react': 2,
28-
'react/jsx-uses-vars': 2
29+
'react/jsx-uses-vars': 2,
30+
'@typescript-eslint/no-use-before-define': 0,
31+
'@typescript-eslint/no-var-requires': 0,
32+
'@typescript-eslint/explicit-function-return-type': 0
2933
}
3034
};

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,9 @@ demo/
256256
# eslint-rules/
257257
scripts/
258258

259+
# Typescript
260+
# ignore the .ts files
261+
*.ts
262+
*.tsx
263+
# include the .d.ts files
264+
!*.d.ts

0 commit comments

Comments
 (0)