Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

23 changes: 0 additions & 23 deletions .eslintrc.json

This file was deleted.

59 changes: 59 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { FlatCompat } from '@eslint/eslintrc';
import js from '@eslint/js';
import jest from 'eslint-plugin-jest';
import prettier from 'eslint-plugin-prettier';
import globals from 'globals';
import neostandard from 'neostandard';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
const neostandardConfig = neostandard({ semi: true, noStyle: true });

export default [
{
ignores: ['**/build', '**/dist', '**/.docz', '**/.github', '**/node_modules'],
},
...neostandardConfig,
...compat.extends('plugin:jest/recommended', 'prettier', 'plugin:prettier/recommended'),
{
plugins: {
prettier,
jest,
},

languageOptions: {
globals: {
...globals.browser,
...jest.environments.globals.globals,
...globals.es2021,
},

ecmaVersion: 12,
sourceType: 'module',
},

rules: {
'no-constant-binary-expression': 'error',
semi: [2, 'always'],

'max-len': [
'error',
{
code: 120,
},
],
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
},
},
];
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,29 @@
"fs": false
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.2",
"@babel/core": "^7.25.9",
"@babel/preset-env": "^7.25.9",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.13.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-image": "^3.0.3",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-node-resolve": "^15.3.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"eslint": "^8.57.0",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-n": "^17.11.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-promise": "^7.1.0",
"globals": "^15.11.0",
"jest": "^29.7.0",
"postcss": "^8.4.40",
"neostandard": "^0.11.6",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"rollup": "^4.19.1",
"rollup": "^4.24.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-visualizer": "^5.12.0",
Expand All @@ -52,11 +55,11 @@
"dependencies": {
"@azure/msal-browser": "^3.20.0",
"csv-string": "^4.1.1",
"date-fns": "^2.30.0",
"date-fns": "^4.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this change of date-fns from v2 to v4 might be a breaking change for our components, we should probably include this update in the next major release

"js-file-download": "^0.4.12",
"rfdc": "^1.4.1",
"validator": "^13.12.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
},
"packageManager": "[email protected]"
}
10 changes: 6 additions & 4 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import image from '@rollup/plugin-image';
import resolve from '@rollup/plugin-node-resolve';
import { readFileSync } from 'fs';
import external from 'rollup-plugin-peer-deps-external';
import postcss from 'rollup-plugin-postcss';
import resolve from '@rollup/plugin-node-resolve';
import image from '@rollup/plugin-image';
import { visualizer } from 'rollup-plugin-visualizer';
import pkg from './package.json' assert { type: 'json' };

const pkg = JSON.parse(readFileSync('./package.json'));

export default {
input: './src/index.js',
Expand All @@ -27,7 +29,7 @@ export default {
babelHelpers: 'bundled',
}),
resolve(),
commonjs(),
commonjs({ strictRequires: 'auto' }),
image(),
visualizer(),
],
Expand Down
Loading