Skip to content

Commit

Permalink
Update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Schascha committed Oct 7, 2024
1 parent e18e45e commit b53be2d
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 10 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
9 changes: 8 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ const globals = require('globals');
const jest = require('eslint-plugin-jest');
const js = require('@eslint/js');
const schascha = require('@schascha/eslint-config');
const tseslint = require('typescript-eslint');

module.exports = [
js.configs.recommended,
jest.configs['flat/recommended'],
...tseslint.configs.recommended,
{
ignores: ['node_modules/**', 'coverage/**'],
ignores: ['node_modules/**', 'coverage/**', 'dist/**'],
},
{
languageOptions: {
Expand All @@ -20,6 +22,11 @@ module.exports = [
},
rules: {
...schascha.rules,
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-unsafe-function-type": ["off"],
"@typescript-eslint/no-unused-expressions": ["off"],
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/no-require-imports": ["off"],
},
},
];
188 changes: 181 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"main": "index.js",
"keywords": [
"javascript",
"es6",
"typescript",
"utils"
],
"scripts": {
"start": "tsc -w",
"lint": "eslint && prettier . --check",
"lint": "eslint . && prettier . --check",
"format": "prettier . --write && eslint --fix",
"test": "jest src/ --coverage --verbose"
},
Expand Down

0 comments on commit b53be2d

Please sign in to comment.