-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update eslint* dependencies (major) (#385)
Related to bpmn-io/internal-docs#1042
- Loading branch information
1 parent
93f10da
commit 7eb762d
Showing
17 changed files
with
1,611 additions
and
1,033 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,55 @@ | ||
import bpmnIoPlugin from 'eslint-plugin-bpmn-io'; | ||
import reactHooks from 'eslint-plugin-react-hooks'; | ||
import eslintImport from 'eslint-plugin-import'; | ||
|
||
const buildScripts = [ '*.js', '*.mjs' ]; | ||
|
||
export default [ | ||
{ | ||
ignores: [ 'preact', 'dist' ], | ||
}, | ||
...bpmnIoPlugin.configs.browser, | ||
...bpmnIoPlugin.configs.jsx, | ||
...bpmnIoPlugin.configs.mocha.map(config => { | ||
return { | ||
...config, | ||
files: [ | ||
'test/**/*.js' | ||
] | ||
}; | ||
}), | ||
...bpmnIoPlugin.configs.node.map(config => { | ||
return { | ||
...config, | ||
files: [ | ||
...buildScripts, | ||
'test/**/*.js' | ||
] | ||
}; | ||
}), | ||
{ | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'import': eslintImport | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'import/first': 'error', | ||
'import/no-amd': 'error', | ||
'import/no-webpack-loader-syntax': 'error', | ||
'react-hooks/exhaustive-deps': 'off', | ||
'react/display-name': 'off', | ||
'react/no-unknown-property': 'off', | ||
}, | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
sinon: true | ||
}, | ||
}, | ||
files: [ | ||
'test/**/*.js' | ||
] | ||
} | ||
]; |
Oops, something went wrong.