-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump eslint from 8.57.0 to 9.17.0 (#7222)
* Bump eslint from 8.57.0 to 9.17.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.17.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.0...v9.17.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * upgrade --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Night <[email protected]>
- Loading branch information
1 parent
325ae44
commit 504022f
Showing
26 changed files
with
506 additions
and
408 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import path from 'node:path'; | ||
import {fileURLToPath} from 'node:url'; | ||
import babelParser from '@babel/eslint-parser'; | ||
import {fixupConfigRules} from '@eslint/compat'; | ||
import {FlatCompat} from '@eslint/eslintrc'; | ||
import js from '@eslint/js'; | ||
import globals from 'globals'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: ['**/build', '**/node_modules'], | ||
}, | ||
...fixupConfigRules( | ||
compat.extends( | ||
'plugin:import/recommended', | ||
'plugin:react/recommended', | ||
'plugin:eslint-plugin/recommended', | ||
'plugin:prettier/recommended' | ||
) | ||
), | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
|
||
parser: babelParser, | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
requireConfigFile: false, | ||
allowImportExportEverywhere: true, | ||
|
||
babelOptions: { | ||
presets: ['@babel/preset-react'], | ||
}, | ||
}, | ||
}, | ||
|
||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
|
||
rules: { | ||
'prettier/prettier': ['error'], | ||
'import/extensions': ['error', 'ignorePackages'], | ||
'react/prop-types': 'off', | ||
'react/jsx-props-no-spreading': 'off', | ||
'no-param-reassign': 'off', | ||
'no-underscore-dangle': 'off', | ||
'no-continue': 'off', | ||
'no-restricted-syntax': 'off', | ||
'class-methods-use-this': 'off', | ||
'no-plusplus': 'off', | ||
'no-empty': 'off', | ||
'max-classes-per-file': 'off', | ||
'no-bitwise': 'off', | ||
'import/no-named-as-default': 'off', | ||
|
||
'import/order': [ | ||
'error', | ||
{ | ||
groups: ['builtin', 'external', 'parent', 'sibling', 'index'], | ||
|
||
alphabetize: { | ||
order: 'asc', | ||
caseInsensitive: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.