mirror of
https://github.com/lancedikson/bowser
synced 2026-09-22 12:05:23 +00:00
chore: Update ESLint to 10.5.0
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
parser: '@babel/eslint-parser'
|
||||
extends: airbnb-base
|
||||
rules:
|
||||
no-underscore-dangle: 0
|
||||
no-void: 0
|
||||
import/extensions:
|
||||
- 'error'
|
||||
- 'ignorePackages'
|
||||
- {js: 'always'}
|
||||
import/prefer-default-export: 1
|
||||
|
||||
plugins:
|
||||
- ava
|
||||
- import
|
||||
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'
|
||||
]
|
||||
}
|
||||
}
|
||||
];
|
||||
@@ -54,6 +54,7 @@
|
||||
"@babel/eslint-parser": "^7.29.7",
|
||||
"@babel/preset-env": "^7.29.7",
|
||||
"@babel/register": "^7.29.7",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@rolldown/plugin-babel": "0.2.3",
|
||||
"ava": "^3.0.0",
|
||||
"babel-plugin-add-module-exports": "^1.0.4",
|
||||
@@ -61,10 +62,10 @@
|
||||
"coveralls": "^3.0.6",
|
||||
"docdash": "^1.1.1",
|
||||
"core-js": "^3.49.0",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-plugin-ava": "^10.5.0",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint": "^10.5.0",
|
||||
"eslint-config-airbnb-extended": "^3.1.0",
|
||||
"eslint-plugin-ava": "^17.0.1",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"gh-pages": "^6.3.0",
|
||||
"jsdoc": "^3.6.3",
|
||||
"nyc": "^18.0.0",
|
||||
|
||||
1422
pnpm-lock.yaml
generated
1422
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,2 +1,3 @@
|
||||
allowBuilds:
|
||||
core-js: false
|
||||
unrs-resolver: false
|
||||
|
||||
Reference in New Issue
Block a user