|
|
@@ -10,6 +10,7 @@ module.exports = {
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
'prettier',
|
|
|
'prettier/@typescript-eslint',
|
|
|
+ 'plugin:relay/recommended',
|
|
|
],
|
|
|
settings: {
|
|
|
react: {
|
|
|
@@ -35,10 +36,12 @@ module.exports = {
|
|
|
project: './tsconfig.json',
|
|
|
},
|
|
|
},
|
|
|
- plugins: ['@typescript-eslint'],
|
|
|
+ plugins: ['relay', '@typescript-eslint'],
|
|
|
rules: {
|
|
|
// TypeScript Rules
|
|
|
'@typescript-eslint/no-explicit-any': 0,
|
|
|
+ // JavaScript rules will handle these
|
|
|
+ '@typescript-eslint/camelcase': 0,
|
|
|
|
|
|
// JavaScript Rules
|
|
|
'arrow-body-style': ['warn', 'as-needed'],
|
|
|
@@ -61,7 +64,7 @@ module.exports = {
|
|
|
'no-shadow': 1,
|
|
|
'no-trailing-spaces': 'error',
|
|
|
'no-unused-expressions': 1,
|
|
|
- 'no-unused-vars': 1,
|
|
|
+ 'no-unused-vars': 0,
|
|
|
'no-useless-rename': 'error',
|
|
|
'no-whitespace-before-property': 'error',
|
|
|
'object-curly-newline': ['error', {consistent: true}],
|