@mediatool/eslint-config-mediatool 1.1.2 → 1.1.4

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
@@ -77,7 +77,6 @@ const javascriptRules = {
77
77
 
78
78
  const typescriptRules = {
79
79
  ...javascriptRules,
80
- '@typescript-eslint/semi': [ 'error', 'never' ],
81
80
  '@typescript-eslint/comma-dangle': [
82
81
  'error',
83
82
  {
@@ -89,6 +88,9 @@ const typescriptRules = {
89
88
  },
90
89
  ],
91
90
  'import/prefer-default-export': 0,
91
+ 'no-unused-vars': 'off',
92
+ '@typescript-eslint/no-unused-vars': [ 'error' ],
93
+ '@typescript-eslint/semi': [ 'error', 'never' ],
92
94
  '@typescript-eslint/space-before-function-paren': [ 'error', 'always' ],
93
95
  '@typescript-eslint/no-use-before-define': [ 'error' ],
94
96
  '@typescript-eslint/member-delimiter-style': [
@@ -136,15 +138,10 @@ module.exports = {
136
138
  },
137
139
  {
138
140
  files: [ '*.ts', '*.tsx' ],
139
- extends: [ 'airbnb', 'airbnb-typescript' ],
140
141
  plugins: [ '@typescript-eslint' ],
141
142
  parser: '@typescript-eslint/parser',
142
143
  parserOptions: {
143
- project: './tsconfig.json',
144
- sourceType: 'module',
145
- ecmaFeatures: {
146
- jsx: true,
147
- },
144
+ jsx: true,
148
145
  },
149
146
  rules: typescriptRules,
150
147
  },
@@ -166,32 +163,5 @@ module.exports = {
166
163
  'prefer-arrow-callback': 'off',
167
164
  },
168
165
  },
169
- {
170
- files: [ '**/*.ts', '**/*.tsx' ],
171
- parser: '@typescript-eslint/parser',
172
- parserOptions: {
173
- jsx: true,
174
- },
175
- plugins: [ '@typescript-eslint' ],
176
- rules: {
177
- 'react/jsx-filename-extension': [ 1, { extensions: [ '.ts', '.tsx' ] } ],
178
- 'import/no-unresolved': 0,
179
- 'no-use-before-define': 0,
180
- 'import/prefer-default-export': 0,
181
- 'no-unused-vars': 0,
182
- 'react/no-unused-prop-types': 0,
183
- 'react/require-default-props': 0,
184
- '@typescript-eslint/no-unused-vars': 0,
185
- '@typescript-eslint/no-use-before-define': [ 'error' ],
186
- semi: [ 'error', 'never' ],
187
- },
188
- settings: {
189
- 'import/resolver': {
190
- node: {
191
- extensions: [ '.ts', '.tsx' ],
192
- },
193
- },
194
- },
195
- },
196
166
  ],
197
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediatool/eslint-config-mediatool",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "main": ".eslintrc.js",
5
5
  "scripts": {
6
6
  "pretest": "yarn",
package/typescript.ts ADDED
@@ -0,0 +1,6 @@
1
+ export interface Product {
2
+ name: string
3
+ color: string
4
+ }
5
+
6
+ export const a: string = 'hej'