Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Commit 173b647

Browse files
committed
Initial commit
0 parents  commit 173b647

24 files changed

+5646
-0
lines changed

.babelrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env"
5+
]
6+
]
7+
}

.env

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
RUN=true
2+
3+
TRANSLATE_API_BASE_URL=https://libretranslate.de
4+
FILE_PREVSTATE=files/prevState.json
5+
FILE_ADDKEYS=files/addKeys.json
6+
FILE_NEXTSTATE=files/nextState.json
7+
8+
SOURCE_LNG=en
9+
TARGET_LNG=fr
10+
11+
DEBUG=true
12+
AUTOTRANSLATE=
13+
NESTED_JSON=

.eslintrc.cjs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
es6: true,
5+
node: true,
6+
mocha: true
7+
},
8+
extends: ['plugin:import/recommended', 'airbnb-base'],
9+
plugins: ['mocha'],
10+
parserOptions: {
11+
ecmaVersion: 2021,
12+
sourceType: 'module',
13+
},
14+
rules: {
15+
curly: ['error', 'all'],
16+
'consistent-this': ['error', 'self'],
17+
'linebreak-style': 'off', // Doesn't play nicely with Windows
18+
quotes: ['error', 'single', { allowTemplateLiterals: true }],
19+
'prefer-destructuring': 'off', // Destructuring harm grep potential.
20+
'import/no-extraneous-dependencies': 'off',
21+
'import/no-named-as-default': 'off',
22+
'import/no-unresolved': [0],
23+
'import/namespace': ['error', { allowComputed: true }],
24+
'object-curly-newline': 'off',
25+
},
26+
overrides: [
27+
{
28+
files: [
29+
'**/test-utils/**/*.js',
30+
// matching the pattern of the test runner
31+
'*.test.js',
32+
'*.int-test.js',
33+
],
34+
env: {
35+
node: true,
36+
mocha: true,
37+
},
38+
rules: {
39+
// does not work with wildcard imports. Mistakes will throw at runtime anyway
40+
'import/named': 0,
41+
// for expect style assertions
42+
'no-unused-expressions': 'off',
43+
"import/extensions": 0,
44+
},
45+
},
46+
{
47+
files: ['**/*.md'],
48+
rules: {
49+
'no-console': 'off',
50+
'no-unused-expressions': 'off',
51+
},
52+
},
53+
],
54+
};

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Run Tests"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [ 'javascript' ]
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v2
26+
with:
27+
node-version: '14'
28+
cache: 'yarn'
29+
- run: yarn install
30+
- run: yarn test

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
lib
3+
/files/
4+
.env.local
5+
in.txt.local
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
error.log

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/translation-generator.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)