Skip to content

Commit

Permalink
Add library eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Nov 26, 2024
1 parent 310a1a8 commit 123ed75
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
32 changes: 32 additions & 0 deletions packages/eslint-condig/library.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const { resolve } = require("node:path");

const project = resolve(process.cwd(), "tsconfig.json");

/*
* This is a custom ESLint configuration for use with
* typescript packages.
*
* This config extends the Vercel Engineering Style Guide.
* For more information, see https://github.com/vercel/style-guide
*
*/

module.exports = {
extends: ["@vercel/style-guide/eslint/node", "@vercel/style-guide/eslint/typescript"].map(require.resolve),
parserOptions: {
project,
},
plugins: ["only-warn"],
globals: {
React: true,
JSX: true,
},
settings: {
"import/resolver": {
typescript: {
project,
},
},
},
ignorePatterns: ["node_modules/", "dist/"],
};
5 changes: 1 addition & 4 deletions packages/typescript-condig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
"name": "@helixbridge/tsconfig",
"version": "0.0.0",
"private": true,
"license": "MIT",
"publishConfig": {
"access": "public"
}
"license": "MIT"
}

0 comments on commit 123ed75

Please sign in to comment.