@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 +4 -34
- package/package.json +1 -1
- package/typescript.ts +6 -0
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
|
-
|
|
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