1
0
mirror of https://github.com/lancedikson/bowser synced 2026-10-07 19:31:44 +00:00

chore: Update ESLint to 10.5.0

This commit is contained in:
Yasumasa Ashida
2026-06-16 16:58:53 +09:00
parent 4dcd3258b4
commit 6edf9da595
5 changed files with 1214 additions and 260 deletions

28
eslint.config.mjs Normal file
View File

@@ -0,0 +1,28 @@
import js from '@eslint/js';
import importPlugin from 'eslint-plugin-import';
import { rules } from 'eslint-config-airbnb-extended';
export default [
js.configs.recommended,
importPlugin.flatConfigs.recommended,
rules.base.bestPractices,
{
files: ['**/*.{js,mjs,cjs}'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-underscore-dangle': 0,
'no-void': 0,
'import/prefer-default-export': 1,
},
settings: {
'import/extensition': [
'.js',
'.mjs',
'.cjs'
]
}
}
];