Skip to content

Commit

Permalink
fix: Fixed errors after checking with the new ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilaton committed Dec 14, 2023
1 parent 48748c9 commit c848efe
Show file tree
Hide file tree
Showing 7 changed files with 1,501 additions and 163 deletions.
36 changes: 2 additions & 34 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,4 @@
import base from '@pilaton/eslint-config-base';
import { defineFlatConfig } from 'eslint-define-config';

import eslint from '@eslint/js';
import typescriptParser from '@typescript-eslint/parser';
import typescriptPlugin from '@typescript-eslint/eslint-plugin';
import globals from 'globals';

export default defineFlatConfig([
{ ignores: ['build/'] },
{
languageOptions: {
globals: {
...globals.es,
...globals.browser,
...globals.node,
},
},
},

eslint.configs.recommended,
{
files: ['src/**/*.ts'],
plugins: {
'@typescript-eslint': typescriptPlugin,
},
languageOptions: {
parser: typescriptParser,
parserOptions: {
parser: true,
},
},
rules: {
...typescriptPlugin.configs.recommended.rules,
},
},
]);
export default defineFlatConfig([{ ignores: ['build/'] }, ...base]);
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,18 @@
"scripts": {
"prebuild": "rimraf build",
"build": "rollup --config",
"check": "tsc --noEmit",
"lint": "eslint .",
"test": "c8 tsx test/index.test.ts"
},
"devDependencies": {
"@pilaton/eslint-config-base": "^0.4.2",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@types/node": "^20.10.2",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"c8": "^8.0.1",
"eslint": "^8.55.0",
"eslint-define-config": "^2.0.0",
"globals": "^13.23.0",
"rimraf": "^5.0.5",
"rollup": "^4.6.1",
"tslib": "^2.6.2",
Expand Down
Loading

0 comments on commit c848efe

Please sign in to comment.