Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Nov 18, 2024
1 parent 8408565 commit a1d146f
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 36 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .eslintrc.js

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';

export default [
{
ignores: [
'.*',
'dist/**',
'node_modules/**',
'*.config.js'
]
},
{
files: ['**/*.{js,mjs,cjs,ts}']
},
{
languageOptions: { globals: globals.browser }
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
77 changes: 55 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,18 @@
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"del-cli": "^6.0.0",
"eslint": "^9.14.0",
"eslint": "9.14.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"rollup": "^4.24.4",
"ts-jest": "^29.2.5",
"tslib": "^2.8.1",
"typescript": "^5.6.3"
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0"
},
"scripts": {
"clean": "del dist/*",
"test": "eslint --ext .ts . && jest .",
"test": "eslint -c eslint.config.mjs . && jest .",
"build": "npm run clean; rollup --config rollup.config.mjs",
"build:manual-test": "rollup manual-test/manual-test.ts --config rollup.config.js --file manual-test/manual-test.js --format umd"
}
Expand Down

0 comments on commit a1d146f

Please sign in to comment.