Skip to content

Commit

Permalink
[eslint] Check for possible ESM compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Oct 12, 2023
1 parent f8e25b4 commit 097ced3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ module.exports = {
quotes: ["error", "double"],
"max-len": ["error", 130],
"import/extensions": ["error", "never"],
"import/no-commonjs": ["error", { allowRequire: false, allowPrimitiveModules: false }],
"import/no-extraneous-dependencies": [
"error",
{ devDependencies: true, optionalDependencies: true, peerDependencies: true },
],
"import/no-useless-path-segments": ["error", { noUselessIndex: true }],
"max-classes-per-file": ["error", 10],
"import/prefer-default-export": "off",
"object-curly-newline": "off",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"_build:types": "tsup src/types/index.ts --dts --out-dir dist/types",
"_fmt": "prettier 'src/**/*.ts' 'tests/**/*.ts' 'examples/**/*.js' '.eslintrc.js'",
"fmt": "pnpm _fmt --write",
"lint": "eslint '**/*.ts'",
"lint": "eslint 'src/**/*.ts'",
"test": "pnpm jest",
"unit-test": "pnpm jest tests/unit",
"e2e-test": "pnpm jest tests/e2e",
Expand Down

0 comments on commit 097ced3

Please sign in to comment.