Files
tasknote/client/eslint.config.mjs
T
rmcamposandGitHub 44d3fb23aa feat: Add Brazilian Portuguese and Spanish languages (#132)
* feat: add languages - wip

issue #90

based on article https://dev.to/franklin030601/building-a-multi-language-app-with-react-js-2och

* feat: translate landing, login and register pages

issue #90

* feat: translate all the external texts and messages

issue #90

* feat: add new automations scripts and remove old ones

* feat: add server build info on actuator health page

* feat: language handling for all external pages

issue #90

* feat: start translation at the home page - wip

issue #90

* feat: improve automation to run services on docker

* feat: more automations for the client this time

* feat: translate finished for the home page

issue #90

* feat: translate about page, header and footer

issue #90

* feat: translate task page

issue #90

* feat: translate notes

issue #90

* feat: increase token expiration to one week

* test: fix test cases

* ci: remove client docker image from workflow

* feat: improve reliability

* chore: reduce duplications

* feat: fix lint issues

thansk to https://dev.to/aolyang/eslint-9-flat-config-tutorial-2bm5

* fix: path when login or register
2024-11-01 15:25:57 -03:00

63 lines
1.3 KiB
JavaScript

import globals from 'globals';
import { fixupConfigRules } from '@eslint/compat';
import jsLint from '@eslint/js';
import tsLint from 'typescript-eslint';
import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js';
import stylistic from '@stylistic/eslint-plugin';
export default [
{
files: ['**/*.{ts,tsx}']
},
{
languageOptions: {
// common parser options, enable TypeScript and JSX
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module'
}
}
},
{
ignores: [
'**/__test__/*',
'**/assets/*',
'**/*.scss',
'**/*.css',
'**/*.svg'
]
},
{
languageOptions: {
globals: { ...globals.browser, ...globals.node }
}
},
{
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', ',ts', '.tsx']
}
},
'react': {
pragma: 'React',
fragment: 'Fragment',
version: '18.3'
}
}
},
// syntax rules
jsLint.configs.recommended,
...tsLint.configs.recommended,
...fixupConfigRules(pluginReactConfig),
// code style rules
stylistic.configs['disable-legacy'],
stylistic.configs.customize({
indent: 2,
quotes: 'single',
semi: true,
commaDangle: 'never',
jsx: true
})
];