Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
dompuiu committed Aug 22, 2024
1 parent 7bf84f8 commit 2285588
Show file tree
Hide file tree
Showing 11 changed files with 4,971 additions and 3,285 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

46 changes: 0 additions & 46 deletions .eslintrc

This file was deleted.

12 changes: 6 additions & 6 deletions coreModulePackages/loadScript/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ describe('loadScript', function () {
});

it('should fulfill with script element when the script is loaded', function (done) {
loadScript('/base/coreModulePackages/loadScript/empty.js').then(function (
script
) {
expect(script).toEqual(jasmine.any(HTMLScriptElement));
done();
});
loadScript('/base/coreModulePackages/loadScript/empty.js').then(
function (script) {
expect(script).toEqual(jasmine.any(HTMLScriptElement));
done();
}
);
});

it('should reject with error when script fails to load', function (done) {
Expand Down
56 changes: 56 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import js from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';

export default [
js.configs.recommended,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
_satellite: true,
...globals.browser,
...globals.jasmine,
...globals.node
}
}
},
{
rules: {
camelcase: [2, { properties: 'always' }],
indent: [2, 2, { SwitchCase: 1 }], // 2 spaces indentation
semi: [2, 'always'],
'keyword-spacing': [2],
'space-before-function-paren': [
2,
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}
],
'space-before-blocks': [2, 'always'],
'space-infix-ops': [2, { int32Hint: false }],
quotes: [1, 'single', 'avoid-escape'],
'max-len': [
2,
100,
4,
{
ignoreUrls: true,
ignorePattern:
'^(\\s*(var|let|const)\\s.+=\\s*require\\s*\\()|(^\\s*import)'
}
],
eqeqeq: [2, 'allow-null'],
strict: [0, 'safe'],
'no-nested-ternary': [2],
'no-underscore-dangle': 0,
'comma-style': [2],
'one-var': [2, 'never'],
'brace-style': [2, '1tbs', { allowSingleLine: true }],
'consistent-this': [0, 'self'],
'no-prototype-builtins': 0
}
}
];
Loading

0 comments on commit 2285588

Please sign in to comment.