Skip to content

Commit

Permalink
Move to flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed May 5, 2024
1 parent 03912fc commit e5f4159
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .eslintrc.js

This file was deleted.

27 changes: 27 additions & 0 deletions eslint.config.mjs
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'
}
},
]

0 comments on commit e5f4159

Please sign in to comment.