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:
28
eslint.config.mjs
Normal file
28
eslint.config.mjs
Normal 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'
|
||||
]
|
||||
}
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user