-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move to flat config internally
- Loading branch information
1 parent
03912fc
commit 0b67034
Showing
2 changed files
with
27 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import globals from 'globals' | ||
import pluginJs from '@eslint/js' | ||
import eslintPlugin from 'eslint-plugin-eslint-plugin' | ||
import nodePlugin from 'eslint-plugin-n' | ||
import mochaPlugin from 'eslint-plugin-mocha' | ||
|
||
export default [ | ||
pluginJs.configs.recommended, | ||
eslintPlugin.configs['flat/recommended'], | ||
nodePlugin.configs['flat/recommended-script'], | ||
mochaPlugin.configs.flat.recommended, | ||
{ | ||
languageOptions: { | ||
globals: globals.node | ||
}, | ||
rules: { | ||
'no-redeclare': 'off', | ||
'eslint-plugin/require-meta-docs-url': | ||
['error', { 'pattern': 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/{{name}}.md' }], | ||
'eslint-plugin/require-meta-docs-description': 'error', | ||
'n/no-extraneous-require': | ||
['error', { 'allowModules': ['jest-config'] }], | ||
'mocha/no-mocha-arrows': 'off', | ||
'mocha/no-setup-in-describe': 'off' | ||
} | ||
}, | ||
] |