Skip to content

Commit

Permalink
update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
morris committed Dec 28, 2024
1 parent 83280f3 commit c291981
Show file tree
Hide file tree
Showing 8 changed files with 555 additions and 1,079 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
20
4 changes: 2 additions & 2 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": ["stylelint-config-standard", "stylelint-rscss/config"],
"extends": "stylelint-config-standard",
"rules": {
"property-no-vendor-prefix": null,
"selector-class-pattern": "[a-z\\-][a-z0-9\\-]+"
"selector-class-pattern": "^[\\-_]?([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
}
}
26 changes: 26 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import js from '@eslint/js';
import compat from 'eslint-plugin-compat';
import globals from 'globals';

export default [
js.configs.recommended,
compat.configs['flat/recommended'],
{ ignores: ['es5'] },
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
globals: {
...globals.browser,
},
},
rules: {
'object-shorthand': 'error',
'prefer-arrow-callback': 'error',
'arrow-body-style': ['error', 'as-needed'],
'no-var': 'error',
'prefer-template': 'error',
'no-console': 'error',
},
},
];
Loading

0 comments on commit c291981

Please sign in to comment.