Skip to content

Commit 13a86df

Browse files
committed
Move to flat ESLint config
1 parent b3e0579 commit 13a86df

File tree

4 files changed

+245
-72
lines changed

4 files changed

+245
-72
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ coverage/
33

44
logo.svg
55
AUTHORS
6+
eslint.config.mjs

eslint.config.mjs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import loguxConfig from '@logux/eslint-config'
2+
3+
export default [
4+
{
5+
ignores: ['coverage']
6+
},
7+
...loguxConfig,
8+
{
9+
rules: {
10+
'no-console': 'off',
11+
'node-import/prefer-node-protocol': 'off'
12+
}
13+
},
14+
{
15+
files: ['bin/autoprefixer'],
16+
rules: {
17+
'n/global-require': 'off'
18+
}
19+
},
20+
{
21+
files: ['data/prefixes.js'],
22+
rules: {
23+
'import/order': 'off'
24+
}
25+
}
26+
]

package.json

+1-33
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,11 @@
5454
"postcss-value-parser": "^4.2.0"
5555
},
5656
"devDependencies": {
57-
"@logux/eslint-config": "^52.0.2",
57+
"@logux/eslint-config": "^53.0.0",
5858
"@size-limit/preset-small-lib": "11.1.1",
5959
"c8": "^9.1.0",
6060
"clean-publish": "^4.3.0",
6161
"eslint": "^8.57.0",
62-
"eslint-config-standard": "^17.1.0",
63-
"eslint-plugin-import": "^2.29.1",
64-
"eslint-plugin-n": "^16.6.2",
65-
"eslint-plugin-node-import": "^1.0.4",
66-
"eslint-plugin-perfectionist": "^2.7.0",
67-
"eslint-plugin-prefer-let": "^3.0.1",
68-
"eslint-plugin-promise": "^6.1.1",
6962
"nanospy": "^1.0.0",
7063
"postcss": "^8.4.37",
7164
"size-limit": "^11.1.1",
@@ -84,31 +77,6 @@
8477
"limit": "50 KB"
8578
}
8679
],
87-
"eslintConfig": {
88-
"extends": "@logux/eslint-config",
89-
"rules": {
90-
"node-import/prefer-node-protocol": "off",
91-
"no-console": "off"
92-
},
93-
"overrides": [
94-
{
95-
"files": [
96-
"bin/autoprefixer"
97-
],
98-
"rules": {
99-
"n/global-require": "off"
100-
}
101-
},
102-
{
103-
"files": [
104-
"data/prefixes.js"
105-
],
106-
"rules": {
107-
"import/order": "off"
108-
}
109-
}
110-
]
111-
},
11280
"c8": {
11381
"exclude": [
11482
"test/*"

0 commit comments

Comments
 (0)