Skip to content

Commit b5a8ac2

Browse files
authored
Fix 'npm run lint' (#46)
# Description <!-- A brief description of what the PR does/changes. Use active voice and present tense, e.g., This commit fixes ... --> This PR aims to fix the 'npm run lint' command, which runs `eslint .` in the background. I've added eslint configuration and fixed all warnings that persisted. # DevRev issue <!-- A DevRev issue link (https://app.devrev.ai/devrev/works/ISS-00000) or `no-work-item`. Only dependency updates don't need a work item, all others should have one. --> [#ISS-185661](https://app.devrev.ai/devrev/works/ISS-185661) # Documentation PR <!-- A link to the PR in fern-api-docs if relevant, otherwise `no-docs`. Any new feature should link to a PR in https://github.com/devrev/fern-api-docs. Dependency updates or changes to the configuration that are not user-facing do not require an update to the documentation. --> no-docs
1 parent 6140ed9 commit b5a8ac2

File tree

15 files changed

+425
-43
lines changed

15 files changed

+425
-43
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Same as the URL path for your org, e.g. app.devrev.ai/my-org
2+
DEV_ORG=my-org
3+
4+
# Your email address
5+

code/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line no-undef
12
module.exports = {
23
presets: [
34
['@babel/preset-env', { targets: { node: 'current' } }],

code/eslint.config.mts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import { defineConfig } from "eslint/config";
5+
import prettierConfig from "eslint-config-prettier";
6+
7+
export default defineConfig([
8+
{ ignores: ["dist/**", "test/**"] },
9+
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } },
10+
...tseslint.configs.recommended,
11+
prettierConfig,
12+
]);

code/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line no-undef
12
module.exports = {
23
preset: 'ts-jest',
34
testEnvironment: 'node',

0 commit comments

Comments
 (0)