Skip to content

Commit

Permalink
Move to ESLint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Apr 9, 2024
1 parent ee9ef1b commit 34e598b
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 102 deletions.
16 changes: 16 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import loguxTsConfig from '@logux/eslint-config/ts'
import globals from 'globals'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{ ignores: ['**/errors.ts'] },
...loguxTsConfig,
{
languageOptions: {
globals: globals.browser
},
rules: {
'@typescript-eslint/no-explicit-any': 'off'
}
}
]
22 changes: 2 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,16 @@
"nanostores": "^0.9.0 || ^0.10.0"
},
"devDependencies": {
"@logux/eslint-config": "^52.0.2",
"@logux/eslint-config": "^53.0.1",
"@size-limit/preset-small-lib": "^11.1.2",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.12.6",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"better-node-test": "^0.5.1",
"c8": "^9.1.0",
"check-dts": "^0.7.2",
"clean-publish": "^4.4.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.8.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"globals": "^15.0.0",
"jsdom": "^24.0.0",
"nanostores": "^0.10.3",
"size-limit": "^11.1.2",
Expand Down Expand Up @@ -87,16 +79,6 @@
"skip-full": true,
"clean": true
},
"eslintConfig": {
"extends": "@logux/eslint-config/ts",
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"consistent-return": "off"
}
},
"eslintIgnore": [
"**/errors.ts"
],
"size-limit": [
{
"name": "Router",
Expand Down
197 changes: 115 additions & 82 deletions pnpm-lock.yaml

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

0 comments on commit 34e598b

Please sign in to comment.