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 Mar 19, 2024
1 parent b3e0579 commit 13a86df
Show file tree
Hide file tree
Showing 4 changed files with 245 additions and 72 deletions.
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -3,3 +3,4 @@ coverage/

logo.svg
AUTHORS
eslint.config.mjs
26 changes: 26 additions & 0 deletions eslint.config.mjs
@@ -0,0 +1,26 @@
import loguxConfig from '@logux/eslint-config'

export default [
{
ignores: ['coverage']
},
...loguxConfig,
{
rules: {
'no-console': 'off',
'node-import/prefer-node-protocol': 'off'
}
},
{
files: ['bin/autoprefixer'],
rules: {
'n/global-require': 'off'
}
},
{
files: ['data/prefixes.js'],
rules: {
'import/order': 'off'
}
}
]
34 changes: 1 addition & 33 deletions package.json
Expand Up @@ -54,18 +54,11 @@
"postcss-value-parser": "^4.2.0"
},
"devDependencies": {
"@logux/eslint-config": "^52.0.2",
"@logux/eslint-config": "^53.0.0",
"@size-limit/preset-small-lib": "11.1.1",
"c8": "^9.1.0",
"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-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.7.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"nanospy": "^1.0.0",
"postcss": "^8.4.37",
"size-limit": "^11.1.1",
Expand All @@ -84,31 +77,6 @@
"limit": "50 KB"
}
],
"eslintConfig": {
"extends": "@logux/eslint-config",
"rules": {
"node-import/prefer-node-protocol": "off",
"no-console": "off"
},
"overrides": [
{
"files": [
"bin/autoprefixer"
],
"rules": {
"n/global-require": "off"
}
},
{
"files": [
"data/prefixes.js"
],
"rules": {
"import/order": "off"
}
}
]
},
"c8": {
"exclude": [
"test/*"
Expand Down

0 comments on commit 13a86df

Please sign in to comment.