Skip to content

Commit

Permalink
chore: add ericlint in lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kidneyweakx committed Dec 11, 2023
1 parent 540a607 commit 8bdc37a
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 10 deletions.
18 changes: 18 additions & 0 deletions packages/eslint-config/ericlint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { resolve } = require("node:path");

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

module.exports = {
extends: [
"ericlint"
].map(require.resolve),
parserOptions: {
project,
},
rules: {
"@typescript-eslint/await-thenable": "off",
"quotes": ["error", "double"],
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
}
}
7 changes: 4 additions & 3 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
"react-internal.js"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@vercel/style-guide": "^5.1.0",
"eslint-config-turbo": "^1.10.12",
"ericlint": "^1.1.12",
"eslint-config-prettier": "^9.0.0",
"eslint-config-turbo": "^1.10.12",
"eslint-plugin-only-warn": "^1.1.0",
"@typescript-eslint/parser": "^6.11.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"typescript": "^5.2.2"
}
}
Loading

0 comments on commit 8bdc37a

Please sign in to comment.