mirror of
https://github.com/hanzoai/Detox.git
synced 2026-10-30 14:46:00 +00:00
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: [
|
|
'@react-native',
|
|
],
|
|
plugins: [
|
|
'unicorn',
|
|
],
|
|
rules: {
|
|
'unicorn/expiring-todo-comments': ['warn',
|
|
{
|
|
allowWarningComments: false,
|
|
}
|
|
],
|
|
|
|
// disabled due to styling conflicts between eslint and prettier
|
|
'prettier/prettier': 0,
|
|
|
|
'@typescript-eslint/no-unused-vars': ['error', {argsIgnorePattern: '^_'}],
|
|
|
|
// TODO: enable these rules gradually
|
|
'comma-dangle': 0,
|
|
'curly': 0,
|
|
'eol-last': 0,
|
|
'eqeqeq': 0,
|
|
'jsx-quotes': 0,
|
|
'keyword-spacing': 0,
|
|
'no-sequences': 0,
|
|
'no-trailing-spaces': 0,
|
|
'no-useless-escape': 0,
|
|
'quotes': 0,
|
|
'react-native/no-inline-styles': 0,
|
|
'react/no-did-mount-set-state': 0,
|
|
'react/self-closing-comp': 0,
|
|
'semi': 0,
|
|
'semi-spacing': 0,
|
|
'space-infix-ops': 0,
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.js', '*.ts'],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
rules: {
|
|
'no-unused-vars': 'off',
|
|
'no-undef': 'off',
|
|
'jest/no-disabled-tests': 'warn',
|
|
},
|
|
},
|
|
],
|
|
};
|