-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2423 from Lumieducation/master
Release next version
- Loading branch information
Showing
51 changed files
with
23,216 additions
and
20,231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
test/data | ||
build | ||
reporter-client/build | ||
/*.js | ||
builder-configs | ||
/h5p | ||
/dist | ||
/scorm-client | ||
/scripts | ||
/test | ||
/server/__mocks__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
root: true, | ||
extends: [ | ||
//'eslint:recommended', | ||
//'plugin:@typescript-eslint/recommended', | ||
'airbnb-typescript', | ||
'prettier' | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: path.join(__dirname, 'tsconfig.json'), | ||
sourceType: 'module' | ||
}, | ||
plugins: ['prettier', '@typescript-eslint', 'import', 'react'], | ||
rules: { | ||
'no-script-url': 0, | ||
'no-restricted-syntax': 0, | ||
'@typescript-eslint/lines-between-class-members': 0, | ||
'no-await-in-loop': 1, | ||
'@typescript-eslint/no-loop-func': 0, | ||
'no-return-assign': 1, | ||
'import/prefer-default-export': 0, // TODO: change to 1 later | ||
'@typescript-eslint/no-unused-vars': 1, | ||
'class-methods-use-this': 1, | ||
'no-param-reassign': 1, | ||
'no-nested-ternary': 1, | ||
'no-continue': 0, | ||
'no-case-declarations': 0, | ||
'prettier/prettier': 'error', | ||
'@typescript-eslint/typedef': [ | ||
'error', | ||
{ | ||
parameter: true, | ||
propertyDeclaration: true, | ||
memberVariableDeclaration: true, | ||
variableDeclarationIgnoreFunction: true | ||
} | ||
], | ||
'@typescript-eslint/explicit-module-boundary-types': [ | ||
'error', | ||
{ | ||
allowArgumentsExplicitlyTypedAsAny: true, | ||
allowHigherOrderFunctions: true, | ||
allowTypedFunctionExpressions: true | ||
} | ||
], | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
'error', | ||
{ | ||
allowExpressions: true | ||
} | ||
], | ||
'@typescript-eslint/member-ordering': [ | ||
'error', | ||
{ | ||
default: [ | ||
'public-constructor', | ||
'private-constructor', | ||
'public-static-field', | ||
'private-static-field', | ||
'public-instance-field', | ||
'private-instance-field', | ||
'public-static-method', | ||
'private-static-method', | ||
'public-instance-method', | ||
'private-instance-method' | ||
] | ||
} | ||
], | ||
'class-methods-use-this': 0 | ||
}, | ||
settings: { | ||
react: { | ||
version: '17.0' | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.