Skip to content

Commit 53b4774

Browse files
committed
Update ESLint
1 parent 9769848 commit 53b4774

File tree

6 files changed

+3165
-1561
lines changed

6 files changed

+3165
-1561
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { configs } from 'eslint-config-hudochenkov';
2+
import eslintConfigPrettier from 'eslint-config-prettier';
3+
import globals from 'globals';
4+
5+
export default [
6+
{
7+
ignores: ['**/fixtures/*.js'],
8+
},
9+
...configs.main,
10+
eslintConfigPrettier,
11+
{
12+
languageOptions: {
13+
globals: {
14+
...Object.fromEntries(Object.entries(globals.browser).map(([key]) => [key, 'off'])),
15+
...globals.node,
16+
...globals.jest,
17+
groupTest: true,
18+
runTest: true,
19+
},
20+
},
21+
},
22+
];

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const getContainingNode = require('./lib/getContainingNode');
44
const sortNode = require('./lib/order/sortNode');
55
const sortNodeProperties = require('./lib/properties-order/sortNodeProperties');
66

7-
module.exports = (opts) => {
7+
module.exports = function postcssSorting(opts) {
88
return {
99
postcssPlugin: 'postcss-sorting',
1010
Root(css) {

0 commit comments

Comments
 (0)