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 24, 2024
1 parent 938875d commit 7fb5cd8
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 77 deletions.
22 changes: 22 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import loguxTsConfig from '@logux/eslint-config/ts'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{ ignores: ['**/errors.ts'] },
...loguxTsConfig,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/unified-signatures': 'off',
'camelcase': 'off',
'consistent-return': 'off',
'symbol-description': 'off'
}
},
{
files: ['deprecated/index.js'],
rules: {
'no-console': 'off'
}
}
]
25 changes: 2 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
],
"devDependencies": {
"@logux/eslint-config": "^52.0.2",
"@logux/eslint-config": "^53.0.1",
"@sinonjs/fake-timers": "^11.2.2",
"@size-limit/preset-small-lib": "^11.1.2",
"@types/node": "^20.12.7",
Expand All @@ -55,7 +55,7 @@
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-n": "^17.3.1",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
Expand Down Expand Up @@ -86,27 +86,6 @@
"skip-full": true,
"clean": true
},
"eslintConfig": {
"extends": "@logux/eslint-config/ts",
"rules": {
"@typescript-eslint/unified-signatures": "off",
"@typescript-eslint/no-explicit-any": "off",
"symbol-description": "off",
"consistent-return": "off",
"camelcase": "off"
},
"overrides": [
{
"files": "deprecated/index.js",
"rules": {
"no-console": "off"
}
}
]
},
"eslintIgnore": [
"**/errors.ts"
],
"size-limit": [
{
"name": "Atom",
Expand Down
Loading

0 comments on commit 7fb5cd8

Please sign in to comment.