Skip to content

Commit

Permalink
Move to flat ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Apr 7, 2024
1 parent d40c8e6 commit df9bb34
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 60 deletions.
13 changes: 13 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import loguxConfig from '@logux/eslint-config'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{ ignores: ['test/demo/build', 'nanoid.js', '**/errors.ts'] },
...loguxConfig,
{
rules: {
'func-style': 'off',
'yoda': 'off'
}
}
]
22 changes: 1 addition & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"types": "./index.d.ts",
"devDependencies": {
"@babel/core": "^7.24.4",
"@logux/eslint-config": "^52.0.2",
"@logux/eslint-config": "^53.0.0",
"@lukeed/uuid": "^2.0.1",
"@napi-rs/uuid": "^0.2.2",
"@originjs/vite-plugin-commonjs": "^1.0.3",
Expand All @@ -60,13 +60,6 @@
"c8": "^9.1.0",
"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",
"picocolors": "^1.0.0",
"rndm": "^1.2.0",
"secure-random-string": "^1.1.3",
Expand Down Expand Up @@ -107,19 +100,6 @@
"limit": "53 B"
}
],
"eslintConfig": {
"extends": "@logux/eslint-config",
"rules": {
"consistent-return": "off",
"func-style": "off",
"yoda": "off"
}
},
"eslintIgnore": [
"test/demo/build",
"nanoid.js",
"**/errors.ts"
],
"prettier": {
"arrowParens": "avoid",
"jsxSingleQuote": false,
Expand Down
Loading

0 comments on commit df9bb34

Please sign in to comment.