Skip to content

Commit

Permalink
Merge pull request #33 from funktechno/f/lint_update
Browse files Browse the repository at this point in the history
F/lint update
  • Loading branch information
lastlink authored Jul 5, 2024
2 parents 67dcc6c + 9b2c04f commit 5550989
Show file tree
Hide file tree
Showing 8 changed files with 734 additions and 968 deletions.
53 changes: 0 additions & 53 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
with:
node-version: current
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build:client:all
40 changes: 40 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.{js,mjs,cjs,ts}"],
rules: {
semi: ["error", "always"],
quotes: ["error", "double"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-useless-escape": "off",
"no-multiple-empty-lines": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-inferrable-types": [
"warn",
{
ignoreParameters: true,
},
],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/class-name-casing": "off",
},
ignores: ["lib/*", "deps/*", "dist/*", "archived"],
},
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/**/*.spec.{j,t}s?(x)"],
env: {
jest: true,
},
},
{ languageOptions: { globals: globals.browser } }
];
Loading

0 comments on commit 5550989

Please sign in to comment.