* Install lingui eslint plugin, ignore compiled files * Add lingui step to Lint workflow * Run check in other job * Add compile step to web build * Temp: add a new string to test with * Add message * Revert "Temp: add a new string to test with" This reverts commit ef5459d00c3ea9798279e000a5ac43effc117486. * Un-track compiled files * Add check scripts to package.json, build step * Make sure to compile translations prior to test/typecheck * Rename scripts
34 lines
731 B
JavaScript
34 lines
731 B
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: [
|
|
'@react-native-community',
|
|
'plugin:react/recommended',
|
|
'plugin:react-native-a11y/ios',
|
|
'prettier',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint', 'detox', 'react', 'lingui'],
|
|
rules: {
|
|
'react/no-unescaped-entities': 0,
|
|
'react-native/no-inline-styles': 0,
|
|
},
|
|
ignorePatterns: [
|
|
'**/__mocks__/*.ts',
|
|
'src/platform/polyfills.ts',
|
|
'src/third-party',
|
|
'ios',
|
|
'android',
|
|
'coverage',
|
|
'*.lock',
|
|
'.husky',
|
|
'patches',
|
|
'bskyweb',
|
|
'*.html',
|
|
'bskyweb',
|
|
'src/locale/locales/_build/',
|
|
'src/locale/locales/**/*.js',
|
|
],
|
|
settings: {
|
|
componentWrapperFunctions: ['observer'],
|
|
},
|
|
}
|