Skip to content

Commit

Permalink
Update dependency eslint to v9 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Apr 15, 2024
1 parent 10cf923 commit d5b9142
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 265 deletions.
16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

34 changes: 34 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import globals from 'globals';

import prettier from 'eslint-config-prettier';
import tsEsLint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';

export default [
{
files: ['src/**/*.ts'],
languageOptions: {
globals: {
...globals.node
},
parser: tsParser,
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
}
},
plugins: {
prettier,
tsEsLint
},
ignores: ['demo/**/*'],
rules: {
'no-console': 'error'
},
settings: {
react: {
version: 'detect'
}
}
}
];
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
},
"license": "MIT",
"author": "Atanas Atanasov <[email protected]> (https://atanas.info)",
"contributors": [
{
"name": "Alexander Panayotov",
"email": "[email protected]"
}
],
"funding": "https://github.com/sponsors/scriptex",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -37,15 +31,15 @@
"minify": "./bin/minify.sh dist",
"clean": "rm -rf dist && rm -rf demo/dist",
"build": "yarn clean && yarn generate && yarn tsc && yarn prettier && yarn minify && yarn copy",
"lint": "eslint 'src/**/*.ts'",
"lint": "eslint",
"copy": "cp -r dist demo/dist"
},
"dependencies": {},
"devDependencies": {
"@types/node": "20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"eslint": "8.57.0",
"eslint": "9.0.0",
"eslint-config-prettier": "9.1.0",
"prettier": "3.2.5",
"terser": "5.30.3",
Expand Down
Loading

0 comments on commit d5b9142

Please sign in to comment.