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 2, 2024
1 parent acd00c1 commit a82db02
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 59 deletions.
21 changes: 21 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import loguxTsConfig from '@logux/eslint-config/ts'
import globals from 'globals'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{
ignores: ['test/demo/dist', '**/errors.ts']
},
...loguxTsConfig,
{
languageOptions: {
globals: globals.browser
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'camelcase': 'off',
'no-console': 'off',
'symbol-description': 'off'
}
}
]
24 changes: 2 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
},
"devDependencies": {
"@logux/core": "github:logux/core#next",
"@logux/eslint-config": "^52.0.2",
"@logux/eslint-config": "^53.0.0",
"@nanostores/preact": "^0.5.1",
"@nanostores/react": "^0.7.2",
"@nanostores/vue": "^0.10.0",
Expand All @@ -93,20 +93,13 @@
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.23",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"@vitest/coverage-v8": "^1.4.0",
"@vue/compiler-sfc": "^3.4.21",
"check-dts": "^0.7.2",
"clean-publish": "^4.3.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-perfectionist": "^2.7.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"fake-indexeddb": "^5.0.2",
"globals": "^15.0.0",
"happy-dom": "^14.3.10",
"nanospy": "^1.0.0",
"nanostores": "^0.10.2",
Expand All @@ -131,19 +124,6 @@
"singleQuote": true,
"trailingComma": "none"
},
"eslintConfig": {
"extends": "@logux/eslint-config/ts",
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"symbol-description": "off",
"no-console": "off",
"camelcase": "off"
}
},
"eslintIgnore": [
"test/demo/dist",
"**/errors.ts"
],
"size-limit": [
{
"name": "CrossTabClient",
Expand Down
124 changes: 87 additions & 37 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 a82db02

Please sign in to comment.