standardnotes-app/packages/mobile/.eslintrc.js
2022-06-09 09:45:15 -05:00

28 lines
747 B
JavaScript

module.exports = {
root: true,
extends: ['@react-native-community', 'prettier', '../../node_modules/@standardnotes/config/src/.eslintrc'],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint', 'prettier'],
ignorePatterns: ['.eslintrc.js'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'no-invalid-this': 'warn',
'no-console': 'warn',
eqeqeq: ['warn', 'smart'],
'no-void': 'off',
},
},
],
rules: {
'prettier/prettier': 'warn',
},
}