@mediatool/eslint-config-mediatool 1.0.1 → 1.0.2

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.
package/.eslintrc.js CHANGED
@@ -34,6 +34,7 @@ const javascriptRules = {
34
34
  ],
35
35
  },
36
36
  ],
37
+ 'import/prefer-default-export': 'off',
37
38
  'jsx-a11y/anchor-is-valid': 'off',
38
39
  'jsx-a11y/click-events-have-key-events': 'off', // Consider enabling later
39
40
  'jsx-a11y/interactive-supports-focus': 'off', // Consider enabling later
@@ -147,5 +148,32 @@ module.exports = {
147
148
  'no-console': 'off',
148
149
  },
149
150
  },
151
+ {
152
+ files: [ '**/*.ts', '**/*.tsx' ],
153
+ parser: '@typescript-eslint/parser',
154
+ parserOptions: {
155
+ jsx: true,
156
+ },
157
+ plugins: [ '@typescript-eslint' ],
158
+ rules: {
159
+ 'react/jsx-filename-extension': [ 1, { extensions: [ '.ts', '.tsx' ] } ],
160
+ 'import/no-unresolved': 0,
161
+ 'no-use-before-define': 0,
162
+ 'import/prefer-default-export': 0,
163
+ 'no-unused-vars': 0,
164
+ 'react/no-unused-prop-types': 0,
165
+ 'react/require-default-props': 0,
166
+ '@typescript-eslint/no-unused-vars': 0,
167
+ '@typescript-eslint/no-use-before-define': [ 'error' ],
168
+ semi: [ 'error', 'never' ],
169
+ },
170
+ settings: {
171
+ 'import/resolver': {
172
+ node: {
173
+ extensions: [ '.ts', '.tsx' ],
174
+ },
175
+ },
176
+ },
177
+ },
150
178
  ],
151
179
  }
@@ -0,0 +1 @@
1
+ export const foo = 'bar'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediatool/eslint-config-mediatool",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": ".eslintrc.js",
5
5
  "scripts": {
6
6
  "pretest": "yarn",