Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions .xo-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ module.exports = {
'__filebasename'
],
rules: {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
'no-alert': 'off',
'no-void': 'off',
'react/function-component-definition': [
Expand All @@ -22,7 +18,6 @@ module.exports = {
namedComponents: 'function-declaration'
}
],
'react/jsx-first-prop-new-line': 'error',
'react/jsx-key': 'off',
'import/order': [
'error',
Expand All @@ -38,23 +33,20 @@ module.exports = {
],
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-anonymous-default-export': 'error',
'import/no-commonjs': 'error',
'import/no-named-default': 'error',
'import/no-unassigned-import': 'off',
'import/prefer-default-export': 'error',
'import/extensions': [
'error',
'never',
{
svg: 'always'
}
],
'unicorn/no-fn-reference-in-iterator': 'off'

// Temporarily disabled
// TODO: Need to decide what to do with this rule. Either keep it disabled here or remove it from XO.
'@typescript-eslint/no-invalid-void-type': 'off', // Reason: https://github.com/sindresorhus/refined-github/pull/3168#discussion_r434479434
'unicorn/no-fn-reference-in-iterator': 'off',
'unicorn/no-reduce': 'off' // TODO: Remove `reduce` usage.
},
// We don't use React, so it can't be automatically detected by the linter
settings: {
react: {
version: '16.3'
version: '16.13'
}
}
};
Loading