Skip to content

Commit

Permalink
add devel dependency: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
slivingston committed Dec 4, 2024
1 parent 05cbe01 commit 3efdfb2
Show file tree
Hide file tree
Showing 3 changed files with 639 additions and 9 deletions.
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';

/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: [
'src/**/*.ts',
],
rules: {
'no-trailing-spaces': 'error',
},
},
{
languageOptions: {
globals: globals.browser,
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"pub": "test -f lib/index.js && yarn publish",
"clean": "rm -r -f lib",
"format": "yarn prettier --write src",
"format:check": "yarn prettier --check src"
"format:check": "yarn prettier --check src",
"lint": "eslint src && tsc --noEmit"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -23,9 +24,13 @@
"yarn.lock"
],
"devDependencies": {
"@eslint/js": "^9.16.0",
"eslint": "^9.16.0",
"globals": "^15.13.0",
"prettier": "^3.3.3",
"ts-loader": "^9.5.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0",
"webpack": "^5.97.0",
"webpack-cli": "^5.1.4"
},
Expand Down
Loading

0 comments on commit 3efdfb2

Please sign in to comment.