Skip to content

Commit

Permalink
Update ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jun 16, 2024
1 parent f8d039e commit 46f586b
Show file tree
Hide file tree
Showing 3 changed files with 820 additions and 709 deletions.
28 changes: 28 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import loguxConfig from '@logux/eslint-config'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{ ignores: ['data/', 'dist/'] },
...loguxConfig,
{
rules: {
'camelcase': 'off',
'n/global-require': 'off',
'perfectionist/sort-objects': 'off'
}
},
{
files: ['dist/**/*.js'],
rules: {
'node-import/prefer-node-protocol': 'off',
'prefer-exponentiation-operator': 'off'
}
},
{
files: ['src/**/*.js', '*.js'],
rules: {
'n/no-unsupported-features/node-builtins': 'off',
'no-console': 'off'
}
}
]
47 changes: 8 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,53 +39,22 @@
],
"license": "CC-BY-4.0",
"devDependencies": {
"@babel/generator": "^7.23.6",
"@babel/types": "^7.23.9",
"@logux/eslint-config": "^52.0.2",
"@babel/generator": "^7.24.7",
"@babel/types": "^7.24.7",
"@logux/eslint-config": "^53.2.0",
"@mdn/browser-compat-data": "5.5.33",
"caniuse-db": "1.0.30001635",
"clean-publish": "^4.2.0",
"eslint": "^8.56.0",
"clean-publish": "^5.0.0",
"eslint": "^9.5.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-node-imports": "^1.0.2",
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-perfectionist": "^2.11.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-promise": "^6.2.0",
"uvu": "^0.5.6"
},
"eslintConfig": {
"extends": "@logux/eslint-config",
"rules": {
"perfectionist/sort-objects": "off",
"n/global-require": "off",
"camelcase": "off"
},
"overrides": [
{
"files": "dist/**/*.js",
"rules": {
"node-import/prefer-node-protocol": "off",
"prefer-exponentiation-operator": "off"
}
},
{
"files": [
"src/**/*.js",
"*.js"
],
"rules": {
"n/no-unsupported-features/node-builtins": "off",
"no-console": "off"
}
}
]
},
"eslintIgnore": [
"data/",
"dist/"
],
"prettier": {
"arrowParens": "avoid",
"jsxSingleQuote": false,
Expand Down
Loading

0 comments on commit 46f586b

Please sign in to comment.