Skip to content

Commit

Permalink
chore: update deps and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
tdreyno committed Jun 1, 2024
1 parent e60553d commit 3d174ef
Show file tree
Hide file tree
Showing 18 changed files with 5,078 additions and 15,618 deletions.
27 changes: 0 additions & 27 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run test
- run: npm run test:ci
- run: npm run build
- name: Code Climate Coverage Action
uses: paambaati/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Build
run: npm run build
- name: Test
run: npm run test
run: npm run test:ci
- name: Test NPM
run: npm run test:npm
- name: Release
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.14.0
2 changes: 1 addition & 1 deletion commitlint.config.cjs → commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
extends: ["@commitlint/config-conventional"],
rules: {
"body-max-line-length": [0],
Expand Down
41 changes: 41 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// @ts-check

import eslint from "@eslint/js"
import tseslint from "typescript-eslint"
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"

export default tseslint.config(
{
ignores: [
"dist/*",
"test-npm-version/*",
"svelte.config.js",
"jest.config.js",
"eslint.config.js",
"commitlint.config.js",
],
},
eslint.configs.recommended,
eslintPluginPrettierRecommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
rules: {
"@typescript-eslint/consistent-indexed-object-style": 0,
"@typescript-eslint/consistent-type-definitions": 0,
"@typescript-eslint/array-type": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/require-await": 0,
semi: ["error", "never"],
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
},
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
)
2 changes: 1 addition & 1 deletion jest.config.cjs → jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html

module.exports = {
export default {
// All imported modules in your tests should be mocked automatically
// automock: false,

Expand Down
Loading

0 comments on commit 3d174ef

Please sign in to comment.