From edc9ac272c57312289e8fd0c73aa599d3c6b0a11 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 1 Dec 2023 11:14:10 -0600 Subject: Add Lingui check to CI (#2058) * 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 --- .eslintrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index bc4a2a394..18802cdf1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,7 +7,7 @@ module.exports = { 'prettier', ], parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint', 'detox', 'react'], + plugins: ['@typescript-eslint', 'detox', 'react', 'lingui'], rules: { 'react/no-unescaped-entities': 0, 'react-native/no-inline-styles': 0, @@ -25,6 +25,8 @@ module.exports = { 'bskyweb', '*.html', 'bskyweb', + 'src/locale/locales/_build/', + 'src/locale/locales/**/*.js', ], settings: { componentWrapperFunctions: ['observer'], -- cgit 1.4.1