Skip to content

Commit

Permalink
eslint-stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Lauer authored and Jake Lauer committed Apr 12, 2024
1 parent 7e63b89 commit c6e94de
Show file tree
Hide file tree
Showing 24 changed files with 3,713 additions and 232 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
node_modules
.husky
*.d.ts
!.examples
16 changes: 12 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
module.exports = {
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
project: ["./tsconfig.json", "./.examples/tic-tac-toe/tsconfig.json"],
ecmaVersion: 2018,
sourceType: "module",
tsconfigRootDir: "./",
},
extends: [
"eslint:recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:mocha/recommended",
"prettier",
"plugin:theseus/recommended"
],
settings: {
'import/resolver': {
node: {
paths: ["eslint-rules"]
}
}
},
plugins: ["unused-imports"],
rules: {
indent: ["error", "tab"],
quotes: [2, "double", { avoidEscape: true }],
"unused-imports/no-unused-imports": "error",
"no-async-promise-executor": "off",
"mocha/no-setup-in-describe": "off",
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-explicit-any": "off",
"mocha/no-setup-in-describe": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": [
"error",
Expand Down
3 changes: 2 additions & 1 deletion .examples/tic-tac-toe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"author": "Jake Lauer",
"license": "MIT",
"dependencies": {
"theseus-js": "workspace:latest"
"theseus-js": "workspace:latest",
"eslint-plugin-theseus": "workspace:latest"
},
"devDependencies": {
"ts-node": "10.9.2",
Expand Down
Loading

0 comments on commit c6e94de

Please sign in to comment.